~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memcached_stats/tests/t/query.test

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# memcached related system variable has been set. Both of these queries
4
4
# should return 0 rows
5
5
#
 
6
--exec sh $MYSQLTEST_VARDIR/../../plugin/memcached_functions/start_mc.sh stop
 
7
--exec sh $MYSQLTEST_VARDIR/../../plugin/memcached_functions/start_mc.sh start
6
8
 
 
9
--error 1105
7
10
select * 
8
11
from information_schema.memcached_stats;
9
12
 
10
 
select *
11
 
from information_schema.memcached_analysis;
12
 
 
13
13
#
14
14
# Look at the current value of the memcached related system variable
15
15
#
20
20
#
21
21
# Now try setting it to a certain value
22
22
#
23
 
set global memcached_stats_servers = 'localhost:11211';
 
23
--replace_result $MC_PORT MC_A_PORT
 
24
--eval set global memcached_stats_servers = 'localhost:$MC_PORT';
24
25
 
25
26
#
26
27
# make sure the system variable has been updated
27
28
#
 
29
--replace_column 2 #
28
30
select variable_name, variable_value
29
31
from information_schema.global_variables
30
32
where variable_name = 'memcached_stats_servers';
31
33
 
 
34
--replace_column 2 # 3 # 4 # 5 # 6 # 7 # 8 # 9 # 13 # 14 # 15 # 21 # 22 # 23 # 24 # 25 #
 
35
select * 
 
36
from information_schema.memcached_stats;
 
37
 
32
38
#
33
39
# Once the ability to created an embedded server has been added to
34
40
# memcached, we will actually start up an embedded server and perform some
35
41
# queries on it here...
36
42
#
 
43
--exec sh $MYSQLTEST_VARDIR/../../plugin/memcached_functions/start_mc.sh stop