aboutsummaryrefslogtreecommitdiff
path: root/testsuite/unexpand
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-13 14:10:24 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-13 14:10:24 +0000
commit3952f20c24ff3eed2ef6f4a9abd2d8a0aaa34a6e (patch)
tree038567c7d5d0a3c9bfe40eeb534ffc9559423b9d /testsuite/unexpand
parent08294dbf5bc6fb1ea0b185488675d91169e231ce (diff)
downloadbusybox-3952f20c24ff3eed2ef6f4a9abd2d8a0aaa34a6e.tar.gz
expand, unexpand: new applets from Tito <farmatito@tiscali.it>
Diffstat (limited to 'testsuite/unexpand')
-rw-r--r--testsuite/unexpand/unexpand-works-like-GNU52
1 files changed, 52 insertions, 0 deletions
diff --git a/testsuite/unexpand/unexpand-works-like-GNU b/testsuite/unexpand/unexpand-works-like-GNU
new file mode 100644
index 000000000..a5258363f
--- /dev/null
+++ b/testsuite/unexpand/unexpand-works-like-GNU
@@ -0,0 +1,52 @@
+rm -f foo bar
+echo " y" | unexpand ../../busybox > foo
+echo " y" | busybox unexpand ../../busybox > bar
+set +e
+test ! -f foo -a -f bar
+if [ $? = 0 ] ; then
+ set -e
+ diff -q foo bar
+fi
+rm -f foo bar
+echo " y" | unexpand ../../busybox > foo
+echo " y" | busybox unexpand ../../busybox > bar
+set +e
+test ! -f foo -a -f bar
+if [ $? = 0 ] ; then
+ set -e
+ diff -q foo bar
+fi
+echo " y y" | unexpand ../../busybox > foo
+echo " y y" | busybox unexpand ../../busybox > bar
+set +e
+test ! -f foo -a -f bar
+if [ $? = 0 ] ; then
+ set -e
+ diff -q foo bar
+fi
+rm -f foo bar
+echo " y y" | unexpand ../../busybox > foo
+echo " y y" | busybox unexpand ../../busybox > bar
+set +e
+test ! -f foo -a -f bar
+if [ $? = 0 ] ; then
+ set -e
+ diff -q foo bar
+fi
+echo " y y" | unexpand -a ../../busybox > foo
+echo " y y" | busybox unexpand -a ../../busybox > bar
+set +e
+test ! -f foo -a -f bar
+if [ $? = 0 ] ; then
+ set -e
+ diff -q foo bar
+fi
+rm -f foo bar
+echo " y y" | unexpand -a ../../busybox > foo
+echo " y y" | busybox unexpand -a ../../busybox > bar
+set +e
+test ! -f foo -a -f bar
+if [ $? = 0 ] ; then
+ set -e
+ diff -q foo bar
+fi