gzip/tests/gating/gzexe/test.sh
Jakub Martisko ab0d495421 Add gating tests
Resolves: rhbz#1986357
2021-07-30 13:43:27 +02:00

18 lines
223 B
Bash
Executable File

#!/bin/bash
cat <<EOF >./in
#!/bin/bash
echo "Hello World!"
EOF
chmod +x ./in
./in >./expected
gzexe ./in 2>/dev/null
/bin/bash ./in >./out
diff ./out ./expected
result=$?
rm -f ./in ./in~ ./out ./expected
exit $result