Skip to content

Commit

Permalink
Update causal end to end tests
Browse files Browse the repository at this point in the history
- if OMNITRACE_BUILD_NUMBER is 1, set OMNITRACE_VERBOSE=0
  • Loading branch information
jrmadsen committed Jul 6, 2023
1 parent 439814b commit aac3903
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/omnitrace-causal-tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ causal_e2e_args_and_validation(_causal_fast_func fast-func "-F" "cpu_fast_func"
causal_e2e_args_and_validation(_causal_line_100 line-100 "-S" "causal.cpp:100" 10 20 20 5)
causal_e2e_args_and_validation(_causal_line_110 line-110 "-S" "causal.cpp:110" 0 0 0 5)

if(OMNITRACE_BUILD_NUMBER GREATER 1)
set(_causal_e2e_environment)
else()
set(_causal_e2e_environment "OMNITRACE_VERBOSE=0")
endif()

omnitrace_add_causal_test(
SKIP_BASELINE
NAME cpu-omni-slow-func-e2e
Expand All @@ -138,6 +144,7 @@ omnitrace_add_causal_test(
CAUSAL_VALIDATE_ARGS ${_causal_slow_func_valid}
CAUSAL_PASS_REGEX
"Starting causal experiment #1(.*)causal/experiments.json(.*)causal/experiments.coz"
ENVIRONMENT "${_causal_e2e_environment}"
PROPERTIES PROCESSORS 2 PROCESSOR_AFFINITY OFF)

omnitrace_add_causal_test(
Expand All @@ -151,6 +158,7 @@ omnitrace_add_causal_test(
CAUSAL_VALIDATE_ARGS ${_causal_fast_func_valid}
CAUSAL_PASS_REGEX
"Starting causal experiment #1(.*)causal/experiments.json(.*)causal/experiments.coz"
ENVIRONMENT "${_causal_e2e_environment}"
PROPERTIES PROCESSORS 2 PROCESSOR_AFFINITY OFF)

omnitrace_add_causal_test(
Expand All @@ -164,6 +172,7 @@ omnitrace_add_causal_test(
CAUSAL_VALIDATE_ARGS ${_causal_line_100_valid}
CAUSAL_PASS_REGEX
"Starting causal experiment #1(.*)causal/experiments.json(.*)causal/experiments.coz"
ENVIRONMENT "${_causal_e2e_environment}"
PROPERTIES PROCESSORS 2 PROCESSOR_AFFINITY OFF)

omnitrace_add_causal_test(
Expand All @@ -177,4 +186,5 @@ omnitrace_add_causal_test(
CAUSAL_VALIDATE_ARGS ${_causal_line_110_valid}
CAUSAL_PASS_REGEX
"Starting causal experiment #1(.*)causal/experiments.json(.*)causal/experiments.coz"
ENVIRONMENT "${_causal_e2e_environment}"
PROPERTIES PROCESSORS 2 PROCESSOR_AFFINITY OFF)

0 comments on commit aac3903

Please sign in to comment.