Commit Graph

9 Commits

Author SHA1 Message Date
9a3af13c51 tests: add jobsdir and testdir to ctx hash
This allows us to calculate those directories only once, and just pass
them around as necessary.
2021-03-04 23:19:48 -08:00
f08d0be1bd tests: replace the flat list of contexts with a hash
This way we can return more values without breaking callers.
2021-03-04 23:11:54 -08:00
387fe8005a tests/input-types: split out scminputs into individual tests
This makes the test faster (by removing it and replacing it with a
`TestScmInput` module that exports the `testScmInput` subroutine). Now,
all the input tests can be run in parallel.

Some of the `tests/jobs/*-update.sh` scripts were "broken" (e.g. tests
failed for various reasons on my machine), so I fixed those up as well.

Co-authored-by: gustavderdrache <gustavderdrache@gmail.com>
2021-03-04 13:58:48 -08:00
3fda37f65a RunCommand: Test 2021-02-24 13:43:25 -05:00
b2520267a9 Test setup: support arbitrary hydra config 2021-02-24 11:44:16 -05:00
cccdc70162 input-types.t: don't litter ./tests/ 2021-02-24 07:01:32 -05:00
62b2880dfc Give each test its own Nix directories
Otherwise we risk tripping over confusing statuses where a build is
"done" and "Cached", but we were expecting to run it.
2021-02-23 21:43:54 -05:00
fe1f2f0806 Create an ephemeral PostgreSQL database per test 2021-02-23 21:12:06 -05:00
2240035e20 Run tests with yath
This will let us run tests in parallel, and creates a more Perl-standard
test development experience.
2021-02-19 17:04:19 -05:00