go.sh 907 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. echo Compile with gcc -O2
  3. rm -rf *.bin
  4. clang++ -g -O1 -fsanitize=address -fno-optimize-sibling-calls -fno-omit-frame-pointer -std=c++11 standalone.cc nmie.cc ucomplex.cc -lm -o scattnlay.bin
  5. #g++ -O2 -std=c++11 standalone.cc nmie.cc ucomplex.cc -lm -o scattnlay.bin
  6. cp scattnlay.bin ../scattnlay
  7. cd tests/shell
  8. # for file in `ls *.sh`; do
  9. # if [ "$file" != "test03.sh" ]; then
  10. # ./$file
  11. # echo $file
  12. # fi
  13. # done
  14. PROGRAM='../../../scattnlay'
  15. ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer-3.4 $PROGRAM -l 5 0.4642 1.8000 1.7000 0.7114 0.8000 0.7000 0.7393 1.2000 0.0900 0.9168 2.8000 0.2000 1.0000 1.5000 0.4000 -c test01
  16. # repeats=30
  17. # echo Run test for $repeats times
  18. # time for i in `seq $repeats`; do ./test01.sh; done
  19. # echo Run test with original binary for $repeats times
  20. # cp ../../../scattnlay-0.3.0 ../../../scattnlay
  21. # time for i in `seq $repeats`; do ./test01.sh; done