diff options
| author | Gareth Rees | 2013-05-24 11:25:15 +0100 |
|---|---|---|
| committer | Gareth Rees | 2013-05-24 11:25:15 +0100 |
| commit | da75b40c73f9c992b24fd20013cebe96c2799487 (patch) | |
| tree | 831a196d938b16defd84a75439452b2f95e4a04a /mps/code | |
| parent | f8e0a62b74d21f1809916f6723cb54980641b2dd (diff) | |
| download | emacs-da75b40c73f9c992b24fd20013cebe96c2799487.tar.gz emacs-da75b40c73f9c992b24fd20013cebe96c2799487.zip | |
Always run all the testcases, noting failures instead of stopping.
Copied from Perforce
Change: 182153
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
| -rw-r--r-- | mps/code/comm.gmk | 27 | ||||
| -rw-r--r-- | mps/code/mps.xcodeproj/project.pbxproj | 2 |
2 files changed, 13 insertions, 16 deletions
diff --git a/mps/code/comm.gmk b/mps/code/comm.gmk index e4102bb37f1..296b91a7efb 100644 --- a/mps/code/comm.gmk +++ b/mps/code/comm.gmk | |||
| @@ -228,22 +228,19 @@ all: mpmss sacss amcss amcssth amcsshe amsss amssshe segsmss awlut awluthe \ | |||
| 228 | mps.a mpsplan.a | 228 | mps.a mpsplan.a |
| 229 | 229 | ||
| 230 | 230 | ||
| 231 | # Runs the automatic tests that are built with CONFIG_PROD_MPS. | 231 | # Runs the automated tests. |
| 232 | # These tests are run overnight (see design.buildsys.overnight). | 232 | # |
| 233 | # bttest & teletest cannot be run unattended | 233 | # %%TARGET: When adding a new target, if target is suitable for |
| 234 | # mv2test cannot be run because MV2 is broken | 234 | # running as an automated test, then add it here. |
| 235 | # %%TARGET: When adding a new target, if target is suitable for the | 235 | # |
| 236 | # overnight tests, then add it here. | 236 | # bttest and teletest are not listed here because they are interactive |
| 237 | TESTCASES=abqtest amcss amcsshe amcssth amsss amssshe apss arenacv awlut \ | 237 | # and so cannot be run unattended. |
| 238 | awluthe btcv cbstest finalcv finaltest lockcov locv \ | 238 | TESTCASES=abqtest amcss amcsshe amcssth amsss amssshe apss arenacv \ |
| 239 | messtest mpmss mpsicv poolncv qs sacss segsmss steptest \ | 239 | awlut awluthe btcv cbstest finalcv finaltest lockcov locv \ |
| 240 | walkt0 | 240 | messtest mpmss mpsicv mv2test poolncv qs sacss segsmss \ |
| 241 | steptest walkt0 | ||
| 241 | testrun: $(TESTCASES) | 242 | testrun: $(TESTCASES) |
| 242 | OUTPUT=$$(mktemp -d /tmp/mps.log.XXXXXX); \ | 243 | ../tool/testrun.sh $(addprefix $(PFM)/$(VARIETY)/,$(TESTCASES)) |
| 243 | echo "Logging test output to $$OUTPUT"; \ | ||
| 244 | $(^:%=(TEST=%; TESTCASE=$(PFM)/$(VARIETY)/$$TEST; \ | ||
| 245 | echo "Running $$TESTCASE" && \ | ||
| 246 | $$TESTCASE > $$OUTPUT/$$TEST || (cat $$OUTPUT/$$TEST; exit 1)) &&) true | ||
| 247 | 244 | ||
| 248 | # These convenience targets allow one to type "make foo" to build target | 245 | # These convenience targets allow one to type "make foo" to build target |
| 249 | # foo in selected varieties (or none, for the latter rule). | 246 | # foo in selected varieties (or none, for the latter rule). |
diff --git a/mps/code/mps.xcodeproj/project.pbxproj b/mps/code/mps.xcodeproj/project.pbxproj index e863cebe535..a23e121abd4 100644 --- a/mps/code/mps.xcodeproj/project.pbxproj +++ b/mps/code/mps.xcodeproj/project.pbxproj | |||
| @@ -2453,7 +2453,7 @@ | |||
| 2453 | ); | 2453 | ); |
| 2454 | runOnlyForDeploymentPostprocessing = 0; | 2454 | runOnlyForDeploymentPostprocessing = 0; |
| 2455 | shellPath = /bin/sh; | 2455 | shellPath = /bin/sh; |
| 2456 | shellScript = "# bttest & teletest cannot be run unattended\n# mv2test cannot be run because MV2 is broken\n# amcssth doesn't work on OS X (job001621)\nTESTCASES=\"abqtest amcss amcsshe amsss amssshe apss arenacv awlut \\\n awluthe btcv cbstest finalcv finaltest lockcov locv \\\n messtest mpmss mpsicv poolncv qs sacss segsmss steptest \\\n walkt0\"\nOUTPUT=$(mktemp -d /tmp/mps.log.XXXXXX)\necho \"Logging test output to $OUTPUT\"\nfor TEST in $TESTCASES; do\n TESTCASE=$TARGET_BUILD_DIR/$TEST\n echo \"Running $TEST ($CONFIGURATION)\"\n $TESTCASE > $OUTPUT/$TEST || (cat $OUTPUT/$TEST; exit 1)\ndone\necho \"All tests pass.\"\n\n# Coverage\nif [ \"$CONFIGURATION\" == \"Debug\" ]; then\n (cd xc/$PROJECT.build/$CONFIGURATION/$PROJECT.build/Objects-normal/x86_64 &&\n gcov mps.c 2> $OUTPUT/gcov) |\n python ../tool/gcovfmt.py $OUTPUT/coverage\nfi"; | 2456 | shellScript = "# bttest and teletest are not listed here because they cannot be run\n# unattended.\nTESTCASES=\"abqtest amcss amcsshe amcssth amsss amssshe apss arenacv \\\n awlut awluthe btcv cbstest finalcv finaltest lockcov locv \\\n messtest mpmss mpsicv mv2test poolncv qs sacss segsmss \\\n steptest walkt0\"\n../tool/testrun.sh $(for TEST in $TESTCASES; do echo $TARGET_BUILD_DIR/$TEST; done)\n\n# Coverage\nif [ \"$CONFIGURATION\" == \"Debug\" ]; then\n (cd xc/$PROJECT.build/$CONFIGURATION/$PROJECT.build/Objects-normal/x86_64 &&\n gcov mps.c 2> /dev/null) | ../tool/gcovfmt.py\nfi"; |
| 2457 | showEnvVarsInLog = 0; | 2457 | showEnvVarsInLog = 0; |
| 2458 | }; | 2458 | }; |
| 2459 | /* End PBXShellScriptBuildPhase section */ | 2459 | /* End PBXShellScriptBuildPhase section */ |