aboutsummaryrefslogtreecommitdiff
path: root/tools/regression
diff options
context:
space:
mode:
authorJuli Mallett <jmallett@FreeBSD.org>2002-04-27 03:11:33 +0000
committerJuli Mallett <jmallett@FreeBSD.org>2002-04-27 03:11:33 +0000
commit4b7f276dfd5c5c066b97e83f6dc60e9b982cbfbb (patch)
tree7efbdc55633154762f08edbe7df48f2d8369c163 /tools/regression
parent9ae9d0ff86690f32fb355a05933665dcfa1663d2 (diff)
downloadsrc-4b7f276dfd5c5c066b97e83f6dc60e9b982cbfbb.tar.gz
src-4b7f276dfd5c5c066b97e83f6dc60e9b982cbfbb.zip
Redirect stdin from the input file, rather than passing the input file to
uuencode(1), and set a umask, so that the mode in the header is predictable. If it varies, then the test is right to fail. Remove the note about this test falsely failing, with that in mind.
Notes
Notes: svn path=/head/; revision=95542
Diffstat (limited to 'tools/regression')
-rw-r--r--tools/regression/usr.bin/uuencode/regress.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/regression/usr.bin/uuencode/regress.sh b/tools/regression/usr.bin/uuencode/regress.sh
index 97a5986c6373..b039768d4fab 100644
--- a/tools/regression/usr.bin/uuencode/regress.sh
+++ b/tools/regression/usr.bin/uuencode/regress.sh
@@ -9,19 +9,17 @@ cd $TESTDIR
STATUS=0
-# Note that currently the uuencode(1) program provides no facility to
-# include the file mode explicitly based on an argument passed to it,
-# so the regress.in file must be mode 644, or the test will say that,
-# incorrectly, regression has occurred based on the header.
+# To make sure we end up with matching headers.
+umask 022
for test in traditional base64; do
echo "Running test $test"
case "$test" in
traditional)
- uuencode regress.in regress.in | diff -u regress.$test.out -
+ uuencode regress.in < regress.in | diff -u regress.$test.out -
;;
base64)
- uuencode -m regress.in regress.in | diff -u regress.$test.out -
+ uuencode -m regress.in < regress.in | diff -u regress.$test.out -
;;
esac
if [ $? -eq 0 ]; then