Skip to content

Commit

Permalink
[ci] Don't cd in run-test-acceptance-tests.sh
Browse files Browse the repository at this point in the history
The other scripts like TESTCMD rely on paths being based off of the repo root.
  • Loading branch information
akoeplinger committed Jul 25, 2016
1 parent 51fbf83 commit 3bd3c27
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions scripts/ci/run-test-acceptance-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3bd3c27

Please sign in to comment.