Skip to content

Commit

Permalink
Touch mylib/gen-tests.perl during Makefile.PL execution. This
Browse files Browse the repository at this point in the history
triggers gen-tests.perl during "make test".
  • Loading branch information
rcaputo committed Jul 6, 2008
1 parent 510846b commit ae44788
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion mylib/Makefile-5004.pm
Expand Up @@ -20,6 +20,10 @@ use PoeBuildInfo qw(
open(TOUCH, ">>CHANGES") and close TOUCH;
open(TOUCH, ">>META.yml") and close TOUCH;

### Touch gen-tests.perl so it always triggers.

utime(time(), time(), "mylib/gen-tests.perl");

### Generate Makefile.PL.

sub MY::postamble {
Expand Down Expand Up @@ -56,8 +60,9 @@ WriteMakefile(
TESTS => TEST_FILES,
},

# Not executed on "make test".
PL_FILES => {
'mylib/gen-tests.perl' => 'anything',
'mylib/gen-tests.perl' => [ 'lib/POE.pm' ],
},

PREREQ_PM => { CORE_REQUIREMENTS },
Expand Down
7 changes: 6 additions & 1 deletion mylib/Makefile-5005.pm
Expand Up @@ -23,6 +23,10 @@ use PoeBuildInfo qw(
open(TOUCH, ">>CHANGES") and close TOUCH;
open(TOUCH, ">>META.yml") and close TOUCH;

### Touch gen-tests.perl so it always triggers.

utime(time(), time(), "mylib/gen-tests.perl");

### Some advisory dependency testing.

sub check_for_modules {
Expand Down Expand Up @@ -127,8 +131,9 @@ WriteMakefile(
TESTS => TEST_FILES,
},

# Not executed on "make test".
PL_FILES => {
'mylib/gen-tests.perl' => 'anything',
'mylib/gen-tests.perl' => [ 'lib/POE.pm' ],
},

# More for META.yml than anything.
Expand Down

0 comments on commit ae44788

Please sign in to comment.