diff options
author | Andrew Kaster <andrewdkaster@gmail.com> | 2021-04-24 13:14:21 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-25 09:36:49 +0200 |
commit | 89ee38fe5cf6f62821dabc98f4dfbc109d0874fd (patch) | |
tree | 3ae7f890c8bcdd778946fb3e22fdb4de1ee12592 /AK | |
parent | 77d4b6e435caf6ae70109e4c0ae062fa39a3039e (diff) | |
download | serenity-89ee38fe5cf6f62821dabc98f4dfbc109d0874fd.zip |
Tests: Add environment variable for tests only
This is useful for CI where we don't want to spend a minute and a half
benchmarking Vector::append, and we don't have a good way to pass
test-specific arguments yet. :)
Diffstat (limited to 'AK')
-rw-r--r-- | AK/TestSuite.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/TestSuite.h b/AK/TestSuite.h index 45799bd102..0f062db9a7 100644 --- a/AK/TestSuite.h +++ b/AK/TestSuite.h @@ -140,7 +140,7 @@ int TestSuite::main(const String& suite_name, int argc, char** argv) Core::ArgsParser args_parser; - bool do_tests_only = false; + bool do_tests_only = getenv("TESTS_ONLY") != nullptr; bool do_benchmarks_only = false; bool do_list_cases = false; const char* search_string = "*"; |