Make extensions in ext run their tests from the extension's own directory.
authorNicholas Clark <nick@ccl4.org>
Thu, 27 Aug 2009 23:44:15 +0000 (00:44 +0100)
committerNicholas Clark <nick@ccl4.org>
Thu, 27 Aug 2009 23:44:15 +0000 (00:44 +0100)
commit2adbc9b6919cad1240a834325b355e9b2d5efd67
treea8ca75ac9ed7b8284a533b3f24c8407110d0c546
parentd418880282b996e8cb066a570596b473fa7900da
Make extensions in ext run their tests from the extension's own directory.

Inspired by, and in parts borrows from, Schwern's branch on github, but takes a
slightly different approach in places.

Not quite perfect yet - ext/File-Glob still runs from t, at least one FIXME
needs fixing, and the changes to dual-life modules' tests need to be filtered
back upstream, and possibly modified to suit their respective authors.

But it works.
155 files changed:
MANIFEST
Porting/Maintainers.pl
ext/B/t/lint.t
ext/B/t/pragma.t
ext/Compress-Raw-Bzip2/t/compress/CompTestUtils.pm [copied from t/lib/compress/CompTestUtils.pm with 100% similarity]
ext/Compress-Raw-Zlib/t/compress/CompTestUtils.pm [copied from t/lib/compress/CompTestUtils.pm with 100% similarity]
ext/Cwd/t/cwd.t
ext/Cwd/t/taint.t
ext/Cwd/t/win32.t
ext/DB_File/t/db-btree.t
ext/DB_File/t/db-hash.t
ext/DB_File/t/db-recno.t
ext/Devel-DProf/dprof/V.pm [moved from t/lib/dprof/V.pm with 96% similarity]
ext/Devel-DProf/dprof/test1_t [moved from t/lib/dprof/test1_t with 100% similarity]
ext/Devel-DProf/dprof/test1_v [moved from t/lib/dprof/test1_v with 100% similarity]
ext/Devel-DProf/dprof/test2_t [moved from t/lib/dprof/test2_t with 100% similarity]
ext/Devel-DProf/dprof/test2_v [moved from t/lib/dprof/test2_v with 100% similarity]
ext/Devel-DProf/dprof/test3_t [moved from t/lib/dprof/test3_t with 100% similarity]
ext/Devel-DProf/dprof/test3_v [moved from t/lib/dprof/test3_v with 100% similarity]
ext/Devel-DProf/dprof/test4_t [moved from t/lib/dprof/test4_t with 100% similarity]
ext/Devel-DProf/dprof/test4_v [moved from t/lib/dprof/test4_v with 100% similarity]
ext/Devel-DProf/dprof/test5_t [moved from t/lib/dprof/test5_t with 100% similarity]
ext/Devel-DProf/dprof/test5_v [moved from t/lib/dprof/test5_v with 100% similarity]
ext/Devel-DProf/dprof/test6_t [moved from t/lib/dprof/test6_t with 100% similarity]
ext/Devel-DProf/dprof/test6_v [moved from t/lib/dprof/test6_v with 100% similarity]
ext/Devel-DProf/dprof/test7_t [moved from t/lib/dprof/test7_t with 100% similarity]
ext/Devel-DProf/dprof/test7_v [moved from t/lib/dprof/test7_v with 100% similarity]
ext/Devel-DProf/dprof/test8_t [moved from t/lib/dprof/test8_t with 100% similarity]
ext/Devel-DProf/dprof/test8_v [moved from t/lib/dprof/test8_v with 100% similarity]
ext/Devel-DProf/t/DProf.t
ext/Devel-PPPort/mktests.PL
ext/Devel-PPPort/t/ppphtest.t
ext/Devel-Peek/t/Peek.t
ext/Digest-MD5/t/align.t
ext/Digest-MD5/t/files.t
ext/Digest-MD5/t/md5-aaa.t
ext/Encode/t/piconv.t [deleted file]
ext/Errno/t/Errno.t
ext/Fcntl/t/fcntl.t
ext/Fcntl/t/mode.t
ext/Fcntl/t/syslfs.t
ext/Filter-Util-Call/filter-util.pl [moved from t/lib/filter-util.pl with 100% similarity]
ext/Filter-Util-Call/t/call.t
ext/GDBM_File/t/gdbm.t
ext/IO-Compress/t/compress/CompTestUtils.pm [moved from t/lib/compress/CompTestUtils.pm with 100% similarity]
ext/IO-Compress/t/compress/any.pl [moved from t/lib/compress/any.pl with 100% similarity]
ext/IO-Compress/t/compress/anyunc.pl [moved from t/lib/compress/anyunc.pl with 100% similarity]
ext/IO-Compress/t/compress/destroy.pl [moved from t/lib/compress/destroy.pl with 100% similarity]
ext/IO-Compress/t/compress/encode.pl [moved from t/lib/compress/encode.pl with 100% similarity]
ext/IO-Compress/t/compress/generic.pl [moved from t/lib/compress/generic.pl with 100% similarity]
ext/IO-Compress/t/compress/merge.pl [moved from t/lib/compress/merge.pl with 100% similarity]
ext/IO-Compress/t/compress/multi.pl [moved from t/lib/compress/multi.pl with 100% similarity]
ext/IO-Compress/t/compress/newtied.pl [moved from t/lib/compress/newtied.pl with 100% similarity]
ext/IO-Compress/t/compress/oneshot.pl [moved from t/lib/compress/oneshot.pl with 100% similarity]
ext/IO-Compress/t/compress/prime.pl [moved from t/lib/compress/prime.pl with 100% similarity]
ext/IO-Compress/t/compress/tied.pl [moved from t/lib/compress/tied.pl with 100% similarity]
ext/IO-Compress/t/compress/truncate.pl [moved from t/lib/compress/truncate.pl with 100% similarity]
ext/IO-Compress/t/compress/zlib-generic.pl [moved from t/lib/compress/zlib-generic.pl with 100% similarity]
ext/IO/t/IO.t
ext/IO/t/io_const.t
ext/IO/t/io_dir.t
ext/IO/t/io_dup.t
ext/IO/t/io_file.t
ext/IO/t/io_linenum.t
ext/IO/t/io_multihomed.t
ext/IO/t/io_pipe.t
ext/IO/t/io_poll.t
ext/IO/t/io_sel.t
ext/IO/t/io_sock.t
ext/IO/t/io_taint.t
ext/IO/t/io_tell.t
ext/IO/t/io_udp.t
ext/IO/t/io_unix.t
ext/IO/t/io_utf8.t
ext/IO/t/io_xs.t
ext/Math-BigInt-FastCalc/t/bigintfc.t
ext/Math-BigInt-FastCalc/t/bootstrap.t
ext/Math-BigInt-FastCalc/t/leak.t
ext/Math-BigInt-FastCalc/t/mbi_rand.t
ext/NDBM_File/t/ndbm.t
ext/ODBM_File/t/odbm.t
ext/Opcode/t/Opcode.t
ext/Opcode/t/ops.t
ext/POSIX/t/is.t
ext/POSIX/t/posix.t
ext/POSIX/t/sigaction.t
ext/POSIX/t/sysconf.t
ext/POSIX/t/taint.t
ext/POSIX/t/termios.t
ext/POSIX/t/waitpid.t
ext/PerlIO-encoding/t/fallback.t
ext/PerlIO-scalar/t/scalar.t
ext/PerlIO-via/t/via.t
ext/SDBM_File/t/sdbm.t
ext/Socket/t/Socket.t
ext/Socket/t/socketpair.t
ext/Sys-Hostname/t/Hostname.t
ext/Sys-Syslog/t/syslog.t
ext/Test-Harness/t/compat/failure.t
ext/Test-Harness/t/compat/inc_taint.t
ext/Test-Harness/t/compat/test-harness-compat.t
ext/Test-Harness/t/file.t
ext/Test-Harness/t/grammar.t
ext/Test-Harness/t/harness-bailout.t
ext/Test-Harness/t/harness-subclass.t
ext/Test-Harness/t/harness.t
ext/Test-Harness/t/iterators.t
ext/Test-Harness/t/multiplexer.t
ext/Test-Harness/t/nofork-mux.t
ext/Test-Harness/t/nofork.t
ext/Test-Harness/t/parse.t
ext/Test-Harness/t/parser-config.t
ext/Test-Harness/t/parser-subclass.t
ext/Test-Harness/t/process.t
ext/Test-Harness/t/prove.t
ext/Test-Harness/t/proverc.t
ext/Test-Harness/t/proverun.t
ext/Test-Harness/t/regression.t
ext/Test-Harness/t/sample-tests/delayed
ext/Test-Harness/t/source.t
ext/Test-Harness/t/source_tests/source
ext/Test-Harness/t/spool.t
ext/Test-Harness/t/state.t
ext/Test-Harness/t/state_results.t
ext/Test-Harness/t/taint.t
ext/Test-Harness/t/testargs.t
ext/Test-Harness/t/utils.t
ext/Text-Soundex/t/Soundex.t
ext/XS-APItest/t/call.t
ext/XS-APItest/t/exception.t
ext/XS-APItest/t/hash.t
ext/XS-APItest/t/my_cxt.t
ext/XS-APItest/t/op.t
ext/XS-APItest/t/printf.t
ext/XS-APItest/t/push.t
ext/XS-APItest/t/svpeek.t
ext/XS-APItest/t/svsetsv.t
ext/XS-APItest/t/xs_special_subs.t
ext/XS-APItest/t/xs_special_subs_require.t
ext/XS-Typemap/t/Typemap.t
ext/re/t/lexical_debug.t
ext/re/t/qr.t
ext/re/t/re.t
ext/re/t/re_funcs.t
ext/re/t/regop.t
ext/threads-shared/t/wait.t
ext/threads-shared/t/waithires.t
ext/threads/t/err.t
ext/threads/t/exit.t
ext/threads/t/free.t
ext/threads/t/free2.t
ext/threads/t/libc.t
ext/threads/t/thread.t
t/TEST
t/TestInit.pm