Skip to content
Snippets Groups Projects
Commit 1961a80e authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

simplify scripts

parent 6812f4ee
No related branches found
No related tags found
No related merge requests found
...@@ -39,51 +39,16 @@ ...@@ -39,51 +39,16 @@
# NOTE: No empty lines should appear in this file before igncr is set! # NOTE: No empty lines should appear in this file before igncr is set!
set -ex -o igncr || set -ex set -ex -o igncr || set -ex
# Grabbing the machine's architecture
arch=`uname -m`
case $platform in
i386)
arch="i386"
platform="linux"
docker_suffix=_32bits
;;
esac
if [ "$platform" == "linux" ] if [ "$platform" == "linux" ]
then then
echo "building $language on Linux" USE_DOCKER_MAYBE="--use_docker"
./tools/run_tests/run_tests.py --use_docker -t -l $language -c $config -x report.xml -j 3 $@ || TESTS_FAILED="true"
elif [ "$platform" == "windows" ]
then
echo "building $language on Windows"
# Prevent msbuild from picking up "platform" env variable, which would break the build
unset platform
python tools/run_tests/run_tests.py -t -l $language -c $config -x report.xml -j 3 $@ || TESTS_FAILED="true"
elif [ "$platform" == "macos" ]
then
echo "building $language on MacOS"
# Prevent msbuild from picking up "platform" env variable, which would break the build
unset platform
./tools/run_tests/run_tests.py -t -l $language -c $config -x report.xml -j 3 $@ || TESTS_FAILED="true"
elif [ "$platform" == "freebsd" ] elif [ "$platform" == "freebsd" ]
then export MAKE=gmake
echo "building $language on FreeBSD" fi
MAKE=gmake ./tools/run_tests/run_tests.py -t -l $language -c $config -x report.xml -j 3 $@ || TESTS_FAILED="true" unset platform # variable named 'platform' breaks the windows build
else python tools/run_tests/run_tests.py $USE_DOCKER_MAYBE -t -l $language -c $config -x report.xml -j 3 $@ || TESTS_FAILED="true"
echo "Unknown platform $platform"
exit 1
fi
if [ ! -e reports/index.html ] if [ ! -e reports/index.html ]
then then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment