26 Commits

Author SHA1 Message Date
50966c85ce Merge branch '1.0' 2018-06-26 21:35:39 +03:00
d805300846 Fix GH-223: test failure on ppc64
Make sysbench.cmdline.print_test_options() output deterministic by
sorting option names when parsing.
2018-05-11 22:22:33 +03:00
3a06fdc87b Merge branch '1.0' 2018-04-12 22:14:44 +03:00
af11fa7bd4 Improve parsing of boolean command line options.
Accept true/1 as synonyms for 'on', and 'false'/0 as synonyms for
'off'. Also reject other values instead of silently converting them to
'off'.
2018-04-12 22:11:16 +03:00
edb40e012a Remove legacy (0.5) API. 2018-01-07 14:08:27 +03:00
08d4b38bb4 Merge branch '1.0' 2017-12-24 11:50:52 +03:00
6972814378 Replace custom data inspection code in regression tests with inspect.lua. 2017-12-24 11:48:29 +03:00
07b1146b15 Fix #173: Commit feb0346 removed latency sum from reporting
Add latency sum back to reports.
2017-09-19 08:48:27 +03:00
feb0346fc3 Various cleanups and improvements in benchmark reports. 2017-09-18 23:14:01 +03:00
c01087138d Make sysbench.opt available to init()/done() by exporting it to global Lua state. 2017-09-15 20:48:27 +03:00
a880fc4bcc Make sysbench.opt available to init()/done() by exporting it to global Lua state. 2017-09-15 20:43:28 +03:00
480c34c33b Report errors thrown by the script properly with the 'sysbench modulename' syntax. 2017-04-02 10:42:01 +03:00
fb7e62db24 Allow benchmarks to be specified as a module name, i.e. a require() argument. 2017-03-31 13:52:55 +03:00
08e5b4fa9e Add a new line to an error message. 2017-02-02 23:32:46 +03:00
9fdec9dccf Rename sysbench.option_defs to sysbench.cmdline.options. 2017-02-01 19:31:53 +03:00
7f56e219f7 Rename --num-threads to --threads.
Accept the old name with a warning for compatibility.
2017-02-01 17:42:39 +03:00
788fcbb30b Rename --max-requests to --events, --max-time to --time.
Print warnings if old names are used, but accept them for compatibility.
2017-02-01 17:20:22 +03:00
2a3ca019cb if the test name on the command line is "-", read Lua script from the standard input. 2017-02-01 10:56:05 +03:00
094c15d555 Make sysbench.cmdline.argv available from the master thread. 2017-01-31 13:21:57 +03:00
abb3f55a5f Export command line arguments + command name to sysbench.cmdline. 2017-01-31 12:52:59 +03:00
04b4f756d9 Refactor stats reporting to make custom reports possible. 2017-01-29 19:32:14 +03:00
49aa0b4322 Fixes #78: better error hints for missing help command
Now if the help command is specified for a script, sysbench first check
if the script impelements a custom help command, and calls it. If no
custom command is defined, it checks whether the script declares any
command line options, in which case it prints their description. If
neither the help() function nor an option declaration is available,
sysbench prints an error message.
2017-01-28 16:20:29 +03:00
49016568ba Implement custom commands + parallel custom commands. 2017-01-28 15:45:16 +03:00
9d73ed0865 Allow Lua scripts to declare supported options.
Lua scripts can now declare their supported options, in which case
sysbench validates command line arguments and display usage
information.

This is a prerequisite for fixing #15 and #79.
2017-01-26 04:23:55 +03:00
96a1ed4049 Adjust cmdline.t to pass on slower machines. 2017-01-25 01:49:51 +03:00
45e219d038 Change the command line syntax: remove the --test option. 2017-01-25 00:02:59 +03:00