History

selftests/rseq: Don't run tests with runner scripts outside of the scripts

The rseq selftests include two runner scripts run_param_test.sh and run_syscall_errors_test.sh which set up the environment for test binaries and run them with various parameters. Currently we list these test binaries in TEST_GEN_PROGS but this results in the kselftest framework running them directly as well as via the runners, resulting in duplication and spurious failures when the environment is not correctly set up (eg, if glibc tries to use rseq). Move the binaries the runners invoke to TEST_GEN_PROGS_EXTENDED, binaries listed there are built but not run by the framework. The param_test benchmarks are not moved since they are not run by run_param_test.sh. Fixes: 830969e7821a ("selftests/rseq: Implement time slice extension test")

Mark Brown committed 6 months ago

Commit cb488281 parent 3da56dc1 file · +9 −6Browse files

Unified · Split

tools/testing/selftests/rseq/Makefile+9−6
@@ -14,12 +14,15 @@ LDLIBS += -lpthread -ldl · 13 unmodified lines
14# still track changes to header files and depend on shared object.14# still track changes to header files and depend on shared object.
15OVERRIDE_TARGETS = 115OVERRIDE_TARGETS = 1
16 16
17TEST_GEN_PROGS = basic_test basic_percpu_ops_test basic_percpu_ops_mm_cid_test param_test \17TEST_GEN_PROGS = basic_test basic_percpu_ops_test basic_percpu_ops_mm_cid_test \
18 param_test_benchmark param_test_compare_twice param_test_mm_cid \18 param_test_benchmark param_test_mm_cid_benchmark slice_test
19 param_test_mm_cid_benchmark param_test_mm_cid_compare_twice \19
20 syscall_errors_test slice_test20TEST_GEN_PROGS_EXTENDED = librseq.so \
21 21 param_test \
22TEST_GEN_PROGS_EXTENDED = librseq.so22 param_test_compare_twice \
23 param_test_mm_cid \
24 param_test_mm_cid_compare_twice \
25 syscall_errors_test
23 26
24TEST_PROGS = run_param_test.sh run_syscall_errors_test.sh27TEST_PROGS = run_param_test.sh run_syscall_errors_test.sh
25 28

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t