diff --git a/mysql-test/xml/README b/mysql-test/xml/README deleted file mode 100644 index ee1af30db33..00000000000 --- a/mysql-test/xml/README +++ /dev/null @@ -1,74 +0,0 @@ -This directory contains all of the test cases for the MySQL Test Suite -marked up in XML. - -To convert these test cases from XML into 'mysqltest' format, one needs -an XSL translator installed on their system. At MySQL, we use Sablotron -(http://www.gingerall.com/). Once installed, conversion happens with a -command like this: - - sabcmd xsl/mysqltest.xsl < tests/sel000001.xml > sel000001.test - -The file 'sel000001.test' contains the plain text conversion that is -to be fed into the 'mysqltest' program. - -Below is an example of a test case marked up in XML; illustrating all -of the XML mark-up currently supported in our 'mysqltest.xsl' stylesheet. - ----------------------------------------------------- - - - - - - - - - - This test will monkey around trying to kill mysqld. - - - - - - SELECT y FROM foo WHERE bar='2' - - INSERT INTO foo VALUES (y='2') WHERE bar='1' - - - ----------------------------------------------------- - - -The converted (mysqltest format) output of this source XML file looks -like: - - ----------------------------------------------------- -# sel000001 -# -# Versions -# -------- -# 3.22 -# 3.23 -# -# Description -# ----------- -# This test will monkey around trying to kill mysqld. -# - - -connect(Test_Connect1, MyHostName, Matt, MattPass, MyDB, 3306, MyDB.sock) - -connection Test_Connect1 -INSERT INTO foo VALUES (y='2') WHERE bar='1'; -@sel000001.result SELECT y FROM foo WHERE bar='2'; ----------------------------------------------------- - - diff --git a/mysql-test/xml/tests/sel000001.xml b/mysql-test/xml/tests/sel000001.xml deleted file mode 100644 index 7ce4dae8ee1..00000000000 --- a/mysql-test/xml/tests/sel000001.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - This test is just a simple select. - Testing WHERE clause. - - DROP TABLE IF EXISTS t - CREATE TABLE t (s CHAR(20) PRIMARY KEY, id INT) - INSERT INTO t VALUES ('cat', 1), ('mouse', 3), ('dog', 2), ('snake', 77) - - - SELECT s, id FROM t WHERE s = 'mouse' - - - diff --git a/mysql-test/xml/tests/sel000002.xml b/mysql-test/xml/tests/sel000002.xml deleted file mode 100644 index 902233cbbf0..00000000000 --- a/mysql-test/xml/tests/sel000002.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - This test is just a simple select. - - DROP TABLE IF EXISTS t - CREATE TABLE t (n INT) - INSERT INTO t VALUES (1), (2), (3) - - - SELECT * FROM t - - - diff --git a/mysql-test/xml/tests/sel000003.xml b/mysql-test/xml/tests/sel000003.xml deleted file mode 100644 index c9334c972d8..00000000000 --- a/mysql-test/xml/tests/sel000003.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - This test is just a simple select. - Testing count() function and GROUP BY clause. - - DROP TABLE IF EXISTS t - CREATE TABLE t (name CHAR(20) NOT NULL PRIMARY KEY, score SMALLINT NOT NULL, KEY(score)) - INSERT INTO t VALUES ('Sasha', 20), ('Matt', 20), ('Monty', 10), ('David', 10), ('Tim', 10), ('Jeremy', 10) - - - SELECT COUNT(*) as n, score FROM t GROUP BY score - - - diff --git a/mysql-test/xml/tests/sel000004.xml b/mysql-test/xml/tests/sel000004.xml deleted file mode 100644 index 9c28c632c32..00000000000 --- a/mysql-test/xml/tests/sel000004.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Simple arithmetic. - Testing MOD(), SIGN(), and arithmetic grouping. - - - SELECT 1+1,1-1,1+1*2,8/5,8%5,MOD(8,5),MOD(8,5)|0,-(1+1)*-2,SIGN(-5) - - - diff --git a/mysql-test/xml/tests/sel000005.xml b/mysql-test/xml/tests/sel000005.xml deleted file mode 100644 index 0bcddb2fbb6..00000000000 --- a/mysql-test/xml/tests/sel000005.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Numeric functions. - Testing FLOOR(), CEILING(), ROUND(). - - - SELECT FLOOR(5.5),FLOOR(-5.5),CEILING(5.5),CEILING(-5.5),ROUND(5.5),ROUND(-5.5) - - - diff --git a/mysql-test/xml/tests/sel000006.xml b/mysql-test/xml/tests/sel000006.xml deleted file mode 100644 index 3059f8bb7df..00000000000 --- a/mysql-test/xml/tests/sel000006.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Numeric functions. - Testing ROUND(); hundreths precision. - - - SELECT ROUND(5.64,1),ROUND(5.64,2),ROUND(5.64,-1),ROUND(5.64,-2) - - - diff --git a/mysql-test/xml/tests/sel000007.xml b/mysql-test/xml/tests/sel000007.xml deleted file mode 100644 index 8f8bb7162c3..00000000000 --- a/mysql-test/xml/tests/sel000007.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Numeric functions. - Testing TRUNCATE(). - - - SELECT TRUNCATE(52.64,1),TRUNCATE(52.64,2),TRUNCATE(52.64,-1),TRUNCATE(52.64,-2) - - - diff --git a/mysql-test/xml/tests/sel000008.xml b/mysql-test/xml/tests/sel000008.xml deleted file mode 100644 index 70a54a15d5b..00000000000 --- a/mysql-test/xml/tests/sel000008.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Numeric functions. - Testing ABS(), LOG(), LOG10(), EXP(), SQRT(), POW(), RAND(), POWER(). - - - SELECT ABS(-10),LOG(EXP(10)),EXP(LOG(SQRT(10))*2),POW(10,LOG10(10)),RAND(999999),RAND(),POWER(2,4) - - - diff --git a/mysql-test/xml/tests/sel000009.xml b/mysql-test/xml/tests/sel000009.xml deleted file mode 100644 index 0c79f032112..00000000000 --- a/mysql-test/xml/tests/sel000009.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Numeric functions. - Testing PI(), SIN(), COS(), TAN(), COT(), ASIN(), ACOS(), ATAN(). - - - SELECT PI(),SIN(PI()/2),COS(PI()/2),TAN(PI()),COT(1),ASIN(1),ACOS(0),ATAN(1) - - - diff --git a/mysql-test/xml/tests/sel000010.xml b/mysql-test/xml/tests/sel000010.xml deleted file mode 100644 index 6954fef0750..00000000000 --- a/mysql-test/xml/tests/sel000010.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Numeric bitwise comparisons. - Testing |, &, BIT_COUNT(). - - - SELECT 1 | (1+1),5 & 3,BIT_COUNT(7) - - - diff --git a/mysql-test/xml/tests/sel000011.xml b/mysql-test/xml/tests/sel000011.xml deleted file mode 100644 index 5c981b2f85a..00000000000 --- a/mysql-test/xml/tests/sel000011.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Numeric bitmoving comparisons. - Testing <<, >>. - - - SELECT 1 << 32,1 << 63, 1 << 64, 4 >> 2, 4 >> 63, 1<< 63 >> 60 - - - diff --git a/mysql-test/xml/tests/sel000012.xml b/mysql-test/xml/tests/sel000012.xml deleted file mode 100644 index 7abcc498164..00000000000 --- a/mysql-test/xml/tests/sel000012.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - Numeric floating point. - - - SELECT 10,10.0,10.,.1e+2,100.0e-1 - - - diff --git a/mysql-test/xml/tests/sel000013.xml b/mysql-test/xml/tests/sel000013.xml deleted file mode 100644 index fbeca6663fc..00000000000 --- a/mysql-test/xml/tests/sel000013.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - Numeric floating point. - - - SELECT 6e-05, -6e-05, --6e-05, -6e-05+1.000000 - - - diff --git a/mysql-test/xml/tests/sel000014.xml b/mysql-test/xml/tests/sel000014.xml deleted file mode 100644 index 96a51e671fc..00000000000 --- a/mysql-test/xml/tests/sel000014.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Numerics. - Testing pos/neg and zero padding. - - - SELECT 0,256,00000000000000065536,2147483647,-2147483648,2147483648,+4294967296 - - - diff --git a/mysql-test/xml/tests/sel000015.xml b/mysql-test/xml/tests/sel000015.xml deleted file mode 100644 index a339330e6b1..00000000000 --- a/mysql-test/xml/tests/sel000015.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Numerics. - Testing big numbers. - - - SELECT 922337203685477580,92233720368547758000 - - - diff --git a/mysql-test/xml/tests/sel000016.xml b/mysql-test/xml/tests/sel000016.xml deleted file mode 100644 index ae971e6576a..00000000000 --- a/mysql-test/xml/tests/sel000016.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Numerics. - Testing big negative numbers. - - - SELECT -922337203685477580,-92233720368547758000 - - - diff --git a/mysql-test/xml/tests/sel000017.xml b/mysql-test/xml/tests/sel000017.xml deleted file mode 100644 index 9d06d640ac3..00000000000 --- a/mysql-test/xml/tests/sel000017.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Numerics. - Testing big pos/neg numbers. - - - SELECT 9223372036854775807,-009223372036854775808 - - - diff --git a/mysql-test/xml/tests/sel000018.xml b/mysql-test/xml/tests/sel000018.xml deleted file mode 100644 index 909728599fa..00000000000 --- a/mysql-test/xml/tests/sel000018.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Numerics. - Testing big pos/neg numbers. - - - SELECT +9999999999999999999,-9999999999999999999 - - - diff --git a/mysql-test/xml/tests/sel000019.xml b/mysql-test/xml/tests/sel000019.xml deleted file mode 100644 index e0286ae2db7..00000000000 --- a/mysql-test/xml/tests/sel000019.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Numerics. - Testing DEGREES(), RADIANS(). - - - SELECT DEGREES(PI()),RADIANS(360) - - - diff --git a/mysql-test/xml/tests/sel000020.xml b/mysql-test/xml/tests/sel000020.xml deleted file mode 100644 index 41ad5981cb9..00000000000 --- a/mysql-test/xml/tests/sel000020.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Strings. - Testing string comparisons; STRCMP(), =, >, >=, <=, !=. - - - SELECT 0=0,1>0,1>=1,1<0,1<=0,1!=0,STRCMP("abc","abcd"),STRCMP("b","a"),STRCMP("a","a") - - - diff --git a/mysql-test/xml/tests/sel000021.xml b/mysql-test/xml/tests/sel000021.xml deleted file mode 100644 index ba2e8149abd..00000000000 --- a/mysql-test/xml/tests/sel000021.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Strings. - Testing string comparisons; =, >, >=, <=, <>. - - - SELECT "a"<"b","a"<="b","b">="a","b">"a","a"="A","a"<>"b" - - - diff --git a/mysql-test/xml/tests/sel000022.xml b/mysql-test/xml/tests/sel000022.xml deleted file mode 100644 index 3dca0eb9b7f..00000000000 --- a/mysql-test/xml/tests/sel000022.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Strings. - Testing string comparisons; =, >, <=. - - - SELECT "a "="A", "A "="a", "a " <= "A b" - - - diff --git a/mysql-test/xml/tests/sel000023.xml b/mysql-test/xml/tests/sel000023.xml deleted file mode 100644 index 7cceb4aabca..00000000000 --- a/mysql-test/xml/tests/sel000023.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Strings. - Testing string comparisons; LIKE, NOT LIKE, '%'. - - - SELECT "abc" LIKE "a%", "abc" NOT LIKE "%d%", "a%" LIKE "a\%","abc%" LIKE "a%\%","abcd" LIKE "a%b_%d", "a" LIKE "%%a","abcde" LIKE "a%_e","abc" LIKE "abc%" - - - diff --git a/mysql-test/xml/tests/sel000024.xml b/mysql-test/xml/tests/sel000024.xml deleted file mode 100644 index 5bf9c0be7dc..00000000000 --- a/mysql-test/xml/tests/sel000024.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Strings. - Testing string comparisons; LIKE, '%'. - - - SELECT "a" LIKE "%%b","a" LIKE "%%ab","ab" LIKE "a\%", "ab" LIKE "_", "ab" LIKE "ab_", "abc" LIKE "%_d", "abc" LIKE "abc%d" - - - diff --git a/mysql-test/xml/tests/sel000025.xml b/mysql-test/xml/tests/sel000025.xml deleted file mode 100644 index 4144b65775f..00000000000 --- a/mysql-test/xml/tests/sel000025.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Strings. - Testing string comparisons; LIKE, ESCAPE, '%'. - - - SELECT '?' LIKE '|%', '?' LIKE '|%' ESCAPE '|', '%' LIKE '|%', '%' LIKE '|%' ESCAPE '|', '%' LIKE '%' - - - diff --git a/mysql-test/xml/tests/sel000026.xml b/mysql-test/xml/tests/sel000026.xml deleted file mode 100644 index afaa34009fa..00000000000 --- a/mysql-test/xml/tests/sel000026.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Strings. - Testing string comparisons; LIKE, '%'. - - - SELECT 'abc' LIKE '%c','abcabc' LIKE '%c', "ab" LIKE "", "ab" LIKE "a", "ab" LIKE "ab" - - - diff --git a/mysql-test/xml/tests/sel000027.xml b/mysql-test/xml/tests/sel000027.xml deleted file mode 100644 index 641d5d3a619..00000000000 --- a/mysql-test/xml/tests/sel000027.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Strings. - Testing string comparisons; REGEXP. - - - SELECT "Det här är svenska" REGEXP "h[[:alpha:]]+r", "aba" REGEXP "^(a|b)*$" - - - diff --git a/mysql-test/xml/tests/sel000028.xml b/mysql-test/xml/tests/sel000028.xml deleted file mode 100644 index c8db245c25d..00000000000 --- a/mysql-test/xml/tests/sel000028.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Strings. - Testing string comparisons; REGEXP, CONCAT(). - - - SELECT "aba" REGEXP CONCAT("^","a") - - - diff --git a/mysql-test/xml/tests/sel000029.xml b/mysql-test/xml/tests/sel000029.xml deleted file mode 100644 index 84d12a44dc5..00000000000 --- a/mysql-test/xml/tests/sel000029.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Strings. - Testing string comparisons; NOT, AND, OR, !, &&, ||. - - - SELECT !0,NOT 0=1,!(0=0),1 AND 1,1 && 0,0 OR 1,1 || NULL, 1=1 OR 1=1 AND 1=0 - - - diff --git a/mysql-test/xml/tests/sel000030.xml b/mysql-test/xml/tests/sel000030.xml deleted file mode 100644 index 8a8a4d5e0d2..00000000000 --- a/mysql-test/xml/tests/sel000030.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Control flow. - Testing control flow; IF() - - - SELECT IF(0,"ERROR","this"),IF(1,"is","ERROR"),IF(NULL,"ERROR","a"),IF(1,2,3)|0,IF(1,2.0,3.0)+0 - - - diff --git a/mysql-test/xml/xsl/README b/mysql-test/xml/xsl/README deleted file mode 100644 index fe11b57cf11..00000000000 --- a/mysql-test/xml/xsl/README +++ /dev/null @@ -1,4 +0,0 @@ -XML Stylesheets for converting test cases in XML to other forms. - - - mysqltest.xsl -> mysqltest format (text) - diff --git a/mysql-test/xml/xsl/mysqltest.xsl b/mysql-test/xml/xsl/mysqltest.xsl deleted file mode 100644 index 8a1e738e611..00000000000 --- a/mysql-test/xml/xsl/mysqltest.xsl +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - -# -# -# Versions -# -------- -# -# Description -# ----------- -# - - - - - - - - - - - - - - - -# - - - -# - - - -connect(, , , , , , ) - - - - -connection - - - - - - -@ - - - -; - -