aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/001-setup.t13
-rw-r--r--t/999-teardown.t17
2 files changed, 30 insertions, 0 deletions
diff --git a/t/001-setup.t b/t/001-setup.t
new file mode 100644
index 0000000..0789bd7
--- /dev/null
+++ b/t/001-setup.t
@@ -0,0 +1,13 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+
+use Test::More;
+
+system('mkdir -p t/git-repo');
+ok !$?;
+
+chdir 't/git-repo' or die $!;
+
+done_testing;
diff --git a/t/999-teardown.t b/t/999-teardown.t
new file mode 100644
index 0000000..ff39a99
--- /dev/null
+++ b/t/999-teardown.t
@@ -0,0 +1,17 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+
+use Test::More;
+
+chdir 't' or die $!;
+
+if (!-d 'git-repo') {
+ plan skip_all => 'Testing stage already cleaned.';
+}
+
+system('rm -rf git-repo');
+ok !$?;
+
+done_testing;