ANDROID: Add KUnit test config and packaging rules for tests.zip
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>
Loading
Please sign in to comment