aboutsummaryrefslogtreecommitdiffstats
path: root/t/001-setup.t
diff options
context:
space:
mode:
authorTeddy Wing2020-09-14 00:33:14 +0200
committerTeddy Wing2020-09-14 00:33:14 +0200
commitae4ebe19b66e856758cbd3a9ed768ae146c004cd (patch)
tree35cacf7c04f0816fa8eab62577ba11aaaa5b75a2 /t/001-setup.t
parent3507f0c1540871ea815359b16ccf23af79bd8e30 (diff)
downloadgit-todo-ae4ebe19b66e856758cbd3a9ed768ae146c004cd.tar.bz2
Add TAP test harness
Copied with alterations from git-branch-list.
Diffstat (limited to 't/001-setup.t')
-rw-r--r--t/001-setup.t21
1 files changed, 21 insertions, 0 deletions
diff --git a/t/001-setup.t b/t/001-setup.t
new file mode 100644
index 0000000..bd4b6ae
--- /dev/null
+++ b/t/001-setup.t
@@ -0,0 +1,21 @@
+#!/usr/bin/env perl -w
+
+use strict;
+
+use File::Copy;
+use Test::More;
+
+system('git init t-git-repo');
+ok !$?;
+
+copy('t/data/git-sugdiff.rs', 't-git-repo') or die $!;
+
+chdir 't-git-repo' or die $!;
+
+system('git add git-sugdiff.rs');
+ok !$?;
+
+system('git commit -m "Commit"');
+ok !$?;
+
+done_testing;