mirror of
https://github.com/troglobit/finit.git
synced 2026-10-15 10:29:35 +00:00
test: Fix make check
Signed-off-by: Jacques de Laval <jacques@de-laval.se>
This commit is contained in:
1 parent
05901a90aa
commit
a5ef5f3104
8 files changed
+26
-16
No files matched your search
+20
-8
@@ -3,13 +3,25 @@
|
||||
set -eu
|
||||
|
||||
# shellcheck disable=SC2154
|
||||
"$srcdir"/../configure --prefix=/
|
||||
make
|
||||
make DESTDIR="$(pwd)/test_root/" install
|
||||
if [ ! -f "$srcdir"/../config.status ]; then
|
||||
"$srcdir"/../configure --prefix=/
|
||||
make
|
||||
make DESTDIR="$(pwd)/test_root/" install
|
||||
|
||||
mkdir -p test_root/bin
|
||||
cp "${srcdir}/test_root/bin/chrootsetup.sh" test_root/bin
|
||||
cp "${srcdir}/test_root/busybox-x86_64.md5" test_root/
|
||||
cp "${srcdir}/test_root/Makefile" test_root/
|
||||
mkdir -p test_root/bin
|
||||
cp "${srcdir}/test_root/bin/chrootsetup.sh" test_root/bin
|
||||
cp "${srcdir}/test_root/busybox-x86_64.md5" test_root/
|
||||
cp "${srcdir}/test_root/Makefile" test_root/
|
||||
make -C test_root/
|
||||
config_h='./config.h'
|
||||
echo "export PATH=/bin:/sbin" > test.env
|
||||
else
|
||||
# make
|
||||
make -C ../ DESTDIR="$(pwd)/test_root/" install
|
||||
FINITBIN=../../src/finit make -C test_root/
|
||||
config_h='../config.h'
|
||||
echo "export PATH=/bin:/sbin:$PREFIX/sbin:$PREFIX/bin" > test.env
|
||||
fi
|
||||
|
||||
make -C test_root/
|
||||
echo "export FINIT_CONF=$(grep FINIT_CONF $config_h | cut -d' ' -f3 | cut -d'"' -f2)" >> test.env
|
||||
echo "export FINIT_RCSD=$(grep FINIT_RCSD $config_h | cut -d' ' -f3 | cut -d'"' -f2)" >> test.env
|
||||
Reference in new issue
Block a user