summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/ci/jobs/any_compiler_tests.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/ci/jobs/any_compiler_tests.sh b/tools/ci/jobs/any_compiler_tests.sh
new file mode 100755
index 000000000..fb5feac48
--- /dev/null
+++ b/tools/ci/jobs/any_compiler_tests.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+export LOGFILE=tests.log
+
+if [ "$NEWCC" != "" ]; then
+ export CC="$NEWCC"
+fi
+if [ "$NEWCXX" != "" ]; then
+ export CXX="$NEWCXX"
+fi
+
+source ./tools/ci/scripts/init.sh
+
+export CXXFLAGS="$CXXFLAGS $POST_CXXFLAGS"
+
+do_init
+run_configure --enable-unittests=yes $*
+export SDL_VIDEODRIVER=dummy
+run_make_check
+
+source ./tools/ci/scripts/exit.sh
+
+exit 0