]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
tests/libsubid/04_nss: fix setting basedir
authorChris Hofstaedtler <zeha@debian.org>
Sun, 7 Jul 2024 00:11:45 +0000 (02:11 +0200)
committerSerge Hallyn <serge@hallyn.com>
Thu, 18 Jul 2024 13:52:35 +0000 (08:52 -0500)
Align on variable name BUILD_BASE_DIR for overriding the toplevel
directory. This is the same name as accepted by tests/common/config.sh.

Without this, the test libsubid/04_nss fails in Debian's autopkgtests.

Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
tests/libsubid/04_nss/Makefile

index 7d7ae3e6e73d344b8ef76a3a175b704eb311d1c9..3fbf989e5c16f7404d59d09f11210ea22383d9c5 100644 (file)
@@ -1,7 +1,7 @@
 all: test_nss libsubid_zzz.so
 
-BASE_TEST_DIR ?= $(shell git rev-parse --show-toplevel)
-basedir := $(BASE_TEST_DIR)
+BUILD_BASE_DIR ?= $(shell git rev-parse --show-toplevel)
+basedir := $(BUILD_BASE_DIR)
 
 test_nss: test_nss.c $(basedir)/lib/nss.c
        gcc -c -I$(basedir)/lib/ -I$(basedir) -o test_nss.o test_nss.c