Message ID | 20230602130646.24835-2-cgzones@googlemail.com (mailing list archive) |
---|---|
State | Rejected |
Delegated to: | Petr Lautrbach |
Headers | show |
Series | [1/2] secilc: consider DESTDIR in tests | expand |
diff --git a/libsemanage/tests/Makefile b/libsemanage/tests/Makefile index 69f49a36..00f2fcf8 100644 --- a/libsemanage/tests/Makefile +++ b/libsemanage/tests/Makefile @@ -18,11 +18,11 @@ $(EXECUTABLE): $(OBJECTS) ../src/libsemanage.a $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) %.policy: %.cil - ../../secilc/secilc $*.cil -o $*.policy -f /dev/null + ../../scripts/env_use_destdir ../../secilc/secilc $*.cil -o $*.policy -f /dev/null clean distclean: rm -rf $(OBJECTS) $(POLICIES) $(EXECUTABLE) test: all - ./$(EXECUTABLE) + ../../scripts/env_use_destdir ./$(EXECUTABLE)
Use the script `env_use_destdir` to preload libsepol and libsemanage from the DESTDIR location to support development changes like policy version bumps. Signed-off-by: Christian Göttsche <cgzones@googlemail.com> --- libsemanage/tests/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)