test: Add standard dir for test assets

Signed-off-by: Jacques de Laval <jacques@de-laval.se>
This commit is contained in:
Jacques de Laval
2021-02-22 22:30:10 +01:00
parent 2c56e20941
commit 07521e043a
3 changed files with 5 additions and 2 deletions
+1
View File
@@ -26,6 +26,7 @@
/proc
/sbin
/sys
/test_assets
/tmp
/usr
/var
+2
View File
@@ -34,6 +34,7 @@ dirs = ./dev \
./proc \
./sbin \
./sys \
./test_assets \
./tmp
_libs_src = $(shell ldd $(FINITBIN) | grep -Eo '/[^ ]+')
@@ -74,6 +75,7 @@ clean:
rm -rf ./proc
rm -rf ./sbin
rm -rf ./sys
rm -rf ./test_assets
rm -rf ./tmp
rm -rf ./usr
rm -rf ./var
+2 -2
View File
@@ -12,8 +12,8 @@ assert_num_children() {
# Test
say 'Set up a service'
cp "$TEST_DIR"/test_start_stop_service/service.sh "$TEST_DIR"/test_root/bin
texec sh -c "echo 'service [2345] kill:20 log /bin/service.sh' > $FINIT_CONF"
cp "$TEST_DIR"/test_start_stop_service/service.sh "$TEST_DIR"/test_root/test_assets/
texec sh -c "echo 'service [2345] kill:20 log /test_assets/service.sh' > $FINIT_CONF"
say 'Reload Finit'
texec kill -SIGHUP 1