projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
aft: Avoid invalid read.
[paraslash.git]
/
t
/
t0005-man.sh
diff --git
a/t/t0005-man.sh
b/t/t0005-man.sh
index 7a627aad34784eab0a9fd15de5ff2883b48235fd..ee1949c05a04d4fd4b81f2b9c847a403a753e2f5 100755
(executable)
--- a/
t/t0005-man.sh
+++ b/
t/t0005-man.sh
@@
-13,8
+13,6
@@
filter/receiver/writer options as appropriate '
. ${0%/*}/test-lib.sh
. ${0%/*}/test-lib.sh
-rfw_regex='Options for .\{100,\}Options for ' # recv/filter/writer
-
grep_man()
{
local regex="$1" exe="$2"
grep_man()
{
local regex="$1" exe="$2"
@@
-24,16
+22,19
@@
grep_man()
# check that options of all reveivers/filters/writers are contained
# in the man pages
# check that options of all reveivers/filters/writers are contained
# in the man pages
-regex="$rfw_regex"
-test_expect_success 'para_recv: receiver options' "grep_man '$regex' recv"
-test_expect_success 'para_filter: filter options' "grep_man '$regex' filter"
-test_expect_success 'para_write: writer options' "grep_man '$regex' write"
+test_expect_success 'para_recv: receiver options' "grep_man 'RECEIVERS' recv"
+test_expect_success 'para_filter: filter options' "grep_man 'FILTERS' filter"
+test_expect_success 'para_write: writer options' "grep_man 'WRITERS' write"
test_require_objects "audiod"
if [[ -n "$result" ]]; then
test_skip 'para_audiod' "missing object(s): $result"
else
test_require_objects "audiod"
if [[ -n "$result" ]]; then
test_skip 'para_audiod' "missing object(s): $result"
else
- test_expect_success 'para_audiod: recv/filter/writer options' \
- "grep_man '$regex' audiod"
+ test_expect_success 'para_audiod: receivers' \
+ "grep_man 'RECEIVERS' audiod"
+ test_expect_success 'para_audiod: filters' \
+ "grep_man 'FILTERS' audiod"
+ test_expect_success 'para_audiod: writers' \
+ "grep_man 'WRITERS' audiod"
fi
# check various command lists
fi
# check various command lists
@@
-52,7
+53,7
@@
missing_objects="$result"
if [[ -n "$missing_objects" ]]; then
test_skip "para_server" "missing object(s): $missing_objects"
else
if [[ -n "$missing_objects" ]]; then
test_skip "para_server" "missing object(s): $missing_objects"
else
- regex='LIST OF SERVER COMMANDS.\{100,\}
LIST OF AFS COMMANDS
'
+ regex='LIST OF SERVER COMMANDS.\{100,\}'
test_expect_success 'para_server: server/afs commands' \
"grep_man '$regex' server"
fi
test_expect_success 'para_server: server/afs commands' \
"grep_man '$regex' server"
fi
@@
-60,5
+61,4
@@
fi
# para_play is always built
regex='LIST OF COMMANDS.\{100,\}'
test_expect_success 'para_play: play commands' "grep_man '$regex' play"
# para_play is always built
regex='LIST OF COMMANDS.\{100,\}'
test_expect_success 'para_play: play commands' "grep_man '$regex' play"
-regex="$rfw_regex"
test_done
test_done