~vadim-tk/percona-server/percona-galera-5.1.57

« back to all changes in this revision

Viewing changes to mysql-test/suite/parts/t/partition_basic_innodb.test

  • Committer: root
  • Date: 2011-07-10 16:09:24 UTC
  • Revision ID: root@r815.office.percona.com-20110710160924-fyffqsbaclgu6vui
Initial port

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
################################################################################
 
2
# t/partition_basic_innodb.test                                                #
 
3
#                                                                              #
 
4
# Purpose:                                                                     #
 
5
#  Tests around Create Partitioned table                                       #
 
6
#        InnoDB branch                                                         #
 
7
#                                                                              #
 
8
#------------------------------------------------------------------------------#
 
9
# Original Author: mleich                                                      #
 
10
# Original Date: 2006-03-05                                                    #
 
11
# Change Author:                                                               #
 
12
# Change Date:                                                                 #
 
13
# Change:                                                                      #
 
14
################################################################################
 
15
 
 
16
#
 
17
# NOTE: PLEASE DO NOT ADD NOT INNODB SPECIFIC TESTCASES HERE !
 
18
#       TESTCASES WHICH MUST BE APPLIED TO ALL STORAGE ENGINES MUST BE ADDED IN
 
19
#       THE SOURCED FILES ONLY.
 
20
#
 
21
# Please read the README at the end of inc/partition.pre before changing
 
22
# any of the variables.
 
23
#
 
24
 
 
25
#------------------------------------------------------------------------------#
 
26
# General not engine specific settings and requirements
 
27
 
 
28
##### Options, for debugging support #####
 
29
let $debug= 0;
 
30
let $with_partitioning= 1;
 
31
 
 
32
##### Option, for displaying files #####
 
33
let $ls= 1;
 
34
 
 
35
##### Number of rows for the INSERT/UPDATE/DELETE/SELECT experiments #####
 
36
#     on partioned tables
 
37
SET @max_row = 20;
 
38
 
 
39
##### Execute more tests                                             #####
 
40
let $more_trigger_tests= 0;
 
41
let $more_pk_ui_tests= 0;
 
42
 
 
43
# The server must support partitioning.
 
44
--source include/have_partition.inc
 
45
 
 
46
#------------------------------------------------------------------------------#
 
47
# Engine specific settings and requirements
 
48
 
 
49
##### Storage engine to be tested
 
50
--source include/have_innodb.inc
 
51
let $engine= 'InnoDB';
 
52
 
 
53
##### Execute the test of "table" files
 
54
# InnoDB has no files per PK, UI, ... But only .frm file
 
55
let $do_file_tests= 1;
 
56
 
 
57
##### Execute PRIMARY KEY tests                                      #####
 
58
# AFAIK InnoDB clusters the table around PRIMARY KEYs.
 
59
let $do_pk_tests= 1;
 
60
 
 
61
##### Assign a big number smaller than the maximum value for partitions  #####
 
62
#     and smaller than the maximum value of SIGNED INTEGER
 
63
let $MAX_VALUE= (2147483646);
 
64
 
 
65
# Generate the prerequisites ($variables, @variables, tables) needed
 
66
--source suite/parts/inc/partition.pre
 
67
 
 
68
##### Workarounds for known open engine specific bugs
 
69
#     none
 
70
 
 
71
#------------------------------------------------------------------------------#
 
72
# Execute the tests to be applied to all storage engines
 
73
--source suite/parts/inc/partition_basic.inc
 
74
 
 
75
#------------------------------------------------------------------------------#
 
76
# Execute storage engine specific tests
 
77
 
 
78
#------------------------------------------------------------------------------#
 
79
# Cleanup
 
80
--source suite/parts/inc/partition_cleanup.inc