Commit Graph

8 Commits

Author SHA1 Message Date
Yongqin Liu a53bb4b36b ANDROID: Update kunit README on test_dir
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>
2024-11-19 22:04:30 +00:00
Yongqin Liu eaa8ddfc60 ANDROID: Update kunit README with correct kunit-example-test.ko name
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>
2024-11-14 21:40:25 +08:00
Hsin-Yi Chen 3fdb51797f ANDROID: Update README about kunit and selftest
Test: kernel/tests/tools/run_test_only.sh \
      -t 'kunit soc-utils-test' -s 127.0.0.1:6520
Bug: 355559072
Change-Id: I256855673cbe0ec1ea02d213d9c35c49e2d8e21b
Signed-off-by: Hsin-Yi Chen <hsinyichen@google.com>
2024-10-30 20:42:50 +00:00
Betty Zhou 2dd00822d4 ANDROID: Shorten the length of line in kunit/android/README.
Test: none
Bug: 345309292
Signed-off-by: Betty Zhou <bettyzhou@google.com>
Change-Id: I4343627fb770e9ca0b2a2cb3c292fde3f8ca5980
2024-09-09 22:35:44 +00:00
Betty Zhou 1d249e2f64 ANDROID: Update kunit README with guide on rmmod lsmod.
Change-Id: I73c3ffc55494ec6b15c74da86d2589a1fe91f530
Signed-off-by: Betty Zhou <bettyzhou@google.com>
Bug: 345309292
2024-08-26 21:50:35 +00:00
Betty Zhou cb6fcbe17c ANDROID: Update README with CONFIG_KUNT=m approach.
Test: local tests
Bug: 345309292
Change-Id: I609800e40b40609b5d0c2f6a91a4bb9a00bbdb7a
Signed-off-by: Betty Zhou <bettyzhou@google.com>
2024-07-30 16:37:28 -07:00
Joe Fradley fe0f4e33f6 ANDROID: Add kunit installation rules
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>
2024-04-05 09:14:07 -07:00
Joe Fradley df08ef1044 ANDROID: Add Android KUnit README
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>
2024-02-12 17:30:52 -08:00