Branch: refs/heads/yves/taint_disabled Home: https://github.com/Perl/perl5 Commit: d3ecbd7f0a15c3bd7f8da0fa90e2b80809935c8e https://github.com/Perl/perl5/commit/d3ecbd7f0a15c3bd7f8da0fa90e2b80809935c8e Author: Yves Orton <demer...@gmail.com> Date: 2023-03-31 (Fri, 31 Mar 2023)
Changed paths: M configpm M lib/Config.t Log Message: ----------- Config.pm - add taint_disabled and taint_support to %Config This adds 'taint_disabled' and 'taint_support' to Config.pm and %Config. This way people can use them while we decide what to do about the changes to Configure. We shouldn't need to have Configure changed to export status variables like this in Config.pm See: https://github.com/Perl-Toolchain-Gang/Test-Harness/pull/118 and: https://github.com/Perl/perl5/pull/20972 for related work that is stalled because we have not decided what to do about these variables. Commit: af06272eac24ad3ea5d06efc4864c75efffac402 https://github.com/Perl/perl5/commit/af06272eac24ad3ea5d06efc4864c75efffac402 Author: David Cantrell <da...@cantrell.org.uk> Date: 2023-03-31 (Fri, 31 Mar 2023) Changed paths: M .github/workflows/testsuite.yml Log Message: ----------- Automatically test without taint support Commit: 77c56f96da326b8438ebbdfbe14326af3a25aab1 https://github.com/Perl/perl5/commit/77c56f96da326b8438ebbdfbe14326af3a25aab1 Author: Yves Orton <demer...@gmail.com> Date: 2023-03-31 (Fri, 31 Mar 2023) Changed paths: M ext/XS-APItest/t/call.t M lib/B/Deparse.t M t/TEST M t/harness M t/run/switchDx.t M t/test.pl Log Message: ----------- test infra - Under -DNO_TAINT_SUPPORT skip tests that use -T or -t This patch uses a collection of heuristics to skip test files which would die on a perl compiled with -DNO_TAINT_SUPPORT. -DNO_TAINT_SUPPORT disables taint support in a "safe" way, such that if you try to use taint mode with the -t or -T options an exception will be thrown informing you that the perl you are using does not support taint. (The related setting -DSILENT_NO_TAINT_SUPPORT disables taint support but causes the -t and -T options to be silently ignored.) The error from using -t and -T is thrown very early in the process startup and there is no way to "gracefully" handle it and convert it into something else, for instance to skip a test file which contains it. This patch generally fixes our code to skip these tests. * Make t/TEST and t/harness check shebang lines and use filename checks to filter out tests that use -t or -T. Primarily this is the result of checking their shebang line, but some cpan/ files are excluded by name, either from a very short list of exclusions, or because their file name contains the word "taint". * test.pl - make run_multiple_progs() skip test cases based on the switches that part of the test definition. This function is used in a great deal of our internal tests, so it fixes a lot of tests in one go. * XS-APITest/t/call.t, t/run/switchDX.t, lib/B/Deparse.t - Skip a small set of tests in each file. Commit: 87c7f60e42610c19eea71bdfd0048359cfc5666d https://github.com/Perl/perl5/commit/87c7f60e42610c19eea71bdfd0048359cfc5666d Author: Yves Orton <demer...@gmail.com> Date: 2023-03-31 (Fri, 31 Mar 2023) Changed paths: M .github/workflows/testsuite.yml Log Message: ----------- workflows/testsuite.yaml - Add testing of -DNO_TAINT_SUPPORT Test that we are good with -DNO_TAINT_SUPPORT. Compare: https://github.com/Perl/perl5/compare/8bf72b430329...87c7f60e4261