1. Find the package with autotest tests:
emerge --search autotest | grep tests
2. Dry emerge it and look for your test in the output:
emerge-lumpy -pv chromeos-base/autotest-tests
Two things to note:
a. The first line will say something like: “chromeos-base/autotest-tests-0.0.1-r3531“
This means it’s emerging the r3531 ebuild.
Since we would like it to use our local bits, we need to cros_workon the package.
b. You will not find kernel_HdParmBasic in the output.
3. cros_workon the appropriate package:
cros_workon --board=<board name> start <package name>
eg: cros_workon --board=lumpy start autotest-tests
emerge the package: emerge-<board name> <package name>
eg: emerge-lumpy -pv chromeos-base/autotest-tests
Two things to note:
a. The first line will say something like:
“chromeos-base/autotest-tests-9999”
This is good, it means it’s pulling local bits.
b. You still will not find kernel_HdParmBasic in the output.
This is because your new test hasn’t been added to the ebuild yet.
4. Edit the ebuild to include your test:
Find the ebuild file: find -iname “autotest-tests-9999.ebuild” from src/third_party/.
a. It will most probably point you to:
third_party/chromiumos-overlay/chromeos-base/autotest-tests/autotest-tests-9999.ebuild.
b. open this file and add “+test_kernel_HdParmBasic” in the IUSE_TESTS section.
5. Emerge the new folder: