diff options
Diffstat (limited to 'mysql-client/tests')
-rw-r--r-- | mysql-client/tests/.gitignore | 4 | ||||
-rw-r--r-- | mysql-client/tests/build/.gitignore | 3 | ||||
-rw-r--r-- | mysql-client/tests/build/bootstrap.build | 8 | ||||
-rw-r--r-- | mysql-client/tests/build/root.build | 15 | ||||
-rw-r--r-- | mysql-client/tests/buildfile | 4 | ||||
-rw-r--r-- | mysql-client/tests/help.testscript | 12 | ||||
-rw-r--r-- | mysql-client/tests/version.testscript | 8 |
7 files changed, 54 insertions, 0 deletions
diff --git a/mysql-client/tests/.gitignore b/mysql-client/tests/.gitignore new file mode 100644 index 0000000..ce6eed8 --- /dev/null +++ b/mysql-client/tests/.gitignore @@ -0,0 +1,4 @@ +# Testscript output directories (can be symlinks). +# +test +test-* diff --git a/mysql-client/tests/build/.gitignore b/mysql-client/tests/build/.gitignore new file mode 100644 index 0000000..4a730a3 --- /dev/null +++ b/mysql-client/tests/build/.gitignore @@ -0,0 +1,3 @@ +config.build +root/ +bootstrap/ diff --git a/mysql-client/tests/build/bootstrap.build b/mysql-client/tests/build/bootstrap.build new file mode 100644 index 0000000..c2ad98f --- /dev/null +++ b/mysql-client/tests/build/bootstrap.build @@ -0,0 +1,8 @@ +# file : tests/build/bootstrap.build +# license : GPLv2 with Universal FOSS Exception; see accompanying LICENSE file + +project = # Unnamed tests subproject. + +using config +using test +using dist diff --git a/mysql-client/tests/build/root.build b/mysql-client/tests/build/root.build new file mode 100644 index 0000000..4a6bd2c --- /dev/null +++ b/mysql-client/tests/build/root.build @@ -0,0 +1,15 @@ +# file : tests/build/root.build +# license : GPLv2 with Universal FOSS Exception; see accompanying LICENSE file + +# We need to configure C module to obtain the target information (see below). +# +using c.config + +# Setup the mysql program that we are testing. +# +import mysql = mysql-client%exe{mysql} +testscript{*}: test = $mysql + +# Specify the test target for cross-testing. +# +test.target = $c.target diff --git a/mysql-client/tests/buildfile b/mysql-client/tests/buildfile new file mode 100644 index 0000000..2d136c5 --- /dev/null +++ b/mysql-client/tests/buildfile @@ -0,0 +1,4 @@ +# file : tests/buildfile +# license : GPLv2 with Universal FOSS Exception; see accompanying LICENSE file + +./: testscript{*} $mysql diff --git a/mysql-client/tests/help.testscript b/mysql-client/tests/help.testscript new file mode 100644 index 0000000..67a9331 --- /dev/null +++ b/mysql-client/tests/help.testscript @@ -0,0 +1,12 @@ +# file : tests/help.testscript +# license : GPLv2 with Universal FOSS Exception; see accompanying LICENSE file + +: basics +: +: Test that stdout contains at least one non-empty line. +: +$* --help >>~%EOO% + %.* + %.+% + %.* + EOO diff --git a/mysql-client/tests/version.testscript b/mysql-client/tests/version.testscript new file mode 100644 index 0000000..ce45628 --- /dev/null +++ b/mysql-client/tests/version.testscript @@ -0,0 +1,8 @@ +# file : tests/version.testscript +# license : GPLv2 with Universal FOSS Exception; see accompanying LICENSE file + +: basics +: +$* --version >>~%EOO% + %.*mysql.+% + EOO |