it needs to be specified for the kernel/tests/tools/run_test_only.sh
script for most of the cases, since the switch to the pkg_install
method for the build and install of kunit test modules.
Fixes: fe0f4e33f6 ("ANDROID: Add kunit installation rules")
Change-Id: Ib4fbfa983ef29342119fe2ff3e939e4b8c116d49
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
The name in the kernel source is kunit-example-test,
there is no kunit-test-example defined
Fixes: df08ef1044 ("ANDROID: Add Android KUnit README")
Change-Id: I20b89b5c11ede45ef1b758c722b8bfca13e9c782
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Some KUnit tests require specific kernel modules to be installed. For example, regmap-kunit depends on regmap-ram and regmap-raw-ram.
Bug: 361411967
Test: abtd
Change-Id: I6e6862492c28e5dd3466a71cca713f1c44737fcd
Signed-off-by: Cheng-Cheng Lo <locc@google.com>
Use pkg_install to create installation rules for kunit test modules. To
build and install kunit test modules into /tmp/kunit_tests directory run:
$ tools/bazel run -- //common:kunit_tests_x86_64_dist -v \
--destdir /tmp/kunit_tests
Also updated the kunit Android README to use this rule instead of
creating tests.zip and unzipping it.
Bug: 324907235
Change-Id: I1e611cf8cc2836cb213526aa270da6fd422f7352
Signed-off-by: Joe Fradley <joefradley@google.com>
clk-gate_test.ko and clk_test.ko cause kernel panics when run and cannot
be currently used with tradefed.
Bug: 324958636
Change-Id: Idb06806d6f92cdde4d6bc4dfafb59480987490e9
Signed-off-by: Joe Fradley <joefradley@google.com>
Document how to run a KUnit test module and how to run the ACK KUnit
tests via tradefed. Also, reorganized the toos/testing/kunit/android
file and directory structure slightly. This required a tweak
BUILD.bazel.
Bug: 231159463
Change-Id: I09c47d36593e839911767112176fa84bd7e25fe4
Signed-off-by: Joe Fradley <joefradley@google.com>
Include KUnit modules and Tradefed test configuration inside
'tests.zip' alongside the kselftest tests. The zip can built via:
$ tools/bazel build //common:tests_zip_arm64
The KUnit tests can be executed on running device with matching kernel
via:
$ tradefed.sh run commandAndExit template/local_min --template:map \
test=suite/test_mapping_suite --include-filter kunit \
--tests-dir=<directory of zip contents> --primary-abi-only
Example zip structure:
Archive: bazel-bin/common/x86_64/tests.zip
testcases/kunit/kunit.config
testcases/kunit/x86_64/drivers/hid/hid-uclogic-test.ko
testcases/kunit/x86_64/drivers/iio/test/iio-test-format.ko
<truncate>
testcases/selftests/selftests.config
testcases/selftests/x86/futex_requeue
testcases/selftests/x86/futex_requeue_pi
<truncate>
testcases/selftests/x86_64/futex_requeue
testcases/selftests/x86_64/futex_requeue_pi
<truncate>
Bug: 311187098
Test build (x86_64): https://android-build.corp.google.com/builds/abtd/run/L50600030001493915
Test build (arm64): https://android-build.corp.google.com/builds/abtd/run/L76000030001501406
Change-Id: Ic53a000d9d797fc043a626d8892246d0faae2eab
Signed-off-by: Joe Fradley <joefradley@google.com>
Include KUnit modules and test configuration inside `tests.zip` alongside the kselftest tests.
Bug: 311187098
Change-Id: Ic82cd8611d0761435a45c8e82c7d10a009d01a73
Signed-off-by: Joe Fradley <joefradley@google.com>