2
0

run-test-acceptance-tests.sh 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash -e
  2. #
  3. # The timeouts are double of time the execution usually takes
  4. #
  5. # run the MS test suite
  6. if [[ ${CI_TAGS} == *'ms-test-suite'* ]]; then
  7. LANG=en_US.UTF-8 ${TESTCMD} --label=check-ms-test-suite --timeout=10m make -C acceptance-tests check-ms-test-suite
  8. total_tests=$(find acceptance-tests/ -name TestResult*xml | xargs cat | grep -c "<test-case")
  9. if [ "$total_tests" -lt "1600" ]
  10. then echo "*** NOT ENOUGH TEST RESULTS RECORDED, MARKING FAILURE ***"
  11. exit 1
  12. fi
  13. fi
  14. # run Roslyn tests, they use Mono from PATH so we need to do a temporary install
  15. ${TESTCMD} --label=install-temp-mono --timeout=10m make install
  16. OLD_PATH=$PATH
  17. export PATH=${MONO_REPO_ROOT}/tmp/mono-acceptance-tests/bin:$PATH
  18. ${TESTCMD} --label=check-roslyn --timeout=60m make -C acceptance-tests check-roslyn
  19. export PATH=$OLD_PATH
  20. rm -rf "${MONO_REPO_ROOT}/tmp/mono-acceptance-tests"
  21. # run CoreCLR managed tests, we precompile them in parallel so individual steps don't need to do it
  22. ${TESTCMD} --label=coreclr-compile-tests --timeout=140m --fatal make -C acceptance-tests coreclr-compile-tests
  23. ${TESTCMD} --label=coreclr-runtest-basic --timeout=20m make -C acceptance-tests coreclr-runtest-basic
  24. ${TESTCMD} --label=coreclr-runtest-coremanglib --timeout=10m make -C acceptance-tests coreclr-runtest-coremanglib
  25. # run the GC stress tests (on PRs we only run a short version)
  26. ${TESTCMD} --label=coreclr-gcstress --timeout=1200m make -C acceptance-tests coreclr-gcstress