86235957bb
Fix opt_help.t to pass when the binary is not configured with MySQL support.
2018-04-02 11:42:08 +03:00
92b1426276
Use --db-driver=mysql by default, if the MySQL driver is available.
...
If the MySQL driver is available and --db-driver option was explicitly
specified, assume MySQL and don't compain about multiple DB drivers
being available.
That was a popular request and is likely what most sysbench users want.
2018-04-02 11:20:55 +03:00
56b473faf6
Fix GH-195: Fix JSON reporter to produce valid JSON
...
sysbench.report_json() now generates well-formed JSON without comma
after the last array element and with proper opening/closing brackets.
2018-04-01 13:59:00 +03:00
a4cb8a6c6d
Fix a help message typo.
2018-03-28 13:09:24 +03:00
7b383cc537
Don't fail when query_row() is called with an empty SELECT.
2018-03-23 19:13:52 +03:00
ce5a14b50a
Fix PostgreSQL-specific regression tests to work with 10.3.1.
...
PostgreSQL 10.3.1 changed the dump format of schema objects. We now
remove the schema name to make results compatible across all PostgreSQL
versions.
2018-03-22 10:23:11 +03:00
89e37ba6f7
Don't crash when SQL bulk insert API calls are used out of order.
2018-03-21 22:43:08 +03:00
4166834248
tests: improve test_fileio.t stability.
2018-02-17 20:37:24 +03:00
7263769245
tests: add --validate test to test_fileio.t
2018-02-17 19:42:22 +03:00
d000761b9c
--file-extra-flags now accepts a list of flags rather than a single value
2018-02-03 19:19:12 +03:00
aefee11a50
api_basic.t: fix help() test
2018-01-07 11:32:56 +03:00
b7dd7e0781
fix the ret value by which we can stop benchmark in event
2018-01-02 20:08:36 +05:00
6972814378
Replace custom data inspection code in regression tests with inspect.lua.
2017-12-24 11:48:29 +03:00
fd343c027e
Fix test comment.
2017-12-23 15:53:09 +03:00
6e979f5aef
GH-198: Tolerate misaligned test_files.
...
Adjust I/O request size if it crosses file size boundaries. Which may
happen if the specified file size is not a multiple of block size.
2017-12-23 14:07:29 +03:00
f9d79aefe5
Addendum to patch for GH-196: skip file size validation on seqwr tests.
2017-12-23 13:26:53 +03:00
b9c6b3a2df
Fix GH-196: fileio: validate file sizes on startup
...
In the fileio test, throw a descriptive error on startup if a test file
size is lower than expected.
2017-12-17 13:07:20 +03:00
53bcc667ca
Sort PostgreSQL index defs in regression tests to make results deterministic.
2017-11-10 11:44:08 +03:00
06c7f55f24
Fix #178 : (--tables>1 --threads>1 broken in oltp_insert.lua)
...
A combination of --tables and --threads with non-default (i.e. higher
than 1) values resulted in incompleted set of tables generated by
"prepare" for the oltp_insert.lua script.
2017-11-09 12:35:17 +03:00
e3ef9b642c
Add -q (quiet) flag to psql in pgsql_common.sh.
2017-10-26 15:07:53 +03:00
0bd06b9a47
Fix Postgres-specific regression tests to work with PostgreSQL 10.
2017-10-26 14:59:25 +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
cd2b738022
Avoid PK conflicts in oltp_insert.lua by creating empty tables on 'prepare'.
2017-09-12 10:08:59 +03:00
305be15ebc
Fix #168 : oltp_delete.lua uses DELETE + INSERT statements
...
Remove INSERT statements from oltp_delete.lua.
2017-08-23 16:14:14 +03:00
b57453df60
Report events per second in the CPU benchmark. Ref. #140 .
2017-06-07 21:49:46 +03:00
6356e2b45e
Fix #139 : Json format has trailing comma
...
Remove a superfluous comma from the JSON reporter.
2017-06-04 20:03:17 +03:00
3fd67c44c5
Add a testcase for the missing file error in fileio.
2017-05-31 21:27:04 +03:00
f6bbdfa76f
fix api_report test latency check
2017-05-27 13:42:08 +03:00
fd34a95595
fix typo in --rand-pareto-h description
2017-05-27 13:42:03 +03:00
d15d273226
Fix #130 : Mutex Benchmark Documentation
...
Fix --mutex-loops description to say it's the number of empty loops
outside the lock. Also, make the loops really empty by using a compiler
barrier instead of incrementing a local variable.
2017-04-28 17:08:54 -07:00
e60ea86b69
Fix api_basic.t.
2017-04-02 11:29:29 +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
a0658f09ce
Memory benchmark optimizations.
...
Optimize the memory benchmark:
- get rid of the global mutex to calculate statistics
- remove if() and switch() branches on critical code paths
- align memory blocks to OS page size
- use native machine word size instead of 'int'
2017-03-29 21:02:07 +03:00
d514625849
Override the default time limit in test_memory.t to improve stability.
2017-03-29 16:43:35 +03:00
956d12996e
Fix "PYTHONPATH: unbound variable" error in test_run.sh.
2017-03-12 12:03:21 +03:00
89ab44d50e
Fix #119 (oltp_insert.lua + --auto-inc=0 fails)
...
Fix oltp_insert.lua when run with --auto-inc disabled. Add regression tests.
2017-03-12 10:45:03 +03:00
355f6331d0
Define cram-specific variables in AM_TESTS_ENVIRONMENT.
2017-03-05 21:59:38 +03:00
f9315b637d
Bundle cram and make it used automatically by 'make test'.
2017-03-05 21:14:24 +03:00
9bd33c7e41
Fix grammar in help text for --skip-trx.
2017-02-28 12:30:10 +03:00
1654ef0a16
Fix OLTP regression tests.
2017-02-09 10:52:26 +03:00
21d87e792e
Run OLTP RW regression tests with a single thread for more deterministic results.
2017-02-05 11:22:47 +01:00
08e5b4fa9e
Add a new line to an error message.
2017-02-02 23:32:46 +03:00
40c14789aa
Export mysql_drv_reconnect() to Lua SQL API.
2017-02-02 10:59:51 +03:00
9fdec9dccf
Rename sysbench.option_defs to sysbench.cmdline.options.
2017-02-01 19:31:53 +03:00
b5b1878740
Fix opt_report_interval.t.
2017-02-01 19:31:40 +03:00
4a755b1c5d
Make the default intermediate reports format a little more terse.
2017-02-01 18:57:37 +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
8f227f64b3
Rename --tx-rate to --rate, keep --tx-rate as a deprecated alias.
2017-02-01 16:28:14 +03:00