Merge branch 'it/fetch-pack-many-refs' into maint
[gitweb.git] / t / perf / p0000-perf-lib-sanity.sh
index 2ca4aaccb8a0a64513d1ab711895c8769ca2761e..cf8e1efce7cd29679c3ffdb2fa7d03489c38c1c9 100755 (executable)
@@ -38,4 +38,18 @@ test_expect_success 'test_export works with weird vars' '
        test "$bar" = "weird # variable"
 '
 
+test_perf 'important variables available in subshells' '
+       test -n "$HOME" &&
+       test -n "$TEST_DIRECTORY" &&
+       test -n "$TRASH_DIRECTORY" &&
+       test -n "$GIT_BUILD_DIR"
+'
+
+test_perf 'test-lib-functions correctly loaded in subshells' '
+       : >a &&
+       test_path_is_file a &&
+       : >b &&
+       test_cmp a b
+'
+
 test_done