summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/storage_engine/1st.test
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:24:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:24:36 +0000
commit06eaf7232e9a920468c0f8d74dcf2fe8b555501c (patch)
treee2c7b5777f728320e5b5542b6213fd3591ba51e2 /mysql-test/suite/storage_engine/1st.test
parentInitial commit. (diff)
downloadmariadb-06eaf7232e9a920468c0f8d74dcf2fe8b555501c.tar.xz
mariadb-06eaf7232e9a920468c0f8d74dcf2fe8b555501c.zip
Adding upstream version 1:10.11.6.upstream/1%10.11.6
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mysql-test/suite/storage_engine/1st.test')
-rw-r--r--mysql-test/suite/storage_engine/1st.test81
1 files changed, 81 insertions, 0 deletions
diff --git a/mysql-test/suite/storage_engine/1st.test b/mysql-test/suite/storage_engine/1st.test
new file mode 100644
index 00000000..c9ebd8b7
--- /dev/null
+++ b/mysql-test/suite/storage_engine/1st.test
@@ -0,0 +1,81 @@
+#
+# This test checks some very basic capabilities
+# which will be used in almost every other test,
+# and will not be checked through support* variables.
+# If this test does not pass, there is no point
+# at executing other ones.
+#
+# Minimal requirements:
+# - supported column types: INT, CHAR (default CHAR(8), INT(11));
+# - column attributes as declared in define_engine.inc ($default_col_opts)
+# (by default empty, which means no additional attributes apart from the type);
+# - table attributes as declared in define_engine.inc ($default_tbl_opts)
+# (by default empty, which means no additional attributes apart from ENGINE);
+# - CREATE TABLE .. (column1 <column options>, column2 <column options>) ENGINE=<storage_engine>;
+# - INSERT INTO TABLE .. VALUES (val1,val2);
+# - DROP TABLE ..
+# - SELECT a,b FROM ..
+# - SHOW CREATE TABLE ..
+# - SHOW COLUMNS IN ...
+#
+
+--source have_engine.inc
+
+--disable_warnings
+DROP TABLE IF EXISTS t1;
+--enable_warnings
+
+--source create_table.inc
+if ($mysql_errname)
+{
+ --let $functionality = CREATE TABLE
+ --source unexpected_result.inc
+}
+if (!$mysql_errname)
+{
+ --disable_result_log
+ SHOW CREATE TABLE t1;
+ if ($mysql_errname)
+ {
+ --let $functionality = SHOW CREATE TABLE
+ --source unexpected_result.inc
+ }
+ SHOW COLUMNS IN t1;
+ if ($mysql_errname)
+ {
+ --let $functionality = SHOW COLUMNS
+ --source unexpected_result.inc
+ }
+ --enable_result_log
+
+ INSERT INTO t1 VALUES (1,'a');
+ if ($mysql_errname)
+ {
+ --let $functionality = INSERT INTO .. VALUES
+ --source unexpected_result.inc
+ }
+
+ INSERT INTO t1 (a,b) VALUES (2,'b');
+ if ($mysql_errname)
+ {
+ --let $functionality = INSERT INTO .. (column_list) VALUES
+ --source unexpected_result.inc
+ }
+
+ SELECT a,b FROM t1;
+ if ($mysql_errname)
+ {
+ --let $functionality = SELECT a,b FROM ..
+ --source unexpected_result.inc
+ }
+
+ DROP TABLE t1;
+ if ($mysql_errname)
+ {
+ --let $functionality = DROP TABLE
+ --source unexpected_result.inc
+ }
+
+}
+--source cleanup_engine.inc
+