Changed test_runner to run with -Pnone,linear by default
The linear powerloss heuristic provides very good powerloss coverage without a significant runtime hit, so there's really no reason to run the tests without -Plinear. Previous behavior can be accomplished with an explicit -Pnone.
This commit is contained in:
@@ -92,8 +92,7 @@ jobs:
|
|||||||
- name: test
|
- name: test
|
||||||
run: |
|
run: |
|
||||||
make clean
|
make clean
|
||||||
# TODO include this by default?
|
make test
|
||||||
TESTFLAGS="$TESTFLAGS -Pnone,linear" make test
|
|
||||||
|
|
||||||
# collect coverage info
|
# collect coverage info
|
||||||
#
|
#
|
||||||
@@ -372,7 +371,7 @@ jobs:
|
|||||||
# on one geometry
|
# on one geometry
|
||||||
- name: test-valgrind
|
- name: test-valgrind
|
||||||
run: |
|
run: |
|
||||||
TESTFLAGS="$TESTFLAGS -Gdefault --valgrind" make test
|
TESTFLAGS="$TESTFLAGS --valgrind -Gdefault -Pnone" make test
|
||||||
|
|
||||||
# test that compilation is warning free under clang
|
# test that compilation is warning free under clang
|
||||||
# run with Clang, mostly to check for Clang-specific warnings
|
# run with Clang, mostly to check for Clang-specific warnings
|
||||||
|
|||||||
@@ -1788,10 +1788,13 @@ const char *const builtin_powerlosses_help[] = {
|
|||||||
"Run a custom leb16-encoded set of power-losses.",
|
"Run a custom leb16-encoded set of power-losses.",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// default to -Pnone,linear, which provides a good heuristic while still
|
||||||
|
// running quickly
|
||||||
const test_powerloss_t *test_powerlosses = (const test_powerloss_t[]){
|
const test_powerloss_t *test_powerlosses = (const test_powerloss_t[]){
|
||||||
{"none", run_powerloss_none, NULL, 0},
|
{"none", run_powerloss_none, NULL, 0},
|
||||||
|
{"linear", run_powerloss_linear, NULL, 0},
|
||||||
};
|
};
|
||||||
size_t test_powerloss_count = 1;
|
size_t test_powerloss_count = 2;
|
||||||
|
|
||||||
static void list_powerlosses(void) {
|
static void list_powerlosses(void) {
|
||||||
// at least size so that names fit
|
// at least size so that names fit
|
||||||
|
|||||||
Reference in New Issue
Block a user