From: "Christian Göttsche" <cgzones@googlemail.com>
To: selinux@vger.kernel.org
Subject: [PATCH 2/2] libsemanage/tests: consider DESTDIR
Date: Fri, 2 Jun 2023 15:06:46 +0200 [thread overview]
Message-ID: <20230602130646.24835-2-cgzones@googlemail.com> (raw)
In-Reply-To: <20230602130646.24835-1-cgzones@googlemail.com>
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(-)
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)
--
2.40.1
next prev parent reply other threads:[~2023-06-02 13:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-02 13:06 [PATCH 1/2] secilc: consider DESTDIR in tests Christian Göttsche
2023-06-02 13:06 ` Christian Göttsche [this message]
2023-06-02 14:28 ` Petr Lautrbach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230602130646.24835-2-cgzones@googlemail.com \
--to=cgzones@googlemail.com \
--cc=selinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox