Skip to content

Commit 38cd303

Browse files
committed
secilc: run tests against development version of libsepol
Since secilc is dynamically linked against libsepol do not run tests against the system version of libsepol to support new features currently in development. Signed-off-by: Christian Göttsche <[email protected]>
1 parent 66da581 commit 38cd303

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

secilc/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ $(SECILC): $(SECILC_OBJS)
3434
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
3535

3636
test: $(SECILC)
37-
./$(SECILC) test/policy.cil
38-
./$(SECILC) -c $(POL_VERS) -O -M 1 -f /dev/null -o opt-actual.bin test/opt-input.cil
37+
env LD_LIBRARY_PATH="$(DESTDIR)/lib:$(DESTDIR)/usr/lib" ./$(SECILC) test/policy.cil
38+
env LD_LIBRARY_PATH="$(DESTDIR)/lib:$(DESTDIR)/usr/lib" ./$(SECILC) -c $(POL_VERS) -O -M 1 -f /dev/null -o opt-actual.bin test/opt-input.cil
3939
$(CHECKPOLICY) -b -C -M -o opt-actual.cil opt-actual.bin >/dev/null
4040
$(DIFF) test/opt-expected.cil opt-actual.cil
4141

0 commit comments

Comments
 (0)