Fix tests dying in absence of bootstrap scripts.
[catagits/Gitalist.git] / t / 01app.t
index d7eb640..c8a5260 100644 (file)
--- a/t/01app.t
+++ b/t/01app.t
@@ -1,5 +1,12 @@
 #!/usr/bin/env perl
 use FindBin qw/$Bin/;
+BEGIN {
+    my $env = "$FindBin::Bin/script/env";
+    if (-r $env) {
+        do $env or die $@;
+    }
+}
+
 use lib "$Bin/lib";
 use TestGitalist;
 
@@ -27,7 +34,7 @@ foreach my $test (map {curry_test_uri($_)} ('fragment/repo1', 'repo1') ) {
   $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/tree/dir1');
   $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/diff');
   $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/diff/plain');
-  #test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/shortlog/dir1');
+  $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/history/dir1');
   $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/history/dir1');
   $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/blame/file1');
   $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/blob/file1');
@@ -37,7 +44,6 @@ foreach my $test (map {curry_test_uri($_)} ('fragment/repo1', 'repo1') ) {
   # URI tests for repo1
   local *test = curry_test_uri('repo1');
   test('search');
-  test('reflog');
 
   test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/patch');
   test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/patches/1');