summaryrefslogtreecommitdiff
path: root/Base/home/anon/tests
AgeCommit message (Collapse)Author
2021-07-06Base: Pass show-progress=false to run-tests to avoid confusing CIAndrew Kaster
We pass this to test-js, and since they share some common code, it makes sense to pass it to run-tests as well. This prevents the OSC 9 escape sequences from being emitted when running tests via the script.
2021-06-30Base+Utilities: Add run-tests program to run system tests with LibTestAndrew Kaster
This test program heavily pulls from the JavaScriptTestRunner/test-js, but with a twist. Instead of loading JavaScript files into the current process, constructing a JS environment for them, and executing test suites/tests directly, run-tests posix_spawns each test file. Test file stdout is written to a temp file, and only dumped to console if the test fails or the verbose option is passed to the program. Unlike test-js, times are always printed for every test executed for better visibility in CI.
2021-06-23Tests: Enable AK/TestJSON backcoderdreams
now that tests run on their respective directories
2021-06-22Tests: Run each test in their respective directoriescoderdreams
This is so they can find their associated resources and it's the same behavior as in Lagom. This also required changing some tests so that they could write their resources in a writable location.
2021-05-21Base/CI: Create and check test-results.log file for on-target testsAndrew Kaster
Change run-tests-and-shutdown.sh to output a dead simple results file that just records how many tests failed. In the CI script, mount the _disk_image after running tests and verify that the number of failed tests is 0. Otherwise, fail the build :^) While we're here, bump the timeout for the tests up to 30 minutes, to make sure that less powerful runners don't fail the job unecessarily.
2021-05-21Base/CI: Run tests from /usr/Tests in GitHub ActionsAndrew Kaster
Uncomment the tests that were disabled due to frequent freezes when running without KVM. This also adds a new github actions group for every single test, which makes it easier to browse test boundaries during test runs. Move catting the serial output log back to its own step, so that it has higher visibility. The previous solution was also shown to not actually cat the log in the case of a failed boot and timeout :^(.
2021-04-21Tests: Reorganize LibCompress unit testsMarco Biscaro
Move LibCompress unit tests to LibCompress/Tests directory and register them with CMake's add_test. This allows us to run these tests with ninja test instead of running a separate executable. Also split the existing tests in 3 test files that better follow the source code structure (inspired by AK tests).
2021-04-14Tests: fixed test-crypto wrong argument order that failed -daniel eliad
run-tests-and-shutdown.sh
2021-04-11Base: Fix run-tests-and-shutdown.sh output in CI testing mode.Brian Gianforcaro
The missing newline made the output look weird, as it was jumbled up next to the standard QEMU boot output instead of below it.
2021-03-07Meta: Use the new Shell features to improve run-tests-and-shutdownAnotherTest
Fixes two TODOs in that file :^)
2021-03-02Userland: Gate OSC 9 usage in test-js behind an argumentAndrew Kaster
Instead of assuming that we should use the OSC 9 progress messages whenever we run on serenity, add a show-progress=[true|false] option. This lets us avoid seeing esc sequence spam in GitHub Actions logs.
2021-03-01Base: Add test-math to set of tests run on CIAndrew Kaster
It currently fails though :( Likely contributes to innacuracies in LibJS tests as well.
2021-02-28Base/CI: Boot serenity in CI in a mode that runs tests on targetAndrew Kaster
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.