]> git.ipfire.org Git - thirdparty/git.git/commit - Makefile
dir-iterator: add tests for dir-iterator API
authorDaniel Ferreira <bnmvco@gmail.com>
Wed, 10 Jul 2019 23:58:57 +0000 (20:58 -0300)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Jul 2019 20:52:15 +0000 (13:52 -0700)
commit150791adbf1eb432af0b895d81eef5c2717aa6cc
tree672c58235fc45bce91789b316ce0473da36dee05
parent36596fd2dfa473cf1069d23776e62cc156e7b5c6
dir-iterator: add tests for dir-iterator API

Create t/helper/test-dir-iterator.c, which prints relevant information
about a directory tree iterated over with dir-iterator.

Create t/t0066-dir-iterator.sh, which tests that dir-iterator does
iterate through a whole directory tree as expected.

Signed-off-by: Daniel Ferreira <bnmvco@gmail.com>
[matheus.bernardino: update to use test-tool and some minor aesthetics]
Helped-by: Matheus Tavares <matheus.bernardino@usp.br>
Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
t/helper/test-dir-iterator.c [new file with mode: 0644]
t/helper/test-tool.c
t/helper/test-tool.h
t/t0066-dir-iterator.sh [new file with mode: 0755]