2014-01-08 00:54:26 +00:00
|
|
|
#! /bin/bash
|
|
|
|
# By Daniel Godas-Lopez.
|
|
|
|
|
|
|
|
export LD_LIBRARY_PATH=.
|
|
|
|
|
2014-01-16 13:07:59 +00:00
|
|
|
for x in default nix32 cross-win32 cross-win64 cygwin-mingw32 cygwin-mingw64 bsd clang gcc; do
|
2014-01-08 02:36:59 +00:00
|
|
|
echo -n "Compiling: $x ... "
|
2014-01-08 00:54:26 +00:00
|
|
|
./compile.sh $x &> /dev/null
|
|
|
|
|
|
|
|
if [ $? == 0 ]; then
|
2014-01-08 02:36:59 +00:00
|
|
|
echo "-> PASS"
|
2014-01-08 00:54:26 +00:00
|
|
|
else
|
2014-01-08 02:36:59 +00:00
|
|
|
echo -e "-> FAILED\n"
|
2014-01-08 00:54:26 +00:00
|
|
|
continue
|
|
|
|
fi
|
|
|
|
|
2014-01-08 02:36:59 +00:00
|
|
|
for t in test test_arm test_arm64 test_detail test_mips test_x86 test_ppc; do
|
2014-01-08 00:54:26 +00:00
|
|
|
./tests/$t &> /dev/null
|
|
|
|
|
|
|
|
if [ $? -eq 0 ]; then
|
2014-01-08 02:36:59 +00:00
|
|
|
echo " Run $t -> PASS"
|
2014-01-08 00:54:26 +00:00
|
|
|
else
|
2014-01-08 02:36:59 +00:00
|
|
|
echo " Run $t -> FAIL"
|
2014-01-08 00:54:26 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
echo
|
|
|
|
done
|
|
|
|
|
|
|
|
make clean &> /dev/null
|