| test_description='Tests whether perf-lib facilities work' |
| test_perf 'test_perf_default_repo works' ' |
| foo=$(git rev-parse HEAD) && |
| test_perf 'test_checkout_worktree works' ' |
| idx=$(git ls-files | wc -l) && |
| test_expect_success 'test_export works' ' |
| test "$foo" = "$(git rev-parse HEAD)" && |
| test_perf 'export a weird var' ' |
| bar="weird # variable" && |
| test_perf 'éḿíẗ ńöń-ÁŚĆÍÍ ćḧáŕáćẗéŕś' 'true' |
| test_expect_success 'test_export works with weird vars' ' |
| test "$bar" = "weird # variable" |
| test_perf 'important variables available in subshells' ' |
| test -n "$TEST_DIRECTORY" && |
| test -n "$TRASH_DIRECTORY" && |
| test_perf 'test-lib-functions correctly loaded in subshells' ' |