dbqp should integrate with the randgen
Bug #723828 reported by
Patrick Crews
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
High
|
Patrick Crews | ||
7.0 |
Fix Released
|
High
|
Patrick Crews |
Bug Description
dbqp supports modes. Since a number of our tests are randgen-based, we should provide an easy means of executing them.
Need a custom executor + manager for tests
Related branches
lp:~patrick-crews/drizzle/dbqp_randgen
- Drizzle Developers: Pending requested
-
Diff: 1616 lines (+882/-204)22 files modified.bzrignore (+1/-3)
docs/testing/dbqp.rst (+87/-8)
tests/include.am (+2/-2)
tests/lib/drizzle_test_run/dtr_test_execution.py (+2/-1)
tests/lib/drizzle_test_run/dtr_test_management.py (+3/-6)
tests/lib/randgen/randgen_test_execution.py (+175/-0)
tests/lib/randgen/randgen_test_management.py (+149/-0)
tests/lib/server_mgmt/drizzled.py (+54/-90)
tests/lib/server_mgmt/server.py (+156/-0)
tests/lib/server_mgmt/server_management.py (+28/-19)
tests/lib/sys_mgmt/port_management.py (+3/-3)
tests/lib/sys_mgmt/system_management.py (+33/-0)
tests/lib/test_mgmt/execution_management.py (+1/-1)
tests/lib/test_mgmt/test_execution.py (+67/-44)
tests/lib/test_mgmt/test_management.py (+15/-11)
tests/lib/test_mode.py (+33/-14)
tests/lib/test_run_options.py (+30/-2)
tests/randgen_tests/main/optimizer_subquery.cnf (+8/-0)
tests/randgen_tests/main/outer_join.cnf (+8/-0)
tests/randgen_tests/main/simple.cnf (+9/-0)
tests/randgen_tests/slave_plugin/slave_plugin.disabled (+9/-0)
tests/randgen_tests/trx_log/simple.cnf (+9/-0)
To post a comment you must log in.
Have added randgen mode: tests.
If we provide a path to the randgen, we will execute tests (in .cnf files) from tests/randgen_
The new tests are organized as dtr tests on a per-suite basis. All suites should be located in randgen_tests.
./dbqp --mode=randgen --randgen- path=/home/ username/ repos/randgen file-priv= True for randgen mode... ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= === ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= === subquery [ pass ] 134153 ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ===
Setting --no-secure-
<snip>
23 Feb 2011 11:42:43 INFO: Using testing mode: randgen
<snip>
23 Feb 2011 11:44:58 : =======
23 Feb 2011 11:44:58 : TEST NAME [ RESULT ] TIME (ms)
23 Feb 2011 11:44:58 : =======
23 Feb 2011 11:44:58 : main.optimizer_
23 Feb 2011 11:45:03 : main.outer_join [ pass ] 5136
23 Feb 2011 11:45:06 : main.simple [ pass ] 2246
23 Feb 2011 11:45:06 : =======
23 Feb 2011 11:45:06 INFO: Test execution complete in 142 seconds
23 Feb 2011 11:45:06 INFO: Summary report:
23 Feb 2011 11:45:06 INFO: Executed 3/3 test cases, 100.00 percent
23 Feb 2011 11:45:06 INFO: STATUS: PASS, 3/3 test cases, 100.00 percent executed
23 Feb 2011 11:45:06 INFO: Spent 141 / 142 seconds on: TEST(s)
23 Feb 2011 11:45:06 INFO: Test execution complete
23 Feb 2011 11:45:06 INFO: Stopping all running servers...