summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
eafc0ab)
TERM at the beginning of each test so that valgrind can be
supported.
+# Set TERM to get consistent output.
+TERM=dumb; export TERM
+
cd "$MH_TEST_DIR"
testname="baz's boz"
testname_quoted="baz\'s\ boz"
cd "$MH_TEST_DIR"
testname="baz's boz"
testname_quoted="baz\'s\ boz"
-whatnowtest=`echo cd | TERM=dumb whatnow -prompt ''`
+whatnowtest=`echo cd | whatnow -prompt ''`
set -e
case ${whatnowtest} in
set -e
case ${whatnowtest} in
# whatnow's exit status is always 1 so that is not a failure
set +e
echo "attach $testname_quoted" | \
# whatnow's exit status is always 1 so that is not a failure
set +e
echo "attach $testname_quoted" | \
- TERM=dumb whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual
-echo "alist" | TERM=dumb whatnow -attach foo -noedit -prompt '' \
- 2>> $actualerr >> $actual
+ run_prog whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual
+echo "alist" | \
+ run_prog whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual
echo "detach $testname_quoted" | \
echo "detach $testname_quoted" | \
- TERM=dumb whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual
-echo "alist" | TERM=dumb whatnow -attach foo -noedit -prompt '' \
- 2>> $actualerr >> $actual
+ run_prog whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual
+echo "alist" | \
+ run_prog whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual
set -e
check "$expectederr" "$actualerr"
set -e
check "$expectederr" "$actualerr"
+# Set TERM to get consistent output.
+TERM=dumb; export TERM
+
SPDIR="$MH_TEST_DIR/foo's bar"
rm -rf "$SPDIR"
mkdir "$SPDIR"
SPDIR="$MH_TEST_DIR/foo's bar"
rm -rf "$SPDIR"
mkdir "$SPDIR"
-whatnowtest=`echo cd | TERM=dumb whatnow -prompt ''`
+whatnowtest=`echo cd | whatnow -prompt ''`
set -e
case ${whatnowtest} in
set -e
case ${whatnowtest} in
# ||true to ignore whatnow's exit status
# watch the quoting -- shell and printf and then the shell run inside whatnow
printf 'cd %s/foo\\'"'"'s\\ bar\npwd\n' "$MH_TEST_DIR" | \
# ||true to ignore whatnow's exit status
# watch the quoting -- shell and printf and then the shell run inside whatnow
printf 'cd %s/foo\\'"'"'s\\ bar\npwd\n' "$MH_TEST_DIR" | \
- TERM=dumb whatnow -noedit -prompt '' 2> "$actualerr" > "$actual" || true
+ run_prog whatnow -noedit -prompt '' 2> "$actualerr" > "$actual" || true
check "$expectederr" "$actualerr"
check "$expected" "$actual"
check "$expectederr" "$actualerr"
check "$expected" "$actual"
+# Set TERM to get consistent output.
+TERM=dumb; export TERM
+
SPDIR="$MH_TEST_DIR/foo's bar"
rm -rf "$SPDIR"
mkdir "$SPDIR"
SPDIR="$MH_TEST_DIR/foo's bar"
rm -rf "$SPDIR"
mkdir "$SPDIR"
-whatnowtest=`echo cd | TERM=dumb whatnow -prompt ''`
+whatnowtest=`echo cd | whatnow -prompt ''`
set -e
case ${whatnowtest} in
set -e
case ${whatnowtest} in
EOF
# NB use of sort as the order of output of ls is not guaranteed
EOF
# NB use of sort as the order of output of ls is not guaranteed
-echo 'ls' | TERM=dumb whatnow -noedit -prompt '' 2> "$actualerr" | \
+echo 'ls' | run_prog whatnow -noedit -prompt '' 2> "$actualerr" | \
sort > "$actual"
check "$expectederr" "$actualerr" 'keep first'
sort > "$actual"
check "$expectederr" "$actualerr" 'keep first'
# /bin/sh sets SHELL, which bash does.
unset SHELL
# /bin/sh sets SHELL, which bash does.
unset SHELL
-echo 'ls' | TERM=dumb whatnow -noedit -prompt '' 2> "$actualerr" | \
+echo 'ls' | run_prog whatnow -noedit -prompt '' 2> "$actualerr" | \
sort > "$actual"
check "$expectederr" "$actualerr"
sort > "$actual"
check "$expectederr" "$actualerr"