[ci] Don't cd in run-test-acceptance-tests.sh
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 25 Jul 2016 22:43:03 +0000 (00:43 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 25 Jul 2016 22:44:18 +0000 (00:44 +0200)
The other scripts like TESTCMD rely on paths being based off of the repo root.

scripts/ci/run-test-acceptance-tests.sh

index 44273d08a462687900a16fc5e53f03f25fc1a432..0e5fe78169a153a17dad027b9b9a20e29211964b 100755 (executable)
@@ -4,20 +4,18 @@ export TESTCMD=`dirname "${BASH_SOURCE[0]}"`/run-step.sh
 
 make install  # Roslyn tests need a Mono installation
 
-cd acceptance-tests
+LANG=en_US.UTF-8 ${TESTCMD} --label=check-ms-test-suite --timeout=30m make -C acceptance-tests check-ms-test-suite
 
-LANG=en_US.UTF-8 ${TESTCMD} --label=check-ms-test-suite --timeout=30m make check-ms-test-suite
-
-total_tests=$(find . -name TestResult*xml | xargs cat | grep -c "<test-case")
+total_tests=$(find acceptance-tests/ -name TestResult*xml | xargs cat | grep -c "<test-case")
 if [ "$total_tests" -lt "1600" ]
        then echo "*** NOT ENOUGH TEST RESULTS RECORDED, MARKING FAILURE ***"
        exit 1
 fi
 
-${TESTCMD} --label=check-roslyn --timeout=30m make check-roslyn PREFIX=${WORKSPACE}/tmp/mono-acceptance-tests
+${TESTCMD} --label=check-roslyn --timeout=30m make -C acceptance-tests check-roslyn PREFIX=${WORKSPACE}/tmp/mono-acceptance-tests
 rm -rf ${WORKSPACE}/tmp/mono-acceptance-tests  # cleanup the Mono installation used for Roslyn tests
 
-${TESTCMD} --label=coreclr-compile-tests --timeout=80m --fatal make coreclr-compile-tests
-${TESTCMD} --label=coreclr-runtest-basic --timeout=10m make coreclr-runtest-basic
-${TESTCMD} --label=coreclr-runtest-coremanglib --timeout=10m make coreclr-runtest-coremanglib
-${TESTCMD} --label=coreclr-gcstress --timeout=1200m make coreclr-gcstress
+${TESTCMD} --label=coreclr-compile-tests --timeout=80m --fatal make -C acceptance-tests coreclr-compile-tests
+${TESTCMD} --label=coreclr-runtest-basic --timeout=10m make -C acceptance-tests coreclr-runtest-basic
+${TESTCMD} --label=coreclr-runtest-coremanglib --timeout=10m make -C acceptance-tests coreclr-runtest-coremanglib
+${TESTCMD} --label=coreclr-gcstress --timeout=1200m make -C acceptance-tests coreclr-gcstress