mirror of
https://github.com/troglobit/finit.git
synced 2026-11-01 13:10:32 +00:00
test: Let Autoconf generate env vars for tests
This simplifies the setup script a lot, and also makes it easier to run tests independently. Signed-off-by: Jacques de Laval <jacques@de-laval.se>
This commit is contained in:
1 parent
cde580ffce
commit
48b732e53d
7 files changed
+17
-17
No files matched your search
+1
-6
@@ -12,9 +12,4 @@ fi
|
||||
|
||||
# shellcheck disable=SC2154
|
||||
make -C "$top_builddir" DESTDIR="$(pwd)/test-root/" install
|
||||
FINITBIN="$(pwd)/$top_builddir/src/finit" make -C test-root/ # DESTDIR="$(pwd)/test-root/"
|
||||
config_h="$top_builddir/config.h"
|
||||
echo "export TESTENV_PATH=/bin:/sbin:$PREFIX/sbin:$PREFIX/bin" > test.env
|
||||
|
||||
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
|
||||
FINITBIN="$(pwd)/$top_builddir/src/finit" make -C test-root/
|
||||
Reference in new issue
Block a user