3 # Copyright (c) 2007 Johannes E. Schindelin
6 test_description='Test commit notes index (expensive!)'
16 while test $nr -lt $number_of_commits
23 commit refs/heads/master
25 committer $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> $GIT_COMMITTER_DATE
42 echo "N :$notemark :$mark" >>note_commit
46 commit refs/notes/commits
47 committer $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> $GIT_COMMITTER_DATE
56 git fast-import --quiet &&
57 git config core.notesRef refs/notes/commits
63 git config core.notesRef refs/notes/commits &&
64 git log | grep "^ " >output &&
69 echo " note for commit #$i" &&
72 test_cmp expect output
75 write_script time_notes <<\EOF
82 GIT_NOTES_REF=non-existing
95 for mode in no-notes notes
98 /usr/bin/time ../time_notes $mode $1
105 test_expect_success $pr "setup $count" '
113 test_expect_success $pr 'notes work' '
120 test_expect_success "USR_BIN_TIME${pr:+,$pr}" 'notes timing with /usr/bin/time' '
129 for count in 100 1000 10000
131 do_tests "$count" EXPENSIVE