diff options
author | Yves Orton <demerphq@gmail.com> | 2022-04-12 09:33:49 +0200 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2022-04-13 23:59:16 +0800 |
commit | c255634865c0a2535b8498d24953c5ea0b0423fd (patch) | |
tree | 784db5482e791998721bde15633a76c77433ace2 /Makefile.SH | |
parent | 312e19dd11f83d1e87c9502ef8da108ffbaf5454 (diff) | |
download | perl-c255634865c0a2535b8498d24953c5ea0b0423fd.tar.gz |
Makefile.SH - reduce technical debt, use `runtests` for `make test_porting`
Currently `make test_porting` rolls its own `runtests` logic, which is
just technical debt waiting to cause trouble. It also means that the
porting tests do not actually get run *exactly* as they would through
`make test_harness` which seems like a bad thing generally. (Even if so
far nobody has noticed a problem.)
Some of our tests require special setup which is performed in
`runtests`. We should not unroll `runtests` just for the test_porting
target, even if /right now/ it happens to work most of the time. I say
most of the time because `make test_porting` won't do the same thing as
`make test_harness` would via `runtests` if the test is not executed
under a tty. It also doesn't fixup PWD on platforms that need it. (Not
sure if that is a problem, but it might be.) In the future we might add
additional guards or setup to runtests and then the `test_porting`
target would have to change.
Lastly, there is no reason to unroll `runtests` like this. It is quite
easy to do it right, so lets just do it right and not set a precedent
that is ok to bypass `runtests` in our Makefile infrastructure.
Diffstat (limited to 'Makefile.SH')
-rwxr-xr-x | Makefile.SH | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.SH b/Makefile.SH index d3d4258890..e6cb0e0284 100755 --- a/Makefile.SH +++ b/Makefile.SH @@ -1664,7 +1664,7 @@ test_reonly test-reonly: test_prep_reonly # Porting tests (well-formedness of pod, manifest, etc) test_porting test-porting: test_prep - cd t && $(RUN_PERL) harness porting/*.t ../lib/diagnostics.t + TEST_ARGS='porting/*.t lib/diagnostics.t' TESTFILE=harness $(RUN_TESTS) choose !NO!SUBS! |