diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-11-13 15:50:53 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-11-16 16:16:37 +0000 |
commit | 0a57af7fc7e95beb72d28d73962ebeae386da5bc (patch) | |
tree | a1707c153b6c71f3abbbe2aa98f7df4eb9cbd549 /tests/benchmarker | |
parent | 4432ba4949647917d0fc3fb2ef73f9737a7c2431 (diff) |
Benchmarker: Provide short command-line options
Change-Id: I278d4f939a950a65ce7ee3974ba1266b81419166
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'tests/benchmarker')
-rw-r--r-- | tests/benchmarker/commandlineparser.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/benchmarker/commandlineparser.cpp b/tests/benchmarker/commandlineparser.cpp index 115288f11..6bc6cc966 100644 --- a/tests/benchmarker/commandlineparser.cpp +++ b/tests/benchmarker/commandlineparser.cpp @@ -51,21 +51,24 @@ void CommandLineParser::parse() parser.setApplicationDescription("This tool aims to detect qbs performance regressions " "using valgrind."); parser.addHelpOption(); - QCommandLineOption oldCommitOption("old-commit", "The old qbs commit.", "old commit"); + QCommandLineOption oldCommitOption(QStringList{"old-commit", "o"}, "The old qbs commit.", + "old commit"); parser.addOption(oldCommitOption); - QCommandLineOption newCommitOption("new-commit", "The new qbs commit.", "new commit"); + QCommandLineOption newCommitOption(QStringList{"new-commit", "n"}, "The new qbs commit.", + "new commit"); parser.addOption(newCommitOption); - QCommandLineOption testProjectOption("test-project", + QCommandLineOption testProjectOption(QStringList{"test-project", "t"}, "The example project to use for the benchmark.", "project file path"); parser.addOption(testProjectOption); - QCommandLineOption qbsRepoOption("qbs-repo", "The qbs repository.", "repo path"); + QCommandLineOption qbsRepoOption(QStringList{"qbs-repo", "q"}, "The qbs repository.", + "repo path"); parser.addOption(qbsRepoOption); - QCommandLineOption activitiesOption("activities", + QCommandLineOption activitiesOption(QStringList{"activities", "a"}, QString::fromLatin1("The activities to benchmark. Possible values (CSV): %1,%2,%3,%4") .arg(resolveActivity(), ruleExecutionActivity(), nullBuildActivity(), allActivities()), "activities", allActivities()); parser.addOption(activitiesOption); - QCommandLineOption thresholdOption("regression-threshold", + QCommandLineOption thresholdOption(QStringList{"regression-threshold", "r"}, "A relative increase higher than this is considered a performance regression. " "All temporary data from running the benchmarks will be kept if that happens.", "value in per cent"); |