~mathiaz/ubuntu/lucid/mysql-dfsg-5.1/zap-bug-552053

« back to all changes in this revision

Viewing changes to mysql-test/t/ndb_log_updated_only_basic.test

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-06-25 12:55:45 UTC
  • mfrom: (1.1.2 upstream) (0.1.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20090625125545-m8ogs96zzsri74xe
Tags: 5.1.34-1ubuntu1
* Merge from debian experimental (and 5.0 from main), remaining changes:
  - debian/mysql-server-5.1.config:
    + ask for MySQL root password at priority high instead of medium so
      that the password prompt is seen on a default install. (LP: #319843)
    + don't ask for root password when upgrading from a 5.0 install.
  - debian/control:
    + Make libmysqlclient16-dev a transitional package depending on
      libmysqlclient-dev.
    + Make libmysqlclient-dev conflict with libmysqlclient15-dev.
    + Don't build mysql-server, mysql-client, mysql-common and
      libmysqlclient15-dev binary packages since they're still provided
      by mysql-dfsg-5.0.
    + Make mysql-{client,server}-5.1 packages conflict and
      replace mysql-{client,server}-5.0, but not provide
      mysql-{client,server}.
    + Depend on a specific version of mysql-common rather than the src
      version of mysql-dfsg-5.1 since mysql-common is currently part of
      mysql-dfsg-5.0.
    + Lower mailx from a Recommends to a Suggests to avoid pulling in
      a full MTA on all installs of mysql-server. (LP: #259477)
  - debian/rules:
    + added -fno-strict-aliasing to CFLAGS to get around mysql testsuite
      build failures.
    + install mysql-test and sql-bench to /usr/share/mysql/ rather than
      /usr/.
  - debian/additions/debian-start.inc.sh: support ANSI mode (LP: #310211)
  - Add AppArmor profile:
    - debian/apparmor-profile: apparmor profile.
    - debian/rules, debian/mysql-server-5.0.files: install apparmor profile.
    - debian/mysql-server-5.0.dirs: add etc/apparmor.d/force-complain
    - debian/mysql-server-5.0.postrm: remove symlink in force-complain/ on
      purge.
    - debian/mysql-server-5.1.README.Debian: add apparmor documentation.
    - debian/additions/my.cnf: Add warning about apparmor. (LP: #201799)
    - debian/mysql-server-5.1.postinst: reload apparmor profiles.
  - debian/additions/my.cnf: remove language option. Error message files are
    located in a different directory in MySQL 5.0. Setting the language
    option to use /usr/share/mysql/english breaks 5.0. Both 5.0 and 5.1
    use a default value that works. (LP: #316974)
  - debian/mysql-server-5.1.mysql.init:
    + Clearly indicate that we do not support running multiple instances
      of mysqld by duplicating the init script.
      (closes: #314785, #324834, #435165, #444216)
    + Properly parameterize all existing references to the mysql config
      file (/etc/mysql/my.cnf).
  - debian/mysql-server-5.0.postinst: Clear out the second password
    when setting up mysql. (LP: #344816)
  - mysql-server-core-5.1 package for files needed by Akonadi:
    + debian/control: create mysql-server-core-5.1 package.
    + debian/mysql-server-core-5.1.files, debian/mysql-server-5.1.files:
      move core mysqld files to mysql-server-core-5.1 package.
  - Don't package sql-bench and mysql-test file.
* Dropped changes:
  - debian/patches/92_ssl_test_cert.dpatch: certificate expiration in
    test suite (LP: #323755). Included upstream.
* Dropped from 5.0:
  - apparmor profile:
    - debian/control: Recommends apparmor >= 2.1+1075-0ubuntu6. All version
      of apparmor-profile (>hardy) are higher than this version.
    - debian/mysql-server-5.0.preinst: create symlink for force-complain/
      on pre-feisty upgrades, upgrades where apparmor-profiles profile is
      unchanged (ie non-enforcing) and upgrades where the profile
      doesn't exist. Support for pre-hardy upgrades is no longer needed.
* debian/mysql-server-5.1.postinst: fix debian-sys-maint user creation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
############## mysql-test\t\ndb_log_updated_only_basic.test ###############
2
 
#                                                                             #
3
 
# Variable Name: ndb_log_updated_only                                     #
4
 
# Scope: GLOBAL                                                     #
5
 
# Access Type: Dynamic                                                        #
6
 
# Data Type: boolean                                                        #
7
 
# Default Value:                                                              #
8
 
# Range:                                                                      #
9
 
#                                                                             #
10
 
#                                                                             #
11
 
# Creation Date: 2008-02-07                                                   #
12
 
# Author:  Rizwan                                                     #
13
 
#                                                                             #
14
 
# Description: Test Cases of Dynamic System Variable ndb_log_updated_only #
15
 
#              that checks the behavior of this variable in the following ways#
16
 
#              * Default Value                                                #
17
 
#              * Valid & Invalid values                                       #
18
 
#              * Scope & Access method                                        #
19
 
#              * Data Integrity                                               #
20
 
#                                                                             #
21
 
# Reference: http://dev.mysql.com/doc/refman/5.1/en/                          #
22
 
#  server-system-variables.html                                               #
23
 
#                                                                             #
24
 
###############################################################################
25
 
############## mysql-test\t\ndb_log_updated_only_basic.test ################
26
 
#                                                                              #
27
 
# Variable Name: ndb_log_updated_only                                      #
28
 
# Scope: GLOBAL & SESSION                                                      #
29
 
# Access Type: Dynamic                                                         #
30
 
# Data Type: Numeric                                                           #
31
 
# Default Value: 1                                                             #
32
 
# Range: 1 - 65536                                                             #
33
 
#                                                                              #
34
 
#                                                                              #
35
 
# Creation Date: 2008-02-07                                                    #
36
 
# Author:  Rizwan Maredia                                                      #
37
 
#                                                                              #
38
 
# Description: Test Cases of Dynamic System Variable ndb_log_updated_only  #
39
 
#              that checks the behavior of this variable in the following ways #
40
 
#              * Default Value                                                 #
41
 
#              * Valid & Invalid values                                        #
42
 
#              * Scope & Access method                                         #
43
 
#              * Data Integrity                                                #
44
 
#                                                                              #
45
 
# Reference: http://dev.mysql.com/doc/refman/5.1/en/                           #
46
 
#  server-system-variables.html                                                #
47
 
#                                                                              #
48
 
################################################################################
49
 
################# mysql-test\t\ndb_log_updated_only_basic.test #########
50
 
#                                                                      #
51
 
#                                                                      # 
52
 
# Creation Date: 2008-02-07                                            #
53
 
# Author:  Rizwan Maredia                                              #
54
 
#                                                                      #
55
 
# Description: Test Cases of Dynamic System Variable                   #
56
 
#              ndb_log_updated_only that check behavior of this        #
57
 
#              variable with valid values, invalid values,             #
58
 
#              accessing variable with scope that is                   #
59
 
#              allowed and with scope that is now allowed.             #
60
 
# Scope: Global                                                        #
61
 
# Reference: http://dev.mysql.com/doc/refman/5.1/en/server-system      # 
62
 
#            -variables.html                                           #
63
 
#                                                                      #
64
 
########################################################################
65
 
 
66
 
--source include/load_sysvars.inc
67
 
 
68
 
######################################################################## 
69
 
#                    START OF ndb_log_updated_only TESTS               #
70
 
######################################################################## 
71
 
 
72
 
 
73
 
################################################################################ 
74
 
#      Saving initial value of ndb_log_updated_only in a temporary variable #
75
 
################################################################################ 
76
 
 
77
 
 
78
 
--Error ER_UNKNOWN_SYSTEM_VARIABLE
79
 
SET @global_start_value = @@global.ndb_log_updated_only;
80
 
--Error ER_UNKNOWN_SYSTEM_VARIABLE
81
 
SELECT @@global.ndb_log_updated_only;
82
 
 
83
 
--echo 'Bug: The value is not a system variable or atleast not supported in version 5.1.22'
84
 
 
85
 
 
86
 
--echo '#--------------------FN_DYNVARS_103_01------------------------#'
87
 
######################################################################## 
88
 
#           Display the DEFAULT value of ndb_log_updated_only       #
89
 
######################################################################## 
90
 
 
91
 
#SET @@ndb_log_updated_only = 0;
92
 
#SET @@ndb_log_updated_only = DEFAULT;
93
 
#SELECT @@ndb_log_updated_only;
94
 
#
95
 
#SET @@ndb_log_updated_only = 1;
96
 
#SET @@ndb_log_updated_only = DEFAULT;
97
 
#SELECT @@ndb_log_updated_only;
98
 
 
99
 
 
100
 
--echo '#---------------------FN_DYNVARS_103_02-------------------------#'
101
 
############################################################################# 
102
 
#   Check if ndb_log_updated_only can be accessed with and without @@ sign  #
103
 
############################################################################# 
104
 
 
105
 
#SET ndb_log_updated_only = 1;
106
 
#SELECT @@ndb_log_updated_only;
107
 
#--Error ER_UNKNOWN_TABLE
108
 
#SELECT global.ndb_log_updated_only;
109
 
#
110
 
#SET global ndb_log_updated_only = 1;
111
 
#SELECT @@global.ndb_log_updated_only;
112
 
 
113
 
 
114
 
--echo '#--------------------FN_DYNVARS_103_03------------------------#'
115
 
######################################################################## 
116
 
#              Change the value of ndb_log_updated_only to a valid value         #
117
 
######################################################################## 
118
 
 
119
 
#SET @@global.ndb_log_updated_only = 0;
120
 
#SELECT @@global.ndb_log_updated_only;
121
 
#SET @@global.ndb_log_updated_only = 1;
122
 
#SELECT @@global.ndb_log_updated_only;
123
 
## a value of 2 is used to just flush logs and then shutdown cold. Not supported on Netware
124
 
#SET @@global.ndb_log_updated_only = 2;
125
 
#SELECT @@global.ndb_log_updated_only;
126
 
 
127
 
--echo '#--------------------FN_DYNVARS_103_04-------------------------#'
128
 
########################################################################### 
129
 
#               Change the value of ndb_log_updated_only to invalid value #
130
 
########################################################################### 
131
 
 
132
 
#--Error ER_WRONG_VALUE_FOR_VAR
133
 
#SET @@global.ndb_log_updated_only = -1;
134
 
#--Error ER_WRONG_VALUE_FOR_VAR
135
 
#SET @@global.ndb_log_updated_only = TRU;
136
 
#--Error ER_WRONG_VALUE_FOR_VAR
137
 
#SET @@global.ndb_log_updated_only = TRUE_F;
138
 
#--Error ER_WRONG_VALUE_FOR_VAR
139
 
#SET @@global.ndb_log_updated_only = FALS;
140
 
#--Error ER_WRONG_VALUE_FOR_VAR
141
 
#SET @@global.ndb_log_updated_only = OON;
142
 
#--Error ER_WRONG_VALUE_FOR_VAR
143
 
#SET @@global.ndb_log_updated_only = ONN;
144
 
#--Error ER_WRONG_VALUE_FOR_VAR
145
 
#SET @@global.ndb_log_updated_only = OOFF;
146
 
#--Error ER_WRONG_VALUE_FOR_VAR
147
 
#SET @@global.ndb_log_updated_only = 0FF;
148
 
#--Error ER_WRONG_VALUE_FOR_VAR
149
 
#SET @@global.ndb_log_updated_only = ' 1';
150
 
#--Error ER_WRONG_VALUE_FOR_VAR
151
 
#SET @@global.ndb_log_updated_only = "0 ";
152
 
 
153
 
 
154
 
 
155
 
--echo '#-------------------FN_DYNVARS_103_05----------------------------#'
156
 
########################################################################### 
157
 
#           Test if accessing session ndb_log_updated_only gives error    #
158
 
########################################################################### 
159
 
 
160
 
#--Error ER_LOCAL_VARIABLE
161
 
#SET @@session.ndb_log_updated_only = 0;
162
 
#--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
163
 
#SET @@ndb_log_updated_only = 0;
164
 
#--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
165
 
#SET @@local.ndb_log_updated_only = 0;
166
 
#--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
167
 
#SELECT @@session.ndb_log_updated_only;
168
 
#--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
169
 
#SELECT @@local.ndb_log_updated_only;
170
 
 
171
 
--echo '#----------------------FN_DYNVARS_103_06------------------------#'
172
 
######################################################################### 
173
 
#     Check if the value in SESSION Table contains variable value       #
174
 
#########################################################################
175
 
 
176
 
#SELECT count(VARIABLE_VALUE) AS res_is_0 FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='ndb_log_updated_only';
177
 
 
178
 
 
179
 
--echo '#----------------------FN_DYNVARS_103_07------------------------#'
180
 
######################################################################### 
181
 
#     Check if the value in GLOBAL Table matches value in variable     #
182
 
#########################################################################
183
 
 
184
 
#SELECT @@global.ndb_log_updated_only = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='ndb_log_updated_only';
185
 
 
186
 
 
187
 
--echo '#---------------------FN_DYNVARS_103_08-------------------------#'
188
 
################################################################### 
189
 
#        Check if ON and OFF values can be used on variable       #
190
 
################################################################### 
191
 
 
192
 
#SET @@ndb_log_updated_only = OFF;
193
 
#SELECT @@ndb_log_updated_only;
194
 
#SET @@ndb_log_updated_only = ON;
195
 
#SELECT @@ndb_log_updated_only;
196
 
 
197
 
--echo '#---------------------FN_DYNVARS_103_09----------------------#'
198
 
################################################################### 
199
 
#      Check if TRUE and FALSE values can be used on variable     #
200
 
################################################################### 
201
 
 
202
 
#SET @@ndb_log_updated_only = TRUE;
203
 
#SELECT @@ndb_log_updated_only;
204
 
#SET @@ndb_log_updated_only = 'FALSE';
205
 
#SELECT @@ndb_log_updated_only;
206
 
 
207
 
##############################  
208
 
#   Restore initial value    #
209
 
##############################
210
 
 
211
 
#SET @@ndb_log_updated_only = @global_start_value;
212
 
#SELECT @@ndb_log_updated_only;
213
 
 
214
 
######################################################################## 
215
 
#                    END OF ndb_log_updated_only TESTS                 #
216
 
########################################################################