Magnus Malm
bf863673c8
Update list of contributors
...
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-03-01 09:26:31 +01:00
Magnus Malm
76b2a846a2
test: Slightly improve names of test directories
...
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-24 14:54:45 +01:00
Magnus Malm
e77f3f4d74
test: Use initctl in favor of kill -SIGHUP when reloading finit
...
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-24 14:31:18 +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
Magnus Malm
6027e94c65
Merge remote-tracking branch 'upstream/master' into wip-tests
2021-02-24 10:22:57 +01:00
Magnus Malm
25ffc3192f
test: Add two new tests
...
* test_start_stop_service
Test that we can start/stop (via initctl) a service configured in
finit.conf
* test_start_stop_service_sub_config
Test that we can start/stop (via initctl) a service configured in
finit.d/ files
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-23 15:30:42 +01:00
Magnus Malm
51fe6a15e9
test: Improve add/remove sub config test
...
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-23 15:27:33 +01:00
Magnus Malm
6bcb9e9030
test: Populate/cleanup /etc "manually" via Makefile/tests
...
For now, do not mount /etc as tmpfs, but instead create the dir when
building the rootfs via test/test_root/Makefile.
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-23 11:24:54 +01:00
Magnus Malm
b364fd7d6a
test: Add test for dynamically add/remove service in finit.d/ files
...
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-23 11:24:54 +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
eda9ae4c3e
test: Rename start/stop service test to add/remove dynamic service
...
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-23 11:19:57 +01:00
Magnus Malm
bb095bfd5d
test: Minor tweak on test's output
...
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-23 11:19:57 +01:00
Magnus Malm
8a2cc2aeb8
test: Move service.sh to test/common/
...
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-23 11:19:57 +01:00
Magnus Malm
6d9374590f
test: Add test start timestamp
...
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
Magnus Malm
cd2fcac4cf
test: Handle finit's default conf dirs/files better in test env
...
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-22 16:46:25 +01:00
Magnus Malm
adc9c40fe1
test: Include initctl in test run env
...
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-22 16:45:39 +01:00
Magnus Malm
644273fc5c
test: Add 2 convenience shell functions for test development
...
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-22 15:47:59 +01:00
Magnus Malm
4d4fd40286
Follow-up to 72a892e, Add missing '/'
...
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-17 11:46:39 +01:00
Magnus Malm
72a892ef55
Fix #151 : Install logit in libexec
...
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-17 11:33:48 +01:00
Magnus Malm
97196d6520
contrib: alpine: Add finit builtin watchdog daemon
...
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-17 10:34:10 +01:00
Magnus Malm
20c5788430
contrib: debian: Change sshd config to use absolute path
...
Signed-off-by: Magnus Malm <magnusmalm@gmail.com >
2021-02-15 13:53:22 +01:00