mirror of
https://git.yoctoproject.org/poky
synced 2026-02-10 18:53:13 +01:00
The patch tool will apply patches by default with "fuzz", which is where if the hunk context isn't present but what is there is close enough, it will force the patch in. Whilst this is useful when there's just whitespace changes, when applied to source it is possible for a patch applied with fuzz to produce broken code which still compiles (see #10450). This is obviously bad. We'd like to eventually have do_patch() rejecting any fuzz on these grounds. For that to be realistic the existing patches with fuzz need to be rebased and reviewed. (From OE-Core rev: 8a5c1328c4ea63443a92813c54bd2229c9959ff9) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
Add 'build-test' and 'runtest-TESTS' targets to Makefile, to build and run tests
|
|
cross-compiled.
|
|
|
|
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
|
|
Upstream-Status: Pending
|
|
---
|
|
Index: Python-2.7.14/Makefile.pre.in
|
|
===================================================================
|
|
--- Python-2.7.14.orig/Makefile.pre.in
|
|
+++ Python-2.7.14/Makefile.pre.in
|
|
@@ -846,14 +846,19 @@ $(LIBRARY_OBJS) $(MODOBJS) Modules/pytho
|
|
|
|
.PHONY: test testall testuniversal buildbottest pythoninfo
|
|
|
|
-TESTOPTS= -l $(EXTRATESTOPTS)
|
|
+TESTOPTS= -l -v $(EXTRATESTOPTS)
|
|
TESTPROG= $(srcdir)/Lib/test/regrtest.py
|
|
-TESTPYTHON= $(RUNSHARED) ./$(BUILDPYTHON) -Wd -3 -E -tt $(TESTPYTHONOPTS)
|
|
-test: @DEF_MAKE_RULE@ platform
|
|
- -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
|
|
+TESTPYTHON= $(RUNSHARED) $(BUILDPYTHON) -Wd -3 -E -tt $(TESTPYTHONOPTS)
|
|
+test: build-test
|
|
+ $(MAKE) runtest-TESTS
|
|
+
|
|
+runtest-TESTS:
|
|
+ -find $(srcdir) -name '*.py[co]' -print | xargs rm -f
|
|
-$(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
|
|
$(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
|
|
|
|
+build-test: @DEF_MAKE_RULE@ platform
|
|
+
|
|
testall: @DEF_MAKE_RULE@ platform
|
|
-find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
|
|
$(TESTPYTHON) $(srcdir)/Lib/compileall.py
|