|
|
@@ -10,7 +10,8 @@ usage() {
|
|
10
|
10
|
-- \
|
|
11
|
11
|
"Discover test in suite located at PATH" \
|
|
12
|
12
|
-o \
|
|
13
|
|
- "-f FMT Print test name in format FMT. 'id' or 'path'." \
|
|
|
13
|
+ "-f FMT Print test name in format FMT. 'id', 'version' or" \
|
|
|
14
|
+ " 'path'." \
|
|
14
|
15
|
-- \
|
|
15
|
16
|
"Test body should consist of asserts and/or phases documented" \
|
|
16
|
17
|
"in jat.sh Shellfu module; use \`sfdoc jat\` to access its" \
|
|
|
@@ -39,6 +40,7 @@ sprop() {
|
|
39
|
40
|
sut_url) dvalue="https://example.org/anonsut" ;;
|
|
40
|
41
|
url) dvalue="https://$(sprop domain)/$(sprop ns)" ;;
|
|
41
|
42
|
format) : ;;
|
|
|
43
|
+ version) dvalue="0.0.0+0._jats_no_version_" ;;
|
|
42
|
44
|
*) warn "unknown property: $pname"; return 2 ;;
|
|
43
|
45
|
esac
|
|
44
|
46
|
pvalue=$(cat "$fpath" 2>/dev/null)
|
|
|
@@ -79,6 +81,9 @@ discover() {
|
|
79
|
81
|
path)
|
|
80
|
82
|
echo "$SuiteDir"
|
|
81
|
83
|
;;
|
|
|
84
|
+ version)
|
|
|
85
|
+ sprop version
|
|
|
86
|
+ ;;
|
|
82
|
87
|
esac
|
|
83
|
88
|
done
|
|
84
|
89
|
}
|