go.sh 628 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. echo Run test of complex libs
  3. cd ./tests/dev
  4. echo **Debug
  5. echo ***Clang
  6. rm -rf *.bin
  7. clang++ -std=c++11 test-complex-lib.cc ../../ucomplex.cc -o test-complex-lib.cc.bin
  8. ./test-complex-lib.cc.bin
  9. echo ***Gcc
  10. rm -rf *.bin
  11. g++ -std=c++11 test-complex-lib.cc ../../ucomplex.cc -o test-complex-lib.cc.bin
  12. ./test-complex-lib.cc.bin
  13. echo **Build
  14. echo ***Clang
  15. rm -rf *.bin
  16. clang++ -std=c++11 -O2 test-complex-lib.cc ../../ucomplex.cc -o test-complex-lib.cc.bin
  17. ./test-complex-lib.cc.bin
  18. echo ***Gcc
  19. rm -rf *.bin
  20. g++ -std=c++11 -O2 test-complex-lib.cc ../../ucomplex.cc -o test-complex-lib.cc.bin
  21. ./test-complex-lib.cc.bin