run-test-compiler-server.sh 925 B

1234567891011121314
  1. #!/bin/bash -e
  2. ${TESTCMD} --label=make --timeout=30m make PROFILE=net_4_x ENABLE_COMPILER_SERVER=0
  3. ${TESTCMD} --label=verify-built-with-compiler-server-disabled --timeout=1m test -e mcs/class/lib/net_4_x-*/culevel.exe
  4. ${TESTCMD} --label=remove-culevel --timeout=1m rm mcs/class/lib/net_4_x-*/culevel.exe
  5. ${TESTCMD} --label=remove-log --timeout=1m rm -f mcs/build/compiler-server.log
  6. ${TESTCMD} --label=test-build-culevel-with-compiler-server --timeout=2m make PROFILE=net_4_x ENABLE_COMPILER_SERVER=1
  7. ${TESTCMD} --label=verify-build-produced-exe --timeout=1m test -s mcs/class/lib/net_4_x-*/culevel.exe
  8. ${TESTCMD} --label=verify-log-created --timeout=1m test -s mcs/build/compiler-server.log
  9. ${TESTCMD} --label=verify-csc-out-in-log --timeout=1m grep -- "\-out\:.*culevel.exe" mcs/build/compiler-server.log
  10. ${TESTCMD} --label=verify-return-code-0-in-log --timeout=1m grep -- "Return code: 0" mcs/build/compiler-server.log