Adjust to paths of cat and false

parent de3a636c
......@@ -2,17 +2,20 @@
set -eux
cat=$(whereis -b cat | awk '{ print $2 }')
false=$(whereis -b false | awk '{ print $2 }')
t=$(date)
for i in 1 4 10 29 30 31 40 ; do
for o in 1 4 10 29 30 31 40 ; do
r=$(echo "${t}" | ./elbestream -i $i -o $o -- /usr/bin/cat \
---- /usr/bin/cat %f)
r=$(echo "${t}" | ./elbestream -i $i -o $o -- $cat \
---- $cat %f)
if [[ "${r}" != "${t}" ]] ; then
echo >&2 FAIL
exit 9
fi
r=$(echo "${t}" | ./elbestream -i $i -o $o -m 1 -- /bin/false \
---- /usr/bin/cat %f)
r=$(echo "${t}" | ./elbestream -i $i -o $o -m 1 -- $false \
---- $cat %f)
if [[ "${r}" != "${t}" ]] ; then
echo >&2 FAIL
exit 9
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment