selftests: lib: Skip tests on missing test modules
authorSumit Semwal <sumit.semwal@linaro.org>
Tue, 20 Jun 2017 04:48:18 +0000 (10:18 +0530)
committerShuah Khan <shuahkh@osg.samsung.com>
Fri, 23 Jun 2017 15:41:53 +0000 (09:41 -0600)
commite0912c0129038e1e8eb20e0441fc3d6b33215d68
treef98c65fc3c591018a194eab96657a656e83eb462
parent34539b6c487c3d1cd1f3cafd1643e5ca89167813
selftests: lib: Skip tests on missing test modules

With older kernels, printf.sh and bitmap.sh fail because they can't find
the respective test modules they are looking for.

Use modprobe dry run to check for missing test_XXX module. Error out with
the same error code as prime_numbers.sh.

Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/lib/bitmap.sh
tools/testing/selftests/lib/printf.sh