mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-28 21:54:10 +01:00
perf-test: add argument parsing for performance tests
This patch just sets (non-exported) variables. The variable $debug is already used, and $corpus_size will be used in following commits.
This commit is contained in:
parent
e52597016f
commit
e7c661d31a
1 changed files with 25 additions and 0 deletions
|
@ -1,5 +1,30 @@
|
|||
. ./version.sh
|
||||
|
||||
corpus_size=large
|
||||
|
||||
while test "$#" -ne 0
|
||||
do
|
||||
case "$1" in
|
||||
-d|--debug)
|
||||
debug=t;
|
||||
shift
|
||||
;;
|
||||
-s|--small)
|
||||
corpus_size=small;
|
||||
shift
|
||||
;;
|
||||
-m|--medium)
|
||||
corpus_size=medium;
|
||||
shift
|
||||
;;
|
||||
-l|--large)
|
||||
corpus_size=large;
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
echo "error: unknown performance test option '$1'" >&2; exit 1 ;;
|
||||
esac
|
||||
done
|
||||
. ../test/test-lib-common.sh
|
||||
|
||||
set -e
|
||||
|
|
Loading…
Reference in a new issue