summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKevin Shelton <kmshelton@chromium.org>2020-06-11 15:57:16 -0700
committerCommit Bot <commit-bot@chromium.org>2020-06-11 23:29:54 +0000
commitc7fea151a88925c8167d7ad788452cdca3635215 (patch)
tree7292e011a687ca188bd473209e030cd24ac0da63 /docs
parentf3356585d82fe4b400fe070885e6c437481fc46c (diff)
downloadchrome-ec-c7fea151a88925c8167d7ad788452cdca3635215.tar.gz
unit_tests.md: refine tutorial
BRANCH=none BUG=b:157576189 TEST=rendered in gitiles Signed-off-by: Kevin Shelton <kmshelton@chromium.org> Change-Id: I925d396c5f0d9e9ef6fe6349c5ffb1ea2ab2eaf1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2242397 Commit-Queue: Tom Hughes <tomhughes@chromium.org> Tested-by: Tom Hughes <tomhughes@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Diffstat (limited to 'docs')
-rw-r--r--docs/unit_tests.md10
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/unit_tests.md b/docs/unit_tests.md
index 787367c718..952d16b733 100644
--- a/docs/unit_tests.md
+++ b/docs/unit_tests.md
@@ -71,8 +71,8 @@ void run_test(int argc, char **argv)
}
```
-Create a `tasklist` file for you test that lists the tasks that should run as
-part of the test:
+In the [`test`] subdirectory, create a `tasklist` file for your test that lists
+the tasks that should run as part of the test:
`test/my_test.tasklist`:
@@ -91,6 +91,12 @@ Add the test to the `Makefile`:
test-list-host += my_test
```
+and
+
+```Makefile
+my_test-y=my_test.o
+```
+
Make sure you test shows up in the "host" tests:
```bash