diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3f594f244..1f03898df 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,8 +40,11 @@ jobs: # All integration tests - param: test --vm=u22 --param=build-package --param=module=mock --param=module=real - # All unit tests with coverage and alternate timezone - - param: test --vm=u22 --param=c-only --param=tz=America/New_York + # All unit tests with coverage, backtrace and alternate timezone + - param: test --vm=u22 --param=c-only --param=no-valgrind --param=tz=America/New_York + + # All unit tests with valgrind (disable coverage and backtrace for performance) + - param: test --vm=u22 --param=c-only --param=no-coverage --param=no-back-trace # All unit tests on the newest gcc available - param: test --vm=f36 --param=c-only --param=no-valgrind --param=no-coverage --param=no-performance diff --git a/test/lib/pgBackRestTest/Common/JobTest.pm b/test/lib/pgBackRestTest/Common/JobTest.pm index 2a584b654..ecbd36cc2 100644 --- a/test/lib/pgBackRestTest/Common/JobTest.pm +++ b/test/lib/pgBackRestTest/Common/JobTest.pm @@ -65,6 +65,7 @@ sub new $self->{bShowOutputAsync}, $self->{bNoCleanup}, $self->{iRetry}, + $self->{bBackTraceUnit}, $self->{bValgrindUnit}, $self->{bCoverageUnit}, $self->{bCoverageSummary}, @@ -97,6 +98,7 @@ sub new {name => 'bShowOutputAsync'}, {name => 'bNoCleanup'}, {name => 'iRetry'}, + {name => 'bBackTraceUnit'}, {name => 'bValgrindUnit'}, {name => 'bCoverageUnit'}, {name => 'bCoverageSummary'}, @@ -261,7 +263,7 @@ sub run ' --repo-path=' . $self->{strTestPath} . '/repo' . ' --test-path=' . $self->{strTestPath} . " --log-level=$self->{strLogLevel}" . ' --vm=' . $self->{oTest}->{&TEST_VM} . ' --vm-id=' . $self->{iVmIdx} . ($self->{bProfile} ? ' --profile' : '') . - ($bCoverage ? '' : ' --no-coverage') . ' test ' . + ($self->{bBackTraceUnit} ? '' : ' --no-back-trace') . ($bCoverage ? '' : ' --no-coverage') . ' test ' . $self->{oTest}->{&TEST_MODULE} . '/' . $self->{oTest}->{&TEST_NAME} . " && \\\n" . # Allow stderr to be copied to stderr and stdout "exec 3>&1 && \\\n" . diff --git a/test/src/build/config/config.yaml b/test/src/build/config/config.yaml index 60ab8483f..afdc03025 100644 --- a/test/src/build/config/config.yaml +++ b/test/src/build/config/config.yaml @@ -32,6 +32,13 @@ optionGroup: option: # General options #--------------------------------------------------------------------------------------------------------------------------------- + back-trace: + type: boolean + default: true + negate: true + command: + test: {} + buffer-size: type: size internal: true diff --git a/test/src/build/help/help.xml b/test/src/build/help/help.xml index 08a6cd695..37371f660 100644 --- a/test/src/build/help/help.xml +++ b/test/src/build/help/help.xml @@ -21,6 +21,16 @@ + +