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
85b5cbe3
Commit
85b5cbe3
authored
Feb 05, 2014
by
Andrew McDonnell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LP: #459714 extend test coverage to innodb abd AriaDB backing tables
parent
dd6225c1
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
2951 additions
and
3 deletions
+2951
-3
storage/oqgraph/mysql-test/oqgraph/general-Aria.result
storage/oqgraph/mysql-test/oqgraph/general-Aria.result
+2
-1
storage/oqgraph/mysql-test/oqgraph/general-Aria.test
storage/oqgraph/mysql-test/oqgraph/general-Aria.test
+3
-0
storage/oqgraph/mysql-test/oqgraph/general-MyISAM.result
storage/oqgraph/mysql-test/oqgraph/general-MyISAM.result
+1439
-0
storage/oqgraph/mysql-test/oqgraph/general-MyISAM.test
storage/oqgraph/mysql-test/oqgraph/general-MyISAM.test
+3
-0
storage/oqgraph/mysql-test/oqgraph/general-innodb.result
storage/oqgraph/mysql-test/oqgraph/general-innodb.result
+1439
-0
storage/oqgraph/mysql-test/oqgraph/general-innodb.test
storage/oqgraph/mysql-test/oqgraph/general-innodb.test
+4
-0
storage/oqgraph/mysql-test/oqgraph/general.inc
storage/oqgraph/mysql-test/oqgraph/general.inc
+4
-2
storage/oqgraph/mysql-test/oqgraph/generate_backing_table_tests_suite.sh
.../mysql-test/oqgraph/generate_backing_table_tests_suite.sh
+51
-0
storage/oqgraph/mysql-test/oqgraph/maintainer-general-record.sh
...e/oqgraph/mysql-test/oqgraph/maintainer-general-record.sh
+6
-0
No files found.
storage/oqgraph/mysql-test/oqgraph/
basic
.result
→
storage/oqgraph/mysql-test/oqgraph/
general-Aria
.result
View file @
85b5cbe3
DROP TABLE IF EXISTS graph_base;
DROP TABLE IF EXISTS graph_base;
DROP TABLE IF EXISTS graph;
DROP TABLE IF EXISTS graph;
DROP TABLE IF EXISTS graph2;
DROP TABLE IF EXISTS graph2;
Performing OQGraph General test suite for ENGINE=Aria
CREATE TABLE graph_base (
CREATE TABLE graph_base (
from_id INT UNSIGNED NOT NULL,
from_id INT UNSIGNED NOT NULL,
to_id INT UNSIGNED NOT NULL,
to_id INT UNSIGNED NOT NULL,
PRIMARY KEY (from_id,to_id),
PRIMARY KEY (from_id,to_id),
INDEX (to_id)
INDEX (to_id)
) ENGINE=
MyISAM
;
) ENGINE=
Aria
;
CREATE TABLE graph (
CREATE TABLE graph (
latch VARCHAR(32) NULL,
latch VARCHAR(32) NULL,
origid BIGINT UNSIGNED NULL,
origid BIGINT UNSIGNED NULL,
...
...
storage/oqgraph/mysql-test/oqgraph/general-Aria.test
0 → 100644
View file @
85b5cbe3
# This is a maintainer generated file. Generated at Wednesday 5 February 22:26:12 CST 2014.
--
let
$oqgraph_use_table_type
=
Aria
--
source
general
.
inc
storage/oqgraph/mysql-test/oqgraph/general-MyISAM.result
0 → 100644
View file @
85b5cbe3
This diff is collapsed.
Click to expand it.
storage/oqgraph/mysql-test/oqgraph/general-MyISAM.test
0 → 100644
View file @
85b5cbe3
# This is a maintainer generated file. Generated at Wednesday 5 February 22:26:12 CST 2014.
--
let
$oqgraph_use_table_type
=
MyISAM
--
source
general
.
inc
storage/oqgraph/mysql-test/oqgraph/general-innodb.result
0 → 100644
View file @
85b5cbe3
This diff is collapsed.
Click to expand it.
storage/oqgraph/mysql-test/oqgraph/general-innodb.test
0 → 100644
View file @
85b5cbe3
# This is a maintainer generated file. Generated at Wednesday 5 February 22:26:12 CST 2014.
--
source
include
/
have_innodb
.
inc
--
let
$oqgraph_use_table_type
=
innodb
--
source
general
.
inc
storage/oqgraph/mysql-test/oqgraph/
basic.test
→
storage/oqgraph/mysql-test/oqgraph/
general.inc
View file @
85b5cbe3
...
@@ -4,13 +4,15 @@ DROP TABLE IF EXISTS graph;
...
@@ -4,13 +4,15 @@ DROP TABLE IF EXISTS graph;
DROP
TABLE
IF
EXISTS
graph2
;
DROP
TABLE
IF
EXISTS
graph2
;
--
enable_warnings
--
enable_warnings
--
echo
Performing
OQGraph
General
test
suite
for
ENGINE
=
$oqgraph_use_table_type
# Create the backing store
# Create the backing store
CREATE
TABLE
graph_base
(
eval
CREATE
TABLE
graph_base
(
from_id
INT
UNSIGNED
NOT
NULL
,
from_id
INT
UNSIGNED
NOT
NULL
,
to_id
INT
UNSIGNED
NOT
NULL
,
to_id
INT
UNSIGNED
NOT
NULL
,
PRIMARY
KEY
(
from_id
,
to_id
),
PRIMARY
KEY
(
from_id
,
to_id
),
INDEX
(
to_id
)
INDEX
(
to_id
)
)
ENGINE
=
MyISAM
;
)
ENGINE
=
$oqgraph_use_table_type
;
CREATE
TABLE
graph
(
CREATE
TABLE
graph
(
...
...
storage/oqgraph/mysql-test/oqgraph/generate_backing_table_tests_suite.sh
0 → 100755
View file @
85b5cbe3
#!/bin/bash
# This is a template fgenerator or repeating an identical suite of tests for each backing table storage engine
# It generates a set of .test files for the following, for example:
# general-myisam.test
# general-memory.test
# general-innodb.test
# (etc)
#
# We generate these files, because as a general rule the coverage should be identical per backing table engine
# but we might want to pick out and re-reun for an individual backing table engine
# otherwise we could use an MTR loop instead.
# This is intended to be used by a maintainer; i.e. the resulting .test files are still committed to git.
# Note on known storage engines:
# See https://mariadb.com/kb/en/information-schema-engines-table/ for a full list
# CSV - doesn't work with OQGraph, attempting to create backing table gives 'failed: 1069: Too many keys specified; max 0 keys allowed'
# BLACKHOLE - makes no sense... but we should make sure it doesnt crash
# FEDERATED, ARCHIVE - consider later
ENGINES
=
"MyISAM MEMORY Aria"
for
ENGINE
in
$ENGINES
;
do
cat
>
general-
$ENGINE
.test
<<
EOF
# This is a maintainer generated file. Generated at `date`.
--let
\$
oqgraph_use_table_type=
$ENGINE
--source general.inc
EOF
done
# These engines need an extra check to see if thy are compiled
ENGINES2
=
"innodb xtradb"
for
ENGINE
in
$ENGINES2
;
do
cat
>
general-
$ENGINE
.test
<<
EOF
# This is a maintainer generated file. Generated at `date`.
-- source include/have_
$ENGINE
.inc
--let
\$
oqgraph_use_table_type=
$ENGINE
--source general.inc
EOF
done
# Generate a script to rerun the test suite as well
# Intended to be run from build as ../storage/oqgraph/mysql-test/oqgraph/maintainer-general-record.sh
MGFILE
=
maintainer-general-record.sh
echo
'# This is a maintainer generated file. Generated at '
`
date
`
'.'
>
$MGFILE
for
ENGINE
in
$ENGINES
$ENGINES2
;
do
echo
mysql-test/mysql-test-run
--record
oqgraph.general-
$ENGINE
>>
$MGFILE
done
storage/oqgraph/mysql-test/oqgraph/maintainer-general-record.sh
0 → 100755
View file @
85b5cbe3
# This is a maintainer generated file. Generated at Wednesday 5 February 22:26:12 CST 2014.
mysql-test/mysql-test-run
--record
oqgraph.general-MyISAM
mysql-test/mysql-test-run
--record
oqgraph.general-MEMORY
mysql-test/mysql-test-run
--record
oqgraph.general-Aria
mysql-test/mysql-test-run
--record
oqgraph.general-innodb
mysql-test/mysql-test-run
--record
oqgraph.general-xtradb
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