Sfoglia il codice sorgente

Add test suite stub

Alois Mahdal 9 anni fa
parent
commit
707d289e37

+ 4
- 0
tests/TF_HEADER Vedi File

@@ -0,0 +1,4 @@
1
+#!/bin/sh
2
+
3
+echo -n "version: ";
4
+saturnin --version-semver

+ 21
- 0
tests/cli/TF_RUN Vedi File

@@ -0,0 +1,21 @@
1
+#!/bin/bash
2
+
3
+. $TF_DIR/include/subtest.sh
4
+. $TF_DIR/include/tools.sh
5
+
6
+tf_enum_subtests() {
7
+    echo usage
8
+}
9
+
10
+tf_name2cmd() {
11
+    local name=$1
12
+    local cmd
13
+    local o_err="oracle/$name.stderr"
14
+    local o_es=0
15
+    case $name in
16
+        usage)       cmd="saturnin"; o_es=2 ;;
17
+    esac
18
+    echo "tf_testflt -n $name -E $o_err -S $o_es $cmd"
19
+}
20
+
21
+tf_do_subtests

+ 3
- 0
tests/cli/oracle/basic.stdout Vedi File

@@ -0,0 +1,3 @@
1
+Linda and Nina work together.
2
+The mask *.* matches all.
3
+The mask *.docx matches Word documents.

+ 3
- 0
tests/cli/oracle/extended.stdout Vedi File

@@ -0,0 +1,3 @@
1
+Alice uses Google.
2
+Bob wears goggles.
3
+Linda and Nina work together.

+ 1
- 0
tests/cli/oracle/fixed.stdout Vedi File

@@ -0,0 +1 @@
1
+The mask *.* matches all.

+ 3
- 0
tests/cli/oracle/usage.stderr Vedi File

@@ -0,0 +1,3 @@
1
+usage: saturnin [-d|-v] command [args...]
2
+usage: saturnin help
3
+usage: saturnin --version

+ 6
- 0
tests/cli/test/ALL.stdin Vedi File

@@ -0,0 +1,6 @@
1
+Alice uses Google.
2
+Bob wears goggles.
3
+Joe and John are friends.
4
+Linda and Nina work together.
5
+The mask *.* matches all.
6
+The mask *.docx matches Word documents.