summaryrefslogtreecommitdiff
path: root/t/t2204-add-ignored.sh
Commit message (Collapse)AuthorAgeFilesLines
* leak tests: mark some add tests as passing with SANITIZE=leakÆvar Arnfjörð Bjarmason2021-11-011-0/+1
| | | | | | | | | | Mark some tests that match "*add*" as passing when git is compiled with SANITIZE=leak. They'll now be listed as running under the "GIT_TEST_PASSING_SANITIZE_LEAK=true" test mode (the "linux-leaks" CI target). Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* tests: use 'test_must_be_empty' instead of '! test -s'SZEDER Gábor2018-08-211-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Using 'test_must_be_empty' is preferable to '! test -s', because it gives a helpful error message if the given file is unexpectedly not empty, while the latter remains completely silent. Furthermore, it also catches cases when the given file unexpectedly does not exist at all. This patch was basically created by: sed -i -e 's/! test -s/test_must_be_empty/' t[0-9]*.sh with the following notable exceptions: - The '! test -s' check in '.gitmodules ignore=dirty suppresses submodules with untracked content' in 't7508-status.sh' is left as-is, because it's bogus and, therefore, it's subject of a dedicated patch. - The '! test -s' checks in 't9131-git-svn-empty-symlink.sh' and 't9135-git-svn-moved-branch-empty-file.sh' are immediately preceeded by a 'test -f' to ensure that the files exist in the first place. 'test_must_be_empty' ensures that as well, so those 'test -f' commands are removed as well. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* i18n: use test_i18ngrep in t2020, t2204, t3030, and t3200Junio C Hamano2011-04-131-8/+8
| | | | Signed-off-by: Junio C Hamano <gitster@pobox.com>
* i18n: git-add "The following paths are ignored" messageÆvar Arnfjörð Bjarmason2011-03-091-12/+25
| | | | | | | | | | | The tests t2204 (.gitignore) and t3700 (add) explicitly check for these messages, so while at it, split each relevant test into a part that just checks "git add"'s exit status and a part that checks porcelain output. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* tests for "git add ignored-dir/file" without -fJunio C Hamano2010-03-131-0/+79
Signed-off-by: Junio C Hamano <gitster@pobox.com>