Jacques de Laval
2f439194e5
test: Fix testenv-root lingering in build dir
...
Signed-off-by: Jacques de Laval <jacques@de-laval.se >
2021-02-26 15:35:07 +01:00
Jacques de Laval
ea4fe2045d
test: Add sane default for TESTENV_ROOT; enable easier independent test runs
...
Signed-off-by: Jacques de Laval <jacques@de-laval.se >
2021-02-25 17:38:56 +01:00
Jacques de Laval
3c32cbfd9e
test: Make /var/lock readable in test teardown, so that it can be removed later
...
Signed-off-by: Jacques de Laval <jacques@de-laval.se >
2021-02-25 11:14:49 +01:00
Jacques de Laval
691bc58f0e
test: Add support for starting Finit in debug mode
...
Signed-off-by: Jacques de Laval <jacques@de-laval.se >
2021-02-25 00:53:30 +01:00
Jacques de Laval
1efdbeda16
Merge branch 'wip-tests' into wip-tests-build-refactor
...
Signed-off-by: Jacques de Laval <jacques@de-laval.se >
2021-02-24 18:48:26 +01:00
Jacques de Laval
a5ef5f3104
test: Fix make check
...
Signed-off-by: Jacques de Laval <jacques@de-laval.se >
2021-02-24 16:01:43 +01:00
Magnus Malm
2c055cb954
test: Minor adjustments to improve consistency between test code structure
...
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-24 13:20:13 +01:00
Magnus Malm
f214098560
test: Minor refactor to reduce test code duplication
...
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-24 13:13:38 +01:00
Jacques de Laval
05901a90aa
test: Fix distcheck
...
Signed-off-by: Jacques de Laval <jacques@de-laval.se >
2021-02-23 23:20:39 +01:00
Magnus Malm
27ad3b5a7f
test: Minor cleanup in lib.sh
...
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-23 11:19:57 +01:00
Magnus Malm
3ec788a6cf
test: Minor tweaks of how/when to print testenv stuff
...
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-23 11:19:57 +01:00
Magnus Malm
5e20abef8d
test: Print running test name with log()
...
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-23 11:19:57 +01:00
Magnus Malm
3d01728d2e
test: Add testenv_enter.sh to ease debugging testenv
...
The script testenv_enter.sh, by default, runs /bin/sh in the environment
currently setup.
A bit easier than copy pasting the old hint text printed before test run.
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-23 11:19:57 +01:00
Magnus Malm
4480010d4a
test: Add support for teardown in tests
...
If a test defines a function 'test_teardown(), that function will be
called before the test env teardown is run.
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-23 08:55:11 +01:00
Jacques de Laval
70773105ac
test: Tell Finit to shut down rather than reboot in teardown
...
Signed-off-by: Jacques de Laval <jacques@de-laval.se >
2021-02-23 01:09:46 +01:00
Jacques de Laval
17d0835d63
test: Only echo last output of command in retry
...
Signed-off-by: Jacques de Laval <jacques@de-laval.se >
2021-02-23 00:32:36 +01:00
Jacques de Laval
2c56e20941
test: Name test-lib appropriately
...
Signed-off-by: Jacques de Laval <jacques@de-laval.se >
2021-02-22 22:12:34 +01:00