git-notes: Run partial expensive test everywhere
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 10 Aug 2010 23:37:48 +0000 (23:37 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Aug 2010 19:42:46 +0000 (12:42 -0700)
commitd0736f7b81ac2fcb763279b3bf3e90faa3fb6609
treea4b85959aec0fbe3c69d4a67d33242076745d37f
parente1697cc5b5d765f0544b370ccdb87145cdfd91fc
git-notes: Run partial expensive test everywhere

The git-notes expensive timing test is only expensive because it
either did 10,100,1k and 10k iterations or nothing.

Change it to do 10 by default, with an option to run the expensive
version with the old GIT_NOTES_TIMING_TESTS=ZomgYesPlease variable.

Since nobody was ostensibly running this test under TAP the code had
bitrotted so that it emitted invalid TAP. This change fixes that.

The old version would also mysteriously fail on systems without
/usr/bin/time, there's now a check for that using the multiple test
prerequisite facility.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3302-notes-index-expensive.sh