mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Adding test cases for the example storage engine (so that you can test to see if it was built correctly).
This commit is contained in:
4
mysql-test/include/have_exampledb.inc
Normal file
4
mysql-test/include/have_exampledb.inc
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-- require r/have_exampledb.require
|
||||||
|
disable_query_log;
|
||||||
|
show variables like "have_example_engine";
|
||||||
|
enable_query_log;
|
6
mysql-test/r/exampledb.result
Normal file
6
mysql-test/r/exampledb.result
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
drop table if exists t1;
|
||||||
|
CREATE TABLE t1 (
|
||||||
|
Period smallint(4) unsigned zerofill DEFAULT '0000' NOT NULL,
|
||||||
|
Varor_period smallint(4) unsigned DEFAULT '0' NOT NULL
|
||||||
|
) ENGINE=example;
|
||||||
|
drop table t1;
|
2
mysql-test/r/have_exampledb.require
Normal file
2
mysql-test/r/have_exampledb.require
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
Variable_name Value
|
||||||
|
have_exampledb YES
|
16
mysql-test/t/exampledb.test
Normal file
16
mysql-test/t/exampledb.test
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#
|
||||||
|
# Simple test for the example storage engine
|
||||||
|
# Taken fromm the select test
|
||||||
|
#
|
||||||
|
-- source include/have_exampledb.inc
|
||||||
|
|
||||||
|
--disable_warnings
|
||||||
|
drop table if exists t1;
|
||||||
|
--enable_warnings
|
||||||
|
|
||||||
|
CREATE TABLE t1 (
|
||||||
|
Period smallint(4) unsigned zerofill DEFAULT '0000' NOT NULL,
|
||||||
|
Varor_period smallint(4) unsigned DEFAULT '0' NOT NULL
|
||||||
|
) ENGINE=example;
|
||||||
|
|
||||||
|
drop table t1;
|
Reference in New Issue
Block a user