From adc9c40fe13344139c136e1d4f98c7257bd2ada8 Mon Sep 17 00:00:00 2001 From: Magnus Malm Date: Mon, 22 Feb 2021 16:44:20 +0100 Subject: [PATCH] test: Include initctl in test run env Signed-off-by: Magnus Malm --- test/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/Makefile b/test/Makefile index f1a03975..09d6bcd9 100644 --- a/test/Makefile +++ b/test/Makefile @@ -3,6 +3,7 @@ ARCH ?= x86_64 FINITBIN ?= ../src/finit +INITCTLBIN ?= ../src/initctl BBVER ?= 1.31.0 BBBIN = busybox-$(ARCH) @@ -68,11 +69,14 @@ $(testroot_bin)/chrootsetup.sh: chrootsetup.sh $(testroot)/sbin/finit: $(FINITBIN) $(libs) cp $< $@ +$(testroot)/bin/initctl: $(INITCTLBIN) $(libs) + cp $< $@ + $(libs): mkdir -p $(dir $@) cp $(shell echo $@ | sed s/^$(testroot)//) $@ -check: $(binaries) $(testroot_bin)/chrootsetup.sh $(dirs) $(testroot)/sbin/finit +check: $(binaries) $(testroot_bin)/chrootsetup.sh $(dirs) $(testroot)/sbin/finit $(testroot)/bin/initctl ./runtest.sh test_start_stop_service/test.sh test-check: