ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/mktest
Revision: 1.6
Committed: Sat Feb 4 03:49:36 2017 UTC (7 years, 8 months ago) by root
Branch: MAIN
CVS Tags: rel-7_16, rel-7_15, rel-7_14, HEAD
Changes since 1.5: +1 -0 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 #!/bin/sh
2
3 # this creates duplicate tests for each event loop, and then deletes those
4 # that fail due to bugs in them.
5 # also patches MANIFEST.
6
7 (
8 cat <<EOF
9 61_fltk AnyEvent::Impl::FLTK
10 62_cocoa AnyEvent::Impl::Cocoa
11 63_eventlib AnyEvent::Impl::EventLib
12 64_glib AnyEvent::Impl::Glib
13 65_event AnyEvent::Impl::Event
14 66_ioasync AnyEvent::Impl::IOAsync
15 67_tk AnyEvent::Impl::Tk
16 68_poe AnyEvent::Impl::POE $^W = 0;
17 69_ev AnyEvent::Impl::EV
18 70_uv AnyEvent::Impl::UV
19 71_prima AnyEvent::Impl::Prima
20 EOF
21 ) | while read base module extra; do
22 for test in 01 02 03 04 05 07 09; do
23 set -- t/"$test"_*.t
24 t=${1#t/}
25 <t/"$t" \
26 sed -e "s/.*require AnyEvent::Impl::Perl.*/\\
27 BEGIN { $^W = 0 }\\
28 BEGIN { \$ENV{PERL_ANYEVENT_LOOP_TESTS} or ((print qq{1..0 # SKIP PERL_ANYEVENT_LOOP_TESTS not true\\\\n}), exit 0) }\\
29 BEGIN { eval q{use $module;1} or ((print qq{1..0 # SKIP $module not loadable\\\\n}), exit 0) }\\
30 $extra\\
31 /" \
32 >t/"$base"_$t
33 done
34 done
35
36 if false; then
37 (
38 grep -v ^t/6._ MANIFEST
39 for t in t/6?_*; do
40 echo $t
41 done
42 ) >MANIFEST~ && mv MANIFEST~ MANIFEST
43 fi