mirror of
git://git.yoctoproject.org/poky
synced 2026-10-02 18:18:12 +00:00
The quilt ptest uses a custom Makefile to implement the
"make check" rule, but the ptest Makefile does not export
the variable QUILT_PC, which is user-settable and normally
defaults to ".pc". This causes failures e.g. import.test
with "rm -rf patches/ %{QUILT_PC}/", evaluating to
"rm -rf patches/ /" if the variable is not set by the
Makefile.
These ptests broke in:
73d6034f6b quilt: update to 0.66
when the upstream quilt developers enabled users to specify
their own QUILT_PC string.
(From OE-Core rev: 7ef7923bd9161d562298ace68491a2230210c3e4)
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
15 lines
389 B
Makefile
15 lines
389 B
Makefile
PATH := $(CURDIR)/bin:$(CURDIR)/compat:$(PATH)
|
|
QUILT_DIR := $(CURDIR)/quilt
|
|
QUILTRC := $(CURDIR)/test/test.quiltrc
|
|
export QUILT_DIR QUILTRC
|
|
CHECK_ENV := P=patches/; _P=../patches/; export P _P;
|
|
CHECK_ENV += QUILT_PC=.pc; export QUILT_PC
|
|
-include test/.depend
|
|
|
|
check-% : test/%.test
|
|
@LANG=C; LC_ALL=C; \
|
|
export LANG LC_ALL; \
|
|
$(CHECK_ENV); \
|
|
cd $(<D); \
|
|
./run -q $(<F)
|