perf lint: add make test-lint to perf tests

Perf tests have not been linted for some time.
They've grown some seq instead of test_seq. This
runs the existing lints on the perf tests as well.

Signed-off-by: Nipunn Koorapati <nipunn@dropbox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Nipunn Koorapati
2020-10-20 13:41:02 +00:00
committed by Junio C Hamano
parent 89afd5f5ad
commit ed5a24573d
3 changed files with 11 additions and 7 deletions

View File

@ -1,7 +1,7 @@
-include ../../config.mak
export GIT_TEST_OPTIONS
all: perf
all: test-lint perf
perf: pre-clean
./run
@ -12,4 +12,7 @@ pre-clean:
clean:
rm -rf build "trash directory".* test-results
test-lint:
$(MAKE) -C .. test-lint
.PHONY: all perf pre-clean clean

View File

@ -9,16 +9,16 @@ test_expect_success 'setup rebasing on top of a lot of changes' '
git checkout -f -B base &&
git checkout -B to-rebase &&
git checkout -B upstream &&
for i in $(seq 100)
for i in $(test_seq 100)
do
# simulate huge diffs
echo change$i >unrelated-file$i &&
seq 1000 >>unrelated-file$i &&
test_seq 1000 >>unrelated-file$i &&
git add unrelated-file$i &&
test_tick &&
git commit -m commit$i unrelated-file$i &&
echo change$i >unrelated-file$i &&
seq 1000 | tac >>unrelated-file$i &&
test_seq 1000 | tac >>unrelated-file$i &&
git add unrelated-file$i &&
test_tick &&
git commit -m commit$i-reverse unrelated-file$i ||