3 test_description='Tests whether perf-lib facilities work'
8 test_perf 'test_perf_default_repo works' '
9 foo=$(git rev-parse HEAD) &&
13 test_checkout_worktree
15 test_perf 'test_checkout_worktree works' '
16 wt=$(find . | wc -l) &&
17 idx=$(git ls-files | wc -l) &&
24 test_expect_success 'test_export works' '
26 test "$foo" = "$(git rev-parse HEAD)" &&
31 test_perf 'export a weird var' '
32 bar="weird # variable" &&
36 test_perf 'éḿíẗ ńöń-ÁŚĆÍÍ ćḧáŕáćẗéŕś' 'true'
38 test_expect_success 'test_export works with weird vars' '
40 test "$bar" = "weird # variable"
43 test_perf 'important variables available in subshells' '
45 test -n "$TEST_DIRECTORY" &&
46 test -n "$TRASH_DIRECTORY" &&
47 test -n "$GIT_BUILD_DIR"
50 test_perf 'test-lib-functions correctly loaded in subshells' '
52 test_path_is_file a &&