2015-10-09 20:13:05 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2015-10-10 06:45:48 +03:00
|
|
|
# If NO_DOCKER is blank then launch use a docker image, otherwise
|
|
|
|
# use the Travis image/tools directly.
|
|
|
|
if [ -z "${NO_DOCKER}" ]; then
|
2015-10-09 20:13:05 +03:00
|
|
|
impl=$(echo "${IMPL}" | tr '[:upper:]' '[:lower:]')
|
|
|
|
|
|
|
|
docker run -it -u $(id -u) -v `pwd`:/mal kanaka/mal-test-${impl} make TEST_OPTS="--soft --log-file ../test.out" test^${IMPL}
|
|
|
|
#docker run -it -u $(id -u) -v `pwd`:/mal kanaka/mal-test-${IMPL,,} make perf^${IMPL}
|
2015-10-10 06:45:48 +03:00
|
|
|
else
|
2015-10-09 20:13:05 +03:00
|
|
|
make TEST_OPTS="--soft --log-file ../test.out" test^${IMPL}
|
|
|
|
#make TEST_OPTS="--soft --log-file ../perf" perf^${IMPL}
|
2015-10-10 06:45:48 +03:00
|
|
|
fi
|