]> Git Repo - linux.git/commitdiff
Merge tag 'linux-kselftest-4.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel...
authorLinus Torvalds <[email protected]>
Sat, 7 Apr 2018 18:54:21 +0000 (11:54 -0700)
committerLinus Torvalds <[email protected]>
Sat, 7 Apr 2018 18:54:21 +0000 (11:54 -0700)
Pull kselftest update from Shuah Khan:
 "This Kselftest update for 4.17-rc1 consists of:

   - Test build error fixes

   - Fixes to prevent intel_pstate from building on non-x86 systems.

   - New test for ion with vgem driver.

   - Change to print the test name to /dev/kmsg to add context to kernel
     failures if any uncovered from running the test.

   - Kselftest framework enhancements to add KSFT_TAP_LEVEL environment
     variable to prevent nested TAP headers being printed in the
     Kselftest output.

     Nested TAP13 headers could cause problems for some parsers. This
     change suppresses the nested headers from test programs and test
     shell scripts with changes to framework and Makefiles without
     changing the tests"

* tag 'linux-kselftest-4.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
  selftests/intel_pstate: Fix build rule for x86
  selftests: Print the test we're running to /dev/kmsg
  selftests/seccomp: Allow get_metadata to XFAIL
  selftests/android/ion: Makefile: fix build error
  selftests: futex Makefile add top level TAP header echo to RUN_TESTS
  selftests: Makefile set KSFT_TAP_LEVEL to prevent nested TAP headers
  selftests: lib.mk set KSFT_TAP_LEVEL to prevent nested TAP headers
  selftests: kselftest framework: add handling for TAP header level
  selftests: ion: Add simple test with the vgem driver
  selftests: ion: Remove some prints

1  2 
tools/testing/selftests/Makefile

index dbda89c9d9b92544854c459364dcc1d37d8d5a32,f4dfee6ea8a429e9a8cd52d57e0135e7e56e3afe..bae6a4e9f2ee108bc7edc1749c0f2a3ebbb7b63d
@@@ -7,7 -7,6 +7,7 @@@ TARGETS += cpufre
  TARGETS += cpu-hotplug
  TARGETS += efivarfs
  TARGETS += exec
 +TARGETS += filesystems
  TARGETS += firmware
  TARGETS += ftrace
  TARGETS += futex
@@@ -67,6 -66,12 +67,12 @@@ ifndef BUIL
    BUILD := $(shell pwd)
  endif
  
+ # KSFT_TAP_LEVEL is used from KSFT framework to prevent nested TAP header
+ # printing from tests. Applicable to run_tests case where run_tests adds
+ # TAP header prior running tests and when a test program invokes another
+ # with system() call. Export it here to cover override RUN_TESTS defines.
+ export KSFT_TAP_LEVEL=`echo 1`
  export BUILD
  all:
        @for TARGET in $(TARGETS); do           \
@@@ -126,11 -131,14 +132,14 @@@ ifdef INSTALL_PAT
        echo "else" >> $(ALL_SCRIPT)
        echo "  OUTPUT=/dev/stdout" >> $(ALL_SCRIPT)
        echo "fi" >> $(ALL_SCRIPT)
+       echo "export KSFT_TAP_LEVEL=`echo 1`" >> $(ALL_SCRIPT)
  
        for TARGET in $(TARGETS); do \
                BUILD_TARGET=$$BUILD/$$TARGET;  \
-               echo "echo ; echo Running tests in $$TARGET" >> $(ALL_SCRIPT); \
+               echo "echo ; echo TAP version 13" >> $(ALL_SCRIPT);     \
+               echo "echo Running tests in $$TARGET" >> $(ALL_SCRIPT); \
                echo "echo ========================================" >> $(ALL_SCRIPT); \
+               echo "[ -w /dev/kmsg ] && echo \"kselftest: Running tests in $$TARGET\" >> /dev/kmsg" >> $(ALL_SCRIPT); \
                echo "cd $$TARGET" >> $(ALL_SCRIPT); \
                make -s --no-print-directory OUTPUT=$$BUILD_TARGET -C $$TARGET emit_tests >> $(ALL_SCRIPT); \
                echo "cd \$$ROOT" >> $(ALL_SCRIPT); \
This page took 0.062487 seconds and 4 git commands to generate.