| 1 | #! /bin/bash |
| 2 | # By Daniel Godas-Lopez. |
| 3 | |
| 4 | export LD_LIBRARY_PATH=. |
| 5 | |
| 6 | for x in default nix32 cross-win32 cross-win64 cygwin-mingw32 cygwin-mingw64 bsd clang gcc; do |
| 7 | echo -n "Compiling: $x ... " |
| 8 | ./compile.sh $x &> /dev/null |
| 9 | |
| 10 | if [ $? == 0 ]; then |
| 11 | echo "-> PASS" |
| 12 | else |
| 13 | echo -e "-> FAILED\n" |
| 14 | continue |
| 15 | fi |
| 16 | |
| 17 | for t in test test_arm test_arm64 test_detail test_mips test_x86 test_ppc; do |
| 18 | ./tests/$t &> /dev/null |
| 19 | |
| 20 | if [ $? -eq 0 ]; then |
| 21 | echo " Run $t -> PASS" |
| 22 | else |
| 23 | echo " Run $t -> FAIL" |
| 24 | fi |
| 25 | done |
| 26 | |
| 27 | echo |
| 28 | done |
| 29 | |
| 30 | make clean &> /dev/null |