Browse Source

Use 'id' term for jats:// test and suite ids

Alois Mahdal 6 years ago
parent
commit
6eeca7c437
3 changed files with 8 additions and 8 deletions
  1. 1
    1
      src/libexec/jattool-runtest
  2. 3
    3
      src/libexec/jattool-sfind
  3. 4
    4
      src/libexec/jattool-tfind

+ 1
- 1
src/libexec/jattool-runtest View File

@@ -75,7 +75,7 @@ main() {
75 75
             ;;
76 76
         */*)
77 77
             TestHome=$1
78
-            TestId=$(jattool tfind -f jats "$TestHome") || {
78
+            TestId=$(jattool tfind -f id "$TestHome") || {
79 79
                 warn "could not find test id, using pathname: $TestHome"
80 80
                 TestId="jats://_jats_no_suite_/$TestHome"
81 81
             }

+ 3
- 3
src/libexec/jattool-sfind View File

@@ -10,7 +10,7 @@ usage() {
10 10
         -- \
11 11
             "Discover test in suite located at PATH"                         \
12 12
         -o                                                                   \
13
-            "-f FMT     Print test name in format FMT. 'jats' or 'path'."    \
13
+            "-f FMT     Print test name in format FMT. 'id' or 'path'."    \
14 14
         --                                                                   \
15 15
             "Test body should consist of asserts and/or phases documented"   \
16 16
             "in jat.sh Shellfu module; use \`sfdoc jat\` to access its"    \
@@ -71,7 +71,7 @@ discover() {
71 71
             SuiteNs=$(sprop ns)
72 72
             SuiteSutPname=$(sprop sut_pname)
73 73
             case $Fmt in
74
-                jats)
74
+                id)
75 75
                     echo -n "jats://$SuiteDomain/$SuiteNs"
76 76
                     test -n "$SuiteSutPname" && echo -n "/$SuiteSutPname"
77 77
                     echo //
@@ -94,7 +94,7 @@ main() {
94 94
     esac done
95 95
     FindDirs=("$@")
96 96
     case $Fmt in
97
-        jats|path) : ;;
97
+        id|path|version) : ;;
98 98
         *) usage -w "unknown FMT: $Fmt" ;;
99 99
     esac
100 100
     debug -v FindDirs Fmt

+ 4
- 4
src/libexec/jattool-tfind View File

@@ -10,7 +10,7 @@ usage() {
10 10
         -- \
11 11
             "Discover all JATS tests under directory PATH."                  \
12 12
         -o                                                                   \
13
-            "-f FMT     Print test name in format FMT. 'jats' or 'path'."
13
+            "-f FMT     Print test name in format FMT. 'id' or 'path'."
14 14
 }
15 15
 
16 16
 discover() {
@@ -27,11 +27,11 @@ discover() {
27 27
             s_dir=$(straverse "$t_cand") || continue
28 28
             t_apath=$(dirname "$(readlink -f "$t_cand")")
29 29
             t_rpath=${t_apath#$s_dir/}
30
-            s_id=$(jattool sfind -f jats "$s_dir")
30
+            s_id=$(jattool sfind -f id "$s_dir")
31 31
             debug -v s_dir s_id t_apath t_rpath
32 32
             case $Fmt in
33 33
                 path) echo "$s_dir/$t_rpath" ;;
34
-                jats) echo "$s_id$t_rpath"   ;;
34
+                id) echo "$s_id$t_rpath"   ;;
35 35
             esac
36 36
         done
37 37
 }
@@ -60,7 +60,7 @@ main() {
60 60
     esac done
61 61
     FindDirs=("$@")
62 62
     case $Fmt in
63
-        jats|path) : ;;
63
+        id|path) : ;;
64 64
         *) usage -w "unknown FMT: $Fmt" ;;
65 65
     esac
66 66
     debug -v FindDirs Fmt