Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Add 'build-test' and 'runtest-TESTS' targets to Makefile, to build and run tests |
| 2 | cross-compiled. |
| 3 | |
| 4 | Signed-off-by: Tudor Florea <tudor.florea@enea.com> |
| 5 | Upstream-Status: Pending |
| 6 | --- |
| 7 | diff -ruN a/Makefile.pre.in b/Makefile.pre.in |
| 8 | --- a/Makefile.pre.in 2013-06-27 10:44:11.033840532 +0200 |
| 9 | +++ b/Makefile.pre.in 2013-06-27 10:44:39.572635273 +0200 |
| 10 | @@ -709,14 +709,19 @@ |
| 11 | # generated bytecode. This is sometimes a very shy bug needing a lot of |
| 12 | # sample data. |
| 13 | |
| 14 | -TESTOPTS= -l $(EXTRATESTOPTS) |
| 15 | +TESTOPTS= -l -v $(EXTRATESTOPTS) |
| 16 | TESTPROG= $(srcdir)/Lib/test/regrtest.py |
| 17 | -TESTPYTHON= $(RUNSHARED) ./$(BUILDPYTHON) -Wd -3 -E -tt $(TESTPYTHONOPTS) |
| 18 | -test: all platform |
| 19 | - -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f |
| 20 | +TESTPYTHON= $(RUNSHARED) $(BUILDPYTHON) -Wd -3 -E -tt $(TESTPYTHONOPTS) |
| 21 | +test: build-test |
| 22 | + $(MAKE) runtest-TESTS |
| 23 | + |
| 24 | +runtest-TESTS: |
| 25 | + -find $(srcdir) -name '*.py[co]' -print | xargs rm -f |
| 26 | -$(TESTPYTHON) $(TESTPROG) $(TESTOPTS) |
| 27 | $(TESTPYTHON) $(TESTPROG) $(TESTOPTS) |
| 28 | |
| 29 | +build-test: all platform |
| 30 | + |
| 31 | testall: all platform |
| 32 | -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f |
| 33 | $(TESTPYTHON) $(srcdir)/Lib/compileall.py |