~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-03-18 12:12:31 UTC
  • Revision ID: james.westby@ubuntu.com-20100318121231-k6g1xe6cshbwa0f8
Tags: upstream-2010.03.1347
ImportĀ upstreamĀ versionĀ 2010.03.1347

Show diffs side-by-side

added added

removed removed

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