-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/de.hpi.swa.trufflesqueak.test/src/de/hpi/swa/trufflesqueak/test/runCuisTests.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
| testSuite testCases ignoredTestCases result exitCode | | ||
|
||
Utilities classPool at: #AuthorName put: 'TruffleSqueak'. | ||
Utilities classPool at: #AuthorInitials put: 'TS'. | ||
|
||
CodePackageFile installPackage: './Packages/BaseImageTests.pck.st' asFileEntry. | ||
|
||
ChangeSet fileIn: './.ContinuousIntegrationScripts/TestResultConsolePrinter.st' asFileEntry. | ||
|
||
ignoredTestCases := #(#DelayTest #MonitorTest #ProcessTerminateBug | ||
#ProcessTerminateUnwindNonLocalReturn #SemaphoreTest #TestSuiteTest | ||
#TestValueWithinFix). | ||
|
||
testSuite := TestSuite new. | ||
testCases := (TestCase allSubclasses reject: [:testCase | | ||
testCase isAbstract or: [ ignoredTestCases includes: testCase name ]]) | ||
sorted: [:a :b | a name <= b name]. | ||
testCases do: [:testCase | testCase addToSuiteFromSelectors: testSuite]. | ||
|
||
result := testSuite run. | ||
|
||
result printReport. | ||
|
||
exitCode := (result hasFailures or: [ result hasErrors ]) ifTrue: [ 1 ] ifFalse: [ 0 ]. | ||
|
||
Smalltalk quitPrimitive: exitCode |