Skip to content

Commit

Permalink
secilc: run tests against development version of libsepol
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
cgzones committed Jul 21, 2022
1 parent bea253e commit a37dc3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions secilc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ $(SECILC): $(SECILC_OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)

test: $(SECILC)
./$(SECILC) test/policy.cil
./$(SECILC) -c $(POL_VERS) -O -M 1 -f /dev/null -o opt-actual.bin test/opt-input.cil
env LD_LIBRARY_PATH="$(DESTDIR)/lib:$(DESTDIR)/usr/lib" ./$(SECILC) test/policy.cil
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
$(CHECKPOLICY) -b -C -M -o opt-actual.cil opt-actual.bin >/dev/null
$(DIFF) test/opt-expected.cil opt-actual.cil

Expand Down

0 comments on commit a37dc3c

Please sign in to comment.