123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- # create archive directory
- archive_dir=../../../archives/resources
- archive_dir_tests=$archive_dir/parser_tests
- [ ! -d $archive_dir_tests ] && mkdir $archive_dir_tests
- [ ! -d $archive_dir_tests/128 ] && mkdir $archive_dir_tests/128
- [ ! -d $archive_dir_tests/256 ] && mkdir $archive_dir_tests/256
- # create cache
- cache_dir=../../../cache
- cache_dir_tests=$cache_dir/tests
- [ ! -d $cache_dir_tests ] && mkdir $cache_dir_tests
- cache_output=$cache_dir_tests/xmatrixdir
- [ ! -d $cache_output ] && mkdir $cache_output
- rm -rf $cache_output/*
- # generate 128 bit xoron matrix
- arch=128
- if [ ! -e $archive_dir_tests/$arch/xmatrix_comp_file.xf ] || [ ! -s $archive_dir_tests/$arch/xmatrix_comp_file.xf ] ; then
- str="
- xrnlib-cli \
- --encoding-conf -compiled-param -no-password \
- --permutation-conf -arch $arch \
- --mine-xmatrix-comp-rnd -random -xmatrix-comp $archive_dir_tests/$arch/xmatrix_comp_file.xf
- "
- echo ""; echo $str; echo ""
- eval $str
- fi
- # generate 256 bit xoron matrix
- arch=256
- if [ ! -e $archive_dir_tests/$arch/xmatrix_comp_file.xf ] || [ ! -s $archive_dir_tests/$arch/xmatrix_comp_file.xf ] ; then
- str="
- xrnlib-cli \
- --encoding-conf -compiled-param -no-password \
- --permutation-conf -arch $arch \
- --mine-xmatrix-comp-ot -random -xmatrix-comp $archive_dir_tests/$arch/xmatrix_comp_file.xf
- "
- echo ""; echo $str; echo ""
- eval $str
- fi
|