aboutsummaryrefslogtreecommitdiffstats
path: root/t/999-teardown.t
diff options
context:
space:
mode:
authorTeddy Wing2015-09-23 22:04:35 -0400
committerTeddy Wing2015-09-23 22:04:35 -0400
commitf6bb0d359c7c46eb41a3d760a85f2cc2aad3a79d (patch)
tree7f5ed562b864fced99f1dbc80f136912f9a491f7 /t/999-teardown.t
parent5d7d9b9f564ffe7b51ba72b0e61c21013fe0d1b1 (diff)
downloadgit-hook-pre-commit-python-javascript-syntax-linter-f6bb0d359c7c46eb41a3d760a85f2cc2aad3a79d.tar.bz2
Test setup
* Add Makefile with test target/goal copied from Richard Hartmann's vcsh. Now that I think about it, I really need to change that because vcsh is GPL. Will do that soon. * Add setup and teardown test files that create a remove a directory. This directory will be a basic git repo where we'll install our git hook and then test output from different commits in the repo.
Diffstat (limited to 't/999-teardown.t')
-rw-r--r--t/999-teardown.t17
1 files changed, 17 insertions, 0 deletions
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;