aboutsummaryrefslogtreecommitdiffstats
path: root/t/test-lib-functions.sh
AgeCommit message (Expand)AuthorFilesLines
2025-10-09t: allow specifying compatibility hashbrian m. carlson1-2/+7
2025-07-21Merge branch 'bc/use-sha256-by-default-in-3.0'Junio C Hamano1-1/+4
2025-07-01t: default to compile-time default hash if not setbrian m. carlson1-1/+4
2025-06-24test-lib: teach test_seq the -f optionJeff King1-2/+14
2025-04-16Merge branch 'ps/test-wo-perl-prereq'Junio C Hamano1-15/+5
2025-04-07t: adapt `test_readlink()` to not use PerlPatrick Steinhardt1-1/+1
2025-04-07t: adapt `test_copy_bytes()` to not use PerlPatrick Steinhardt1-11/+1
2025-04-07t: adapt character translation helpers to not use PerlPatrick Steinhardt1-3/+3
2025-03-11t: extend test_lazy_prereqJunio C Hamano1-0/+5
2025-02-27Merge branch 'ua/os-version-capability'Junio C Hamano1-0/+8
2025-02-19agent: advertise OS name via agent capabilityUsman Akinyemi1-0/+8
2025-02-12Merge branch 'ds/name-hash-tweaks'Junio C Hamano1-0/+26
2025-01-29Merge branch 'ds/path-walk-1'Junio C Hamano1-0/+10
2025-01-27repack: add --name-hash-version optionDerrick Stolee1-0/+26
2025-01-07test-lib: invert return value of check_test_results_san_file_emptyJeff King1-1/+1
2024-12-20test-lib-functions: add test_cmp_sortedDerrick Stolee1-0/+10
2024-09-25test-lib: check for leak logs after every testJeff King1-1/+2
2024-07-17Merge branch 'jk/test-body-in-here-doc'Junio C Hamano1-5/+27
2024-07-10test-lib: allow test snippets as here-docsJeff King1-5/+27
2024-07-02Merge branch 'ps/use-the-repository'Junio C Hamano1-0/+5
2024-06-14http-fetch: don't crash when parsing packfile without a repoPatrick Steinhardt1-0/+5
2024-05-24t/test-lib-functions.sh: support `--notick` in `test_commit_bulk()`Taylor Blau1-1/+8
2024-04-05t: local VAR="VAL" (quote ${magic-reference})Junio C Hamano1-4/+4
2024-04-05t: local VAR="VAL" (quote command substitution)Junio C Hamano1-1/+1
2024-04-05t: local VAR="VAL" (quote positional parameters)Junio C Hamano1-1/+1
2024-03-28Merge branch 'eb/hash-transition'Junio C Hamano1-1/+16
2024-03-14Merge branch 'jc/test-i18ngrep'Junio C Hamano1-2/+1
2024-03-02test_i18ngrep: hard deprecate and forbid its useJunio C Hamano1-2/+1
2024-02-08Merge branch 'sp/test-i18ngrep' into maint-2.43Junio C Hamano1-1/+1
2024-02-08Merge branch 'js/update-urls-in-doc-and-comment' into maint-2.43Junio C Hamano1-1/+1
2024-01-16Merge branch 'ps/refstorage-extension'Junio C Hamano1-0/+5
2024-01-12Merge branch 'tb/multi-pack-verbatim-reuse'Junio C Hamano1-0/+14
2024-01-02t: introduce GIT_TEST_DEFAULT_REF_FORMAT envvarPatrick Steinhardt1-0/+5
2023-12-27Merge branch 'sp/test-i18ngrep'Junio C Hamano1-1/+1
2023-12-18Merge branch 'js/update-urls-in-doc-and-comment'Junio C Hamano1-1/+1
2023-12-18test-lib-functions.sh: fix test_grep fail message wordingShreyansh Paliwal1-1/+1
2023-12-14t/test-lib-functions.sh: implement `test_trace2_data` helperTaylor Blau1-0/+14
2023-11-26doc: switch links to httpsJosh Soref1-1/+1
2023-11-08Merge branch 'jc/test-i18ngrep'Junio C Hamano1-4/+6
2023-11-01t: use git-show-ref(1) to check for ref existencePatrick Steinhardt1-0/+55
2023-10-31test framework: further deprecate test_i18ngrepJunio C Hamano1-4/+6
2023-10-02test-lib: compute the compatibility hash so tests may use itEric W. Biederman1-1/+16
2023-08-09Merge branch 'pw/rebase-skip-commit-message-fix'Junio C Hamano1-0/+33
2023-08-03rebase --skip: fix commit message clean up when skipping squashPhillip Wood1-0/+33
2023-07-04Merge branch 'bc/more-git-var'Junio C Hamano1-0/+9
2023-06-27t: add a function to check executable bitbrian m. carlson1-0/+9
2023-05-26config: use gitdir to get worktree configVictoria Dye1-2/+11
2023-05-08t: drop "verbose" helper functionJeff King1-9/+0
2023-02-28Merge branch 'pw/rebase-i-parse-fix'Junio C Hamano1-0/+8
2023-02-23rebase -i: fix parsing of "fixup -C<commit>"Phillip Wood1-0/+8
2023-02-15Merge branch 'ds/bundle-uri-5'Junio C Hamano1-0/+8
2023-01-31t5558: add tests for creationToken heuristicDerrick Stolee1-0/+8
2023-01-27t: allow 'scalar' in test_must_failDerrick Stolee1-1/+1
2023-01-23Merge branch 'ab/test-env-helper'Junio C Hamano1-1/+1
2023-01-16Merge branch 'ds/omit-trailing-hash-in-index'Junio C Hamano1-0/+8
2023-01-14env-helper: move this built-in to "test-tool env-helper"Ævar Arnfjörð Bjarmason1-1/+1
2023-01-08Merge branch 'js/drop-mingw-test-cmp'Junio C Hamano1-66/+0
2023-01-07test-lib-functions: add helper for trailing hashDerrick Stolee1-0/+8
2023-01-05Merge branch 'sg/test-oid-wo-incomplete-line'Junio C Hamano1-1/+1
2022-12-25t: create test harness for 'bundle-uri' commandÆvar Arnfjörð Bjarmason1-0/+7
2022-12-19tests: make 'test_oid' print trailing newlineSZEDER Gábor1-1/+1
2022-12-13tests(mingw): avoid very slow `mingw_test_cmp`Johannes Schindelin1-66/+0
2022-10-31test-lib-functions: drop redundant diagnostic printMartin Ågren1-4/+0
2022-10-30Merge branch 'ds/bundle-uri-3'Taylor Blau1-0/+11
2022-10-21test-lib-functions: mark 'test_commit' variables as 'local'Philippe Blain1-8/+8
2022-10-12bundle-uri: unit test "key=value" parsingÆvar Arnfjörð Bjarmason1-0/+11
2022-09-21t: convert egrep usage to "grep -E"Đoàn Trần Công Danh1-1/+1
2022-08-12Merge branch 'ab/leak-check'Junio C Hamano1-88/+1
2022-07-27test-lib: simplify by removing test_externalÆvar Arnfjörð Bjarmason1-88/+1
2022-07-19t: avoid "whitelist"Derrick Stolee1-2/+1
2022-06-07Merge branch 'js/ci-github-workflow-markup'Junio C Hamano1-2/+4
2022-06-03Merge branch 'ns/batch-fsync'Junio C Hamano1-0/+10
2022-05-21ci(github): avoid printing test case preamble twiceVictoria Dye1-0/+2
2022-05-21ci: optionally mark up output in the GitHub workflowJohannes Schindelin1-2/+2
2022-04-06test-lib-functions: add parsing helpers for ls-files and ls-treeNeeraj Singh1-0/+10
2022-04-04Merge branch 'ds/t7700-kept-pack-test'Junio C Hamano1-34/+0
2022-04-04Merge branch 'ab/reflog-parse-options'Junio C Hamano1-1/+1
2022-03-25test-lib-functions: remove test_subcommand_inexactDerrick Stolee1-34/+0
2022-03-23reflog: convert to parse_options() APIÆvar Arnfjörð Bjarmason1-1/+1
2022-03-17tests: extend "test_hook" for "rm" and "chmod -x", convert "$HOOK"Ævar Arnfjörð Bjarmason1-0/+24
2022-03-17test-lib-functions: add and use a "test_hook" wrapperÆvar Arnfjörð Bjarmason1-0/+52
2022-02-23tests: allow testing if a path is truly a file or a directoryCOGONI Guillaume1-0/+29
2022-02-05Merge branch 'ms/update-index-racy'Junio C Hamano1-0/+33
2022-01-07test-lib: introduce API for verifying file mtimeMarc Strapetz1-0/+33
2022-01-05Merge branch 'ds/repack-fixlets'Junio C Hamano1-0/+34
2021-12-20repack: respect kept objects with '--write-midx -b'Derrick Stolee1-0/+34
2021-11-20test-lib: introduce required prereq for test runsFabian Stelzer1-0/+11
2021-09-07test-lib-functions: keep user's debugger config files and TERM in 'debug'Philippe Blain1-14/+46
2021-09-07test-lib-functions: optionally keep HOME, TERM and SHELL in 'test_pause'Philippe Blain1-1/+46
2021-09-07test-lib-functions: use 'TEST_SHELL_PATH' in 'test_pause'Philippe Blain1-1/+1
2021-07-28Merge branch 'ab/pkt-line-tests'Junio C Hamano1-30/+8
2021-07-19test-lib-functions: use test-tool for [de]packetize()Ævar Arnfjörð Bjarmason1-30/+8
2021-07-16Merge branch 'dd/test-stdout-count-lines'Junio C Hamano1-0/+26
2021-07-08Merge branch 'jk/test-without-readlink-1'Junio C Hamano1-0/+6
2021-07-06test-lib-functions: introduce test_stdout_line_countĐoàn Trần Công Danh1-0/+26
2021-06-19t: use portable wrapper for readlink(1)Jeff King1-0/+6
2021-06-14Merge branch 'ab/test-lib-updates'Junio C Hamano1-23/+39
2021-05-11test-lib: split up and deprecate test_create_repo()Ævar Arnfjörð Bjarmason1-13/+2
2021-05-11test-lib: do not show advice about init.defaultBranch under --verboseÆvar Arnfjörð Bjarmason1-1/+0
2021-05-11test-lib: reformat argument list in test_create_repo()Ævar Arnfjörð Bjarmason1-2/+2
2021-05-11test-lib functions: add --printf option to test_commitÆvar Arnfjörð Bjarmason1-2/+12
2021-05-11test-lib functions: add an --annotated option to "test_commit"Ævar Arnfjörð Bjarmason1-5/+22
2021-05-11test-lib-functions: document test_commit --no-tagÆvar Arnfjörð Bjarmason1-0/+2
2021-05-11test-lib-functions: reword "test_commit --append" docsÆvar Arnfjörð Bjarmason1-2/+1
2021-04-13tests: remove all uses of test_i18cmpÆvar Arnfjörð Bjarmason1-7/+0
2021-02-25Merge branch 'jk/rev-list-disk-usage'Junio C Hamano1-1/+8
2021-02-22Merge branch 'ab/test-lib'Junio C Hamano1-46/+16
2021-02-17Merge branch 'ak/corrected-commit-date'Junio C Hamano1-0/+6
2021-02-12test-lib-functions: assert correct parameter countÆvar Arnfjörð Bjarmason1-0/+8
2021-02-12test-lib-functions: remove bug-inducing "diagnostics" helper paramÆvar Arnfjörð Bjarmason1-5/+6
2021-02-10Merge branch 'ab/detox-gettext-tests'Junio C Hamano1-16/+7
2021-02-10Merge branch 'ds/more-index-cleanups'Junio C Hamano1-0/+42
2021-02-10test-lib-functions: move function to lib-bitmap.shÆvar Arnfjörð Bjarmason1-27/+0
2021-02-10test-lib-functions: remove generate_zero_bytes() wrapperÆvar Arnfjörð Bjarmason1-7/+0
2021-02-10test-lib-functions: move test_set_index_version() to its userÆvar Arnfjörð Bjarmason1-5/+0
2021-02-10test lib: change "error" to "BUG" as appropriateÆvar Arnfjörð Bjarmason1-2/+2
2021-02-09t: add --no-tag option to test_commitJeff King1-1/+8
2021-01-25Merge branch 'ab/mailmap-fixup'Junio C Hamano1-2/+2
2021-01-25Merge branch 'ab/mailmap'Junio C Hamano1-7/+30
2021-01-23test-lib: test_region looks for trace2 regionsDerrick Stolee1-0/+42
2021-01-21tests: remove support for GIT_TEST_GETTEXT_POISONÆvar Arnfjörð Bjarmason1-16/+7
2021-01-18commit-graph: implement generation data chunkAbhishek Kumar1-0/+6
2021-01-14test-lib-functions.sh: fix usage for test_commit()Denton Liu1-2/+2
2021-01-12test-lib functions: add an --append option to test_commitÆvar Arnfjörð Bjarmason1-1/+13
2021-01-12test-lib functions: add --author support to test_commitÆvar Arnfjörð Bjarmason1-1/+10
2021-01-12test-lib functions: document arguments to test_commitÆvar Arnfjörð Bjarmason1-0/+4
2021-01-12test-lib functions: expand "test_commit" comment templateÆvar Arnfjörð Bjarmason1-5/+3
2021-01-06t4129: don't fail if setgid is set in the test directoryMatheus Tavares1-2/+7
2020-12-18Merge branch 'js/init-defaultbranch-advice'Junio C Hamano1-1/+3
2020-12-13init: provide useful advice about init.defaultBranchJohannes Schindelin1-1/+3
2020-12-08Merge branch 'fc/random-cleanup'Junio C Hamano1-4/+4
2020-12-08Merge branch 'mt/do-not-use-scld-in-working-tree'Junio C Hamano1-2/+2
2020-12-02apply: don't use core.sharedRepository to create working tree filesMatheus Tavares1-2/+2
2020-12-01tests: lib-functions: trivial style cleanupsFelipe Contreras1-4/+4
2020-11-25Merge branch 'sg/tests-prereq'Junio C Hamano1-4/+4
2020-11-18tests: fix description of 'test_set_prereq'SZEDER Gábor1-1/+1
2020-11-18tests: make sure nested lazy prereqs work reliablySZEDER Gábor1-3/+3
2020-11-11Merge branch 'js/test-file-size'Junio C Hamano1-0/+4
2020-11-06tests: consolidate the `file_size` function into `test-lib-functions.sh`Johannes Schindelin1-0/+4
2020-11-02Merge branch 'es/test-cmp-typocatcher'Junio C Hamano1-14/+2
2020-10-20Revert "test_cmp: diagnose incorrect arguments"Junio C Hamano1-14/+2
2020-09-25Merge branch 'ds/maintenance-part-1'Junio C Hamano1-0/+33
2020-09-17maintenance: create basic maintenance runnerDerrick Stolee1-0/+33
2020-09-03Merge branch 'jk/slimmed-down'Junio C Hamano1-1/+1
2020-08-17Merge branch 'es/test-cmp-typocatcher'Junio C Hamano1-2/+14
2020-08-13drop vcs-svn experimentJeff King1-1/+1
2020-08-11Merge branch 'bc/sha-256-part-3'Junio C Hamano1-4/+12
2020-08-09test_cmp: diagnose incorrect argumentsEric Sunshine1-2/+14
2020-07-30t: allow testing different hash algorithms via environmentbrian m. carlson1-3/+1
2020-07-30t: add test_oid option to select hash algorithmbrian m. carlson1-1/+11
2020-07-07test-lib-functions: restrict test_must_fail usageDenton Liu1-0/+47
2020-04-28Merge branch 'dd/test-with-busybox'Junio C Hamano1-1/+1
2020-04-22Merge branch 'js/mingw-is-hidden-test-fix'Junio C Hamano1-0/+10
2020-04-11t: restrict `is_hidden` to be called only on WindowsJohannes Schindelin1-2/+5
2020-04-11mingw: make test_path_is_hidden more robustJohannes Schindelin1-1/+1
2020-04-11t: consolidate the `is_hidden` functionsJohannes Schindelin1-0/+7
2020-03-29test-lib-functions: simplify packetize() stdin codeJeff King1-5/+4
2020-03-27test-lib-functions: make packetize() more efficientJeff King1-7/+16
2020-03-25test-lib-functions: test_cmp: eval $GIT_TEST_CMPĐoàn Trần Công Danh1-1/+1
2020-02-14t5310: factor out bitmap traversal comparisonJeff King1-0/+27
2019-12-10Merge branch 'sg/test-squelch-noise-in-commit-bulk'Junio C Hamano1-1/+1
2019-12-05Merge branch 'sg/test-bool-env'Junio C Hamano1-1/+29
2019-11-27test-lib-functions: suppress a 'git rev-parse' error in 'test_commit_bulk'SZEDER Gábor1-1/+1
2019-11-23tests: add 'test_bool_env' to catch non-bool GIT_TEST_* valuesSZEDER Gábor1-1/+29
2019-11-21t: teach test_cmp_rev to accept ! for not-equalsDenton Liu1-4/+15
2019-10-15Merge branch 'dl/octopus-graph-bug'Junio C Hamano1-2/+4
2019-10-04test-lib: let test_merge() perform octopus mergesDenton Liu1-2/+4
2019-08-22Merge branch 'sg/show-failed-test-names'Junio C Hamano1-2/+2
2019-08-09Merge branch 'bc/hash-independent-tests-part-4'Junio C Hamano1-1/+2
2019-08-08t: decrease nesting in test_oid_to_pathJonathan Nieder1-1/+2
2019-08-05tests: show the test name and number at the start of verbose outputSZEDER Gábor1-2/+2
2019-08-01Merge branch 'bc/hash-independent-tests-part-4'Junio C Hamano1-0/+6
2019-07-25Merge branch 'jk/test-commit-bulk'Junio C Hamano1-0/+123
2019-07-25Merge branch 'ab/test-env'Junio C Hamano1-50/+8
2019-07-09Merge branch 'js/t0001-case-insensitive'Junio C Hamano1-0/+15
2019-07-02test-lib: introduce test_commit_bulkJeff King1-0/+123
2019-07-01t: add helper to convert object IDs to pathsbrian m. carlson1-0/+6
2019-06-24t0001: fix on case-insensitive filesystemsJohannes Schindelin1-0/+15
2019-06-21tests: make GIT_TEST_FAIL_PREREQS a booleanÆvar Arnfjörð Bjarmason1-2/+2
2019-06-21tests: replace test_tristate with "git env--helper"Ævar Arnfjörð Bjarmason1-49/+7
2019-05-14tests: add a special setup where prerequisites failÆvar Arnfjörð Bjarmason1-0/+20
2019-05-09Merge branch 'tb/unexpected'Junio C Hamano1-0/+6
2019-04-25Merge branch 'sg/test-atexit'Junio C Hamano1-0/+28
2019-04-05t: move 'hex2oct' into test-lib-functions.shTaylor Blau1-0/+6
2019-03-14test-lib: introduce 'test_atexit'Johannes Schindelin1-0/+28
2019-03-08test functions: add function `test_file_not_empty`Rohit Ashiwal1-0/+9
2019-02-19tests: teach the test-tool to generate NUL bytes and use itJohannes Schindelin1-7/+1
2019-02-13Merge branch 'rb/no-dev-zero-in-test'Junio C Hamano1-0/+13
2019-02-12test-lib-functions.sh: add generate_zero_bytes functionRandall S. Becker1-0/+13
2019-02-11test-lib: fix non-portable pattern bracket expressionsSZEDER Gábor1-1/+1
2019-01-07test-lib: add the '--stress' option to run a test repeatedly under loadSZEDER Gábor1-2/+5
2019-01-07test-lib-functions: introduce the 'test_set_port' helper functionSZEDER Gábor1-0/+36
2018-12-01Merge branch 'sg/test-BUG'Junio C Hamano1-13/+12
2018-11-20test-lib-functions: make 'test_cmp_rev' more informative on failureSZEDER Gábor1-3/+17
2018-11-20tests: send "bug in the test script" errors to the script's stderrSZEDER Gábor1-13/+12
2018-11-19Merge branch 'js/test-git-installed'Junio C Hamano1-1/+2
2018-11-19Merge branch 'ab/dynamic-gettext-poison'Junio C Hamano1-4/+4
2018-11-16tests: explicitly use `git.exe` on WindowsJohannes Schindelin1-1/+1
2018-11-14tests: respect GIT_TEST_INSTALLED when initializing repositoriesJohannes Schindelin1-1/+2
2018-11-09i18n: make GETTEXT_POISON a runtime optionÆvar Arnfjörð Bjarmason1-4/+4