go.sh 945 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. echo Compile with gcc -O2
  3. rm -f *.bin
  4. rm -f ../scattnlay
  5. #g++ -O2 -std=c++11 standalone.cc nmie.cc -lm -o scattnlay.bin
  6. clang++ -g -O1 -fsanitize=address -fno-optimize-sibling-calls -fno-omit-frame-pointer -std=c++11 standalone.cc nmie.cc nmie-wrapper.cc -lm -o scattnlay.bin
  7. cp scattnlay.bin ../scattnlay
  8. cd tests/shell
  9. # for file in `ls *.sh`; do
  10. # if [ "$file" != "test03.sh" ]; then
  11. # ./$file > /dev/null
  12. # echo $file
  13. # fi
  14. # done
  15. PROGRAM='../../../scattnlay'
  16. 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 -t 0.0 90.0 5 -c test01
  17. # repeats=30
  18. # echo Run test for $repeats times
  19. # time for i in `seq $repeats`; do ./test01.sh; done
  20. # echo Run test with original binary for $repeats times
  21. # cp ../../../scattnlay-0.3.0 ../../../scattnlay
  22. # time for i in `seq $repeats`; do ./test01.sh; done