3 # Copyright (c) 2007 Johannes E. Schindelin
6 test_description='Test commit notes index (expensive!)'
10 test -n "$GIT_NOTES_TIMING_TESTS" && test_set_prereq EXPENSIVE
18 while test $nr -lt $number_of_commits
25 commit refs/heads/master
27 committer $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> $GIT_COMMITTER_DATE
44 echo "N :$notemark :$mark" >>note_commit
48 commit refs/notes/commits
49 committer $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> $GIT_COMMITTER_DATE
58 git fast-import --quiet &&
59 git config core.notesRef refs/notes/commits
65 git config core.notesRef refs/notes/commits &&
66 git log | grep "^ " >output &&
71 echo " note for commit #$i" &&
74 test_cmp expect output
77 write_script time_notes <<\EOF
84 GIT_NOTES_REF=non-existing
97 for mode in no-notes notes
100 /usr/bin/time ../time_notes $mode $1
107 test_expect_success $pr "setup $count" '
115 test_expect_success $pr 'notes work' '
122 test_expect_success "USR_BIN_TIME${pr:+,$pr}" 'notes timing with /usr/bin/time' '
131 for count in 100 1000 10000
133 do_tests "$count" EXPENSIVE