From a47bf8ba13440c9691bf002a5bf687175d9c0937 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 18 Mar 2018 16:05:30 +0100 Subject: Add TAP test structure Copied and modified from: https://github.com/teddywing/git-hook-pre-commit-python-javascript-syntax-linter/blob/efa1909/t/001-setup.t https://github.com/teddywing/git-hook-pre-commit-python-javascript-syntax-linter/blob/f6bb0d3/t/999-teardown.t --- t/999-teardown.t | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 t/999-teardown.t (limited to 't/999-teardown.t') diff --git a/t/999-teardown.t b/t/999-teardown.t new file mode 100644 index 0000000..e7e8ab2 --- /dev/null +++ b/t/999-teardown.t @@ -0,0 +1,14 @@ +#!/usr/bin/env perl -w + +use strict; + +use Test::More; + +if (!-d 't-git-repo') { + plan skip_all => 'Testing stage already cleaned.'; +} + +system('rm -rf t-git-repo'); +ok !$?; + +done_testing; -- cgit v1.2.3