commit b1af99c0f902e931ba5093623c29657221d18bed
parent c642618d3a8b4913a729fe81b9a3ea547b25b8c0
Author: Kyle Milz <krwmilz@gmail.com>
Date: Mon, 22 Nov 2021 16:30:33 +0000
t: add skeleton test
contains boilerplate necessary to create a new test quickly.
Diffstat:
1 file changed, 20 insertions(+), 0 deletions(-)
diff --git a/t/_skel.t b/t/_skel.t
@@ -0,0 +1,20 @@
+#
+# High level description of test.
+#
+use Modern::Perl;
+use Test::Cmd;
+use Test::More skip_all => "template";
+
+
+my $cmd = Test::Cmd->new( prog => '/usr/bin/make', workdir => '' );
+my $html_mk = $cmd->here . "/bsd.html.mk";
+
+$cmd->write( 'Makefile', <<EOF );
+.include "$html_mk"
+EOF
+
+$cmd->run( chdir => $cmd->curdir );
+
+#like( $cmd->stdout, qr/.*/, 'make stdout' );
+#is( $cmd->stderr, "", 'make stderr' );
+#is( $? >> 8, 0, 'make exit status' );