From: David Bremner Date: Wed, 15 May 2013 10:40:08 +0000 (-0300) Subject: perf-test: rename time tests to have .sh suffix X-Git-Tag: 0.16_rc1~131 X-Git-Url: https://git.cworth.org/git?p=notmuch;a=commitdiff_plain;h=0eab376658689469c5427d1b2c292de62e009aee perf-test: rename time tests to have .sh suffix This will simplify notmuch time tests --- diff --git a/performance-test/T00-new b/performance-test/T00-new deleted file mode 100755 index 553bb8b6..00000000 --- a/performance-test/T00-new +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -test_description='notmuch new' - -. ./perf-test-lib.sh - -uncache_database - -time_start - -for i in $(seq 2 6); do - time_run "notmuch new #$i" 'notmuch new' -done - -time_done diff --git a/performance-test/T00-new.sh b/performance-test/T00-new.sh new file mode 100755 index 00000000..553bb8b6 --- /dev/null +++ b/performance-test/T00-new.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +test_description='notmuch new' + +. ./perf-test-lib.sh + +uncache_database + +time_start + +for i in $(seq 2 6); do + time_run "notmuch new #$i" 'notmuch new' +done + +time_done diff --git a/performance-test/T01-dump-restore b/performance-test/T01-dump-restore deleted file mode 100755 index b2ff9400..00000000 --- a/performance-test/T01-dump-restore +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -test_description='dump and restore' - -. ./perf-test-lib.sh - -time_start - -time_run 'load nmbug tags' 'notmuch restore --accumulate < corpus.tags/nmbug.sup-dump' -time_run 'dump *' 'notmuch dump > tags.out' -time_run 'restore *' 'notmuch restore < tags.out' - -time_done diff --git a/performance-test/T01-dump-restore.sh b/performance-test/T01-dump-restore.sh new file mode 100755 index 00000000..b2ff9400 --- /dev/null +++ b/performance-test/T01-dump-restore.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +test_description='dump and restore' + +. ./perf-test-lib.sh + +time_start + +time_run 'load nmbug tags' 'notmuch restore --accumulate < corpus.tags/nmbug.sup-dump' +time_run 'dump *' 'notmuch dump > tags.out' +time_run 'restore *' 'notmuch restore < tags.out' + +time_done diff --git a/performance-test/T02-tag b/performance-test/T02-tag deleted file mode 100755 index 78cecccc..00000000 --- a/performance-test/T02-tag +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -test_description='tagging' - -. ./perf-test-lib.sh - -time_start - -time_run 'tag * +new_tag' "notmuch tag +new_tag '*'" -time_run 'tag * +existing_tag' "notmuch tag +new_tag '*'" -time_run 'tag * -existing_tag' "notmuch tag -new_tag '*'" -time_run 'tag * -missing_tag' "notmuch tag -new_tag '*'" - -time_done diff --git a/performance-test/T02-tag.sh b/performance-test/T02-tag.sh new file mode 100755 index 00000000..78cecccc --- /dev/null +++ b/performance-test/T02-tag.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +test_description='tagging' + +. ./perf-test-lib.sh + +time_start + +time_run 'tag * +new_tag' "notmuch tag +new_tag '*'" +time_run 'tag * +existing_tag' "notmuch tag +new_tag '*'" +time_run 'tag * -existing_tag' "notmuch tag -new_tag '*'" +time_run 'tag * -missing_tag' "notmuch tag -new_tag '*'" + +time_done