|author||Luke Shumaker <firstname.lastname@example.org>||2014-10-01 03:04:58 -0400|
|committer||Luke Shumaker <email@example.com>||2014-10-01 03:04:58 -0400|
add a section about testing to HACKING.md
Diffstat (limited to 'HACKING.md')
1 files changed, 13 insertions, 0 deletions
@@ -26,6 +26,19 @@ irc.freenode.net#parabola or in personal messages. My account may be
online even if I'm not; I will eventually see your it, I do a search
for mentions of "luke" on #parabola every time I get on.
+Please write unit tests for new things. Tests can be run with `make
+check`, which just runs `./testenv roundup` in the `test/` directory.
+Relatedly, you need the `roundup` tool to run the tests. `./testenv`
+can be given `--no-network` and/or `--no-sudo` to dissable tests that
+require those things. Make can be made to pass those things in by
+setting `TESTENVFLAGS`. If you don't dissable either, I *strongly*
+recommend setting TMPDIR to somewhere on a btrfs partition before
+running the tests; otherwise the chroot tests will take forever. I
+mean, they already take long on btrfs, but without it... _dang_.