forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Base/CI: Boot serenity in CI in a mode that runs tests on target
Build a new version of Serenity in CI that doesn't have all the debug symbols on, or we'd be waiting a very long time to boot. Insert a TestRunner entry into SystemServer.ini that will run a shell script that runs tests in /bin and /usr/Tests and shuts down the system in the new self-test boot mode. Also make sure enough basic services are started in self-test such that the tests will actually run properly.
- Loading branch information
1 parent
5046213
commit 611bbc4
Showing
4 changed files
with
151 additions
and
59 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
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
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,30 @@ | ||
#!/bin/sh | ||
|
||
echo "==== Running Tests on SerenityOS ====" | ||
|
||
run() { | ||
test_cmd=($*) | ||
echo "Running test -- $test_cmd" | ||
if $test_cmd { | ||
echo "::debug file=$test_cmd:: $test_cmd passed!" | ||
} else { | ||
echo "::error file=$test_cmd:: $test_cmd returned non-zero exit code, check logs!" | ||
} | ||
} | ||
|
||
# TODO: It'd be nice to have a list+list op (as opposed to nest-on-in-another) | ||
# TODO: It'd be nice to have a list.length or enumerate(list) operation to allow terminal progress bar | ||
# TODO: test-web requires the window server | ||
system_tests=(test-js test-pthread test-compress (test-crypto bigint -t)) | ||
# FIXME: Running too much at once is likely to run into #5541. Remove commented out find below when stable | ||
all_tests=($system_tests) #$(find /usr/Tests -type f | grep -v Kernel | grep -v .inc | shuf)) | ||
|
||
for list in $all_tests { | ||
for $list { run $it } | ||
} | ||
|
||
echo "==== Done running tests ====" | ||
|
||
if test $DO_SHUTDOWN_AFTER_TESTS { | ||
shutdown -n | ||
} |
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