blob: 3b38d404c6b399db581eb7c9c11811001c9d2460 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Testing
=======
Please write unit tests for new things. Tests can be run with `make check`,
which just runs `./testenv bats cases` in the `test/` directory. You will need
the `bats` tool (the `bats` Parabola package) in order to run the tests. `bats`
can be given `--filter-tags !network,!sudo,!btrfs` to disable tests which
require those things. `make check` can be made to pass those flags in by
setting `BATS_FLAGS`. If `!btrfs` is not given, then TMPDIR *must* be on btrfs
partition (or else the tests that need btrfs will fail). If neither `!network`
nor `!sudo` is given, then I *strongly* recommend setting TMPDIR to somewhere on
a btrfs partition; otherwise the chroot tests will take forever. I mean, they
already take long on btrfs, but without it... _dang_.
|