]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
Documentation: document custom config setup
authorOmar Sandoval <osandov@fb.com>
Wed, 23 May 2018 00:11:11 +0000 (17:11 -0700)
committerOmar Sandoval <osandov@fb.com>
Wed, 23 May 2018 00:11:11 +0000 (17:11 -0700)
To quote Johannes Thumshirn's patch which inspired this one: "The config
file is bash and it gets sourced, so all bash magic is doable in there
as well. Document it so others don't have to re-discover this gem as
well."

Signed-off-by: Omar Sandoval <osandov@fb.com>
Documentation/running-tests.md

index a479d5e94c5e06a56f7725036c79313abcb0d3e3..67e191dfa613b3847983d31fa4c006d1035f08cc 100644 (file)
@@ -66,3 +66,23 @@ command line option.
 QUICK_RUN=1
 TIMEOUT=30
 ```
+
+### Custom Setup
+
+The `config` file is really just a bash file that is sourced at the beginning
+of the test run, so it can be used to do any special setup you need. For
+example, you could configure `PATH` to find an executable you built from
+source:
+
+```sh
+export PATH="/root/fio:$PATH"
+```
+
+Or, if your setup doesn't mount `configfs` automatically (it probably does),
+you could mount it:
+
+```sh
+if ! findmnt -t configfs /sys/kernel/config > /dev/null; then
+       mount -t configfs configfs /sys/kernel/config
+fi
+```