mirror of
https://github.com/troglobit/finit.git
synced 2026-11-27 20:48:24 +00:00
test: Add test suite to Automake
Signed-off-by: Jacques de Laval <jacques@de-laval.se>
This commit is contained in:
1 parent
ee31c8551f
commit
e44d348f09
10 files changed
+41
-36
No files matched your search
+6
-5
@@ -51,8 +51,7 @@ $(BBBIN):
|
||||
wget -O $@ $(BBURL)
|
||||
md5sum -c $@.md5
|
||||
|
||||
$(testroot):
|
||||
mkdir $(testroot)
|
||||
$(testroot): $(binaries) $(testroot_bin)/chrootsetup.sh $(dirs) $(testroot)/sbin/finit $(testroot)/bin/initctl test-check
|
||||
|
||||
$(testroot_bin)/$(BBBIN): $(BBBIN)
|
||||
mkdir -p $(testroot_bin)
|
||||
@@ -76,12 +75,14 @@ $(libs):
|
||||
mkdir -p $(dir $@)
|
||||
cp $(shell echo $@ | sed s/^$(testroot)//) $@
|
||||
|
||||
check: $(binaries) $(testroot_bin)/chrootsetup.sh $(dirs) $(testroot)/sbin/finit $(testroot)/bin/initctl test-check
|
||||
./runtest.sh test_start_stop_service/test.sh
|
||||
check: $(testroot)
|
||||
./test_start_stop_service/test.sh
|
||||
|
||||
test-check:
|
||||
shellcheck $(shell find . -name '*.sh')
|
||||
|
||||
clean:
|
||||
rm -rf $(testroot)
|
||||
rm -rf $(testroot)/*
|
||||
rm -f $(BBBIN)
|
||||
rm -f ./test_start_stop_service/*.log
|
||||
rm -f ./test_start_stop_service/*.trs
|
||||
Reference in new issue
Block a user