mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Meta: Run Crypto tests in CI
We skip the tests that are not self-contained (TLS) to avoid adding extra variables to the tests.
This commit is contained in:
parent
a3ff4ff8a1
commit
40829b849a
Notes:
sideshowbarker
2024-07-19 05:46:26 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/40829b849ae Pull-request: https://github.com/SerenityOS/serenity/pull/2509 Reviewed-by: https://github.com/linusg
2 changed files with 11 additions and 1 deletions
|
@ -77,6 +77,11 @@ if (BUILD_LAGOM)
|
|||
set_target_properties(test-crypto_lagom PROPERTIES OUTPUT_NAME test-crypto)
|
||||
target_link_libraries(test-crypto_lagom Lagom)
|
||||
target_link_libraries(test-crypto_lagom stdc++)
|
||||
add_test(
|
||||
NAME Crypto
|
||||
COMMAND test-crypto_lagom test -tc
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
add_executable(disasm_lagom ../../Userland/disasm.cpp)
|
||||
set_target_properties(disasm_lagom PROPERTIES OUTPUT_NAME disasm)
|
||||
|
|
|
@ -51,6 +51,7 @@ static bool binary = false;
|
|||
static bool interactive = false;
|
||||
static bool run_tests = false;
|
||||
static int port = 443;
|
||||
static bool in_ci = false;
|
||||
|
||||
static struct timeval start_time {
|
||||
0, 0
|
||||
|
@ -283,6 +284,7 @@ auto main(int argc, char** argv) -> int
|
|||
parser.add_option(suite, "Set the suite used", "suite-name", 'n', "suite name");
|
||||
parser.add_option(server, "Set the server to talk to (only for `tls')", "server-address", 's', "server-address");
|
||||
parser.add_option(port, "Set the port to talk to (only for `tls')", "port", 'p', "port");
|
||||
parser.add_option(in_ci, "CI Test mode", "ci-mode", 'c');
|
||||
parser.parse(argc, argv);
|
||||
|
||||
StringView mode_sv { mode };
|
||||
|
@ -381,7 +383,10 @@ auto main(int argc, char** argv) -> int
|
|||
|
||||
rsa_tests();
|
||||
|
||||
tls_tests();
|
||||
if (!in_ci) {
|
||||
// Do not run these in CI to avoid tests with variables outside our control.
|
||||
tls_tests();
|
||||
}
|
||||
|
||||
bigint_tests();
|
||||
|
||||
|
|
Loading…
Reference in a new issue