improve testme.sh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
diff --git a/.travis.yml b/.travis.yml
index 48e12b2..ba90ded 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,7 +6,7 @@ script:
- make travis_mtest
- head -n 5 test.log
- tail -n 2 test.log
- - ./testme.sh --with-cc=gcc
+ - ./testme.sh --with-cc=gcc --with-low-mp
branches:
only:
diff --git a/testme.sh b/testme.sh
index ff54078..a65e2f8 100755
--- a/testme.sh
+++ b/testme.sh
@@ -43,6 +43,8 @@ _help()
echo " e.g. --make-option=\"-f makefile.shared\""
echo " This is an option that will always be passed as parameter to make."
echo
+ echo " --with-low-mp Also build&run tests with -DMP_{8,16,32}BIT."
+ echo
echo "Godmode:"
echo
echo " --all Choose all architectures and gcc and clang as compilers"
@@ -100,6 +102,7 @@ _exit()
ARCHFLAGS=""
COMPILERS=""
CFLAGS=""
+WITH_LOW_MP=""
while [ $# -gt 0 ];
do
@@ -116,6 +119,9 @@ do
--make-option=*)
MAKE_OPTIONS="$MAKE_OPTIONS ${1#*=}"
;;
+ --with-low-mp)
+ WITH_LOW_MP="1"
+ ;;
--all)
COMPILERS="gcc clang"
ARCHFLAGS="-m64 -m32 -mx32"
@@ -123,6 +129,9 @@ do
--help | -h)
_help
;;
+ *)
+ echo "Ignoring option ${1}"
+ ;;
esac
shift
done
@@ -176,6 +185,7 @@ do
fi
_runtest "$i $a" "$CFLAGS"
+ [ "$WITH_LOW_MP" != "1" ] && continue
_runtest "$i $a" "-DMP_8BIT $CFLAGS"
_runtest "$i $a" "-DMP_16BIT $CFLAGS"
_runtest "$i $a" "-DMP_32BIT $CFLAGS"