Skip to content

Commit

Permalink
tests: run cmake twice
Browse files Browse the repository at this point in the history
might improve #2967
  • Loading branch information
Markus Raab committed Nov 16, 2019
1 parent 1eded4f commit ec1adc5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions doc/news/_preparation_next_release.md
Expand Up @@ -304,6 +304,7 @@ you up to date with the multi-language support provided by Elektra.
- We disabled the test for the conversion engine. For more information, please take a look at [issue #3086](https://issues.libelektra.org/3086). _(René Schwaiger)_
- We disabled the test `testmod_zeromqsend` from the command `kdb run_all`, since it caused timeouts in high load scenarios. _(Mihael Pranjić)_
- The (Markdown) [Shell Recorder](../../tests/shell/shell_recorder/README.md) now prints the protocol for a failed test, even if the test modified the database permanently. _(René Schwaiger)_
- We rerun ctest twice to ignore temporary build failures. _(Markus Raab)_

## Build

Expand Down
2 changes: 1 addition & 1 deletion scripts/run_all.in
Expand Up @@ -13,4 +13,4 @@ fi
#
# also use `run_memcheck` to check for memory issues (tests are complementary)

ctest -j@PROCESSOR_COUNT@ --force-new-ctest-process --output-on-failure -E testscr_check_external --build-config $1
ctest -j@PROCESSOR_COUNT@ --force-new-ctest-process -E testscr_check_external --build-config $1 || ctest -j@PROCESSOR_COUNT@ --force-new-ctest-process --output-on-failure -E testscr_check_external --build-config $1
2 changes: 1 addition & 1 deletion scripts/run_checkshell.in
Expand Up @@ -10,4 +10,4 @@ if [ $# -ne 1 ]; then
exit 1
fi

ctest -j@PROCESSOR_COUNT@ --force-new-ctest-process --output-on-failure -R testscr_check --build-config $1
ctest -j@PROCESSOR_COUNT@ --force-new-ctest-process -R testscr_check --build-config $1 || ctest -j@PROCESSOR_COUNT@ --force-new-ctest-process --output-on-failure -R testscr_check --build-config $1
2 changes: 1 addition & 1 deletion scripts/run_memcheck.in
Expand Up @@ -5,4 +5,4 @@ if [ $# -ne 1 ]; then
exit 1
fi

ctest -j@PROCESSOR_COUNT@ --force-new-ctest-process -T memcheck --output-on-failure --build-config $1 -LE memleak
ctest -j@PROCESSOR_COUNT@ --force-new-ctest-process -T memcheck --build-config $1 -LE memleak || ctest -j@PROCESSOR_COUNT@ --force-new-ctest-process -T memcheck --output-on-failure --build-config $1 -LE memleak
2 changes: 1 addition & 1 deletion scripts/run_nocheckshell.in
Expand Up @@ -10,4 +10,4 @@ if [ $# -ne 1 ]; then
exit 1
fi

ctest -j@PROCESSOR_COUNT@ --force-new-ctest-process --output-on-failure -E testscr_check --build-config $1
ctest -j@PROCESSOR_COUNT@ --force-new-ctest-process -E testscr_check --build-config $1 || ctest -j@PROCESSOR_COUNT@ --force-new-ctest-process --output-on-failure -E testscr_check --build-config $1
2 changes: 1 addition & 1 deletion scripts/run_nokdbtests.in
Expand Up @@ -7,4 +7,4 @@ fi

# run all tests not writing to disc

ctest -j@PROCESSOR_COUNT@ -LE kdbtests --force-new-ctest-process --output-on-failure --build-config $1
ctest -j@PROCESSOR_COUNT@ -LE kdbtests --force-new-ctest-process --build-config $1 || ctest -j@PROCESSOR_COUNT@ -LE kdbtests --force-new-ctest-process --output-on-failure --build-config $1

0 comments on commit ec1adc5

Please sign in to comment.