Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
792d6b34
Commit
792d6b34
authored
Jan 31, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skip cassandra.test unless cassandra is running
parent
ab83952f
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
11 deletions
+12
-11
mysql-test/include/have_cassandra.inc
mysql-test/include/have_cassandra.inc
+0
-10
mysql-test/suite/plugins/r/cassandra.result
mysql-test/suite/plugins/r/cassandra.result
+0
-0
mysql-test/suite/plugins/suite.pm
mysql-test/suite/plugins/suite.pm
+8
-0
mysql-test/suite/plugins/t/cassandra.opt
mysql-test/suite/plugins/t/cassandra.opt
+0
-0
mysql-test/suite/plugins/t/cassandra.test
mysql-test/suite/plugins/t/cassandra.test
+4
-1
No files found.
mysql-test/include/have_cassandra.inc
deleted
100644 → 0
View file @
ab83952f
#
# suite.pm will make sure that all tests including this file
# will be skipped unless innodb or xtradb is enabled
#
# The test below is redundant
if
(
`SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.ENGINES WHERE engine = 'cassandra' AND support IN ('YES', 'DEFAULT', 'ENABLED')`
)
{
--
skip
Test
requires
Cassandra
.
}
mysql-test/r/cassandra.result
→
mysql-test/
suite/plugins/
r/cassandra.result
View file @
792d6b34
File moved
mysql-test/suite/plugins/suite.pm
View file @
792d6b34
...
...
@@ -2,10 +2,18 @@ package My::Suite::Plugins;
@ISA
=
qw(My::Suite)
;
sub
cassandra_running
()
{
return
0
if
IS_WINDOW
;
system
'
echo show version | cqlsh -3 2>/dev/null >/dev/null
';
return
$?
==
0
;
}
sub
skip_combinations
{
my
%
skip
;
$skip
{'
t/pam.test
'}
=
'
No pam setup for mtr
'
unless
-
e
'
/etc/pam.d/mariadb_mtr
';
$skip
{'
t/cassandra.test
'}
=
'
Cassandra is not running
'
unless
cassandra_running
();
%
skip
;
}
...
...
mysql-test/
include/have_
cassandra.opt
→
mysql-test/
suite/plugins/t/
cassandra.opt
View file @
792d6b34
File moved
mysql-test/t/cassandra.test
→
mysql-test/
suite/plugins/
t/cassandra.test
View file @
792d6b34
#
# Tests for cassandra storage engine
#
--
source
include
/
have_cassandra
.
inc
if
(
`SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.ENGINES WHERE engine = 'cassandra' AND support IN ('YES', 'DEFAULT', 'ENABLED')`
)
{
--
skip
Test
requires
Cassandra
.
}
--
disable_warnings
drop
table
if
exists
t0
,
t1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment