mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / suite / stress / t / ddl_ndb.test
blob1e0a3680f8a11d18a0df12810ddd014696e9b23b
1 ######## t/ddl_ndb.test ######
3 # Stress the storage engine NDB with CREATE/DROP TABLE/INDEX
5 # Please look for details within include/ddl1.inc.
7 # Creation of this test:
8 # 2007-07-04 mleich
11 # Storage engine to be used in CREATE TABLE
12 --source include/have_ndb.inc
13 connection default;
15 let $engine_type= NDB;
18 if (`SELECT $PS_PROTOCOL + $SP_PROTOCOL + $CURSOR_PROTOCOL + $VIEW_PROTOCOL > 0`)
20    --skip Test requires: ps-protocol/sp-protocol/cursor-protocol/view-protocol disabled
22 # Attention: We set here much smaller values for $runtime and $loop_size compared
23 #            to the other storage engines.
24 #            The reason is that NDB is extreme slow and should not exceed
25 #            the "testcase-timeout".
26 let $run= `SELECT '$BIG_TEST' = '1'`;
27 if ($run)
29    # A run started with "--big-test" should be allowed to consume more time.
30    # Rough intended runtime per subtest variant in seconds
31    let $runtime = 5;
32    # number of rounds till we look at the clock again
33    let $loop_size= 3;
35 if (!$run)
37    let $runtime = 1;
38    let $loop_size= 1;
42 ##### Some preparations needed for the ddl*.inc scripts
43 --source suite/stress/include/ddl.pre
45 --source suite/stress/include/ddl1.inc
46 --source suite/stress/include/ddl2.inc
47 --source suite/stress/include/ddl3.inc
48 --source suite/stress/include/ddl4.inc
49 --source suite/stress/include/ddl5.inc
50 --source suite/stress/include/ddl6.inc
51 # The following test suffers from
52 #   Bug#26043 UNIQUE INDEX create always fails after constraint violation
53 # and is therefore set to comment.
54 # --source suite/stress/include/ddl7.inc
55 --source suite/stress/include/ddl8.inc
57 ##### Cleanup
58 --source suite/stress/include/ddl.cln