summaryrefslogtreecommitdiff
path: root/testsuite/unexpand/unexpand-works-like-GNU
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/unexpand-works-like-GNU
parent08294dbf5bc6fb1ea0b185488675d91169e231ce (diff)
downloadbusybox-w32-3952f20c24ff3eed2ef6f4a9abd2d8a0aaa34a6e.tar.gz
busybox-w32-3952f20c24ff3eed2ef6f4a9abd2d8a0aaa34a6e.tar.bz2
busybox-w32-3952f20c24ff3eed2ef6f4a9abd2d8a0aaa34a6e.zip
expand, unexpand: new applets from Tito <farmatito@tiscali.it>
Diffstat (limited to '')
-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 @@
1rm -f foo bar
2echo " y" | unexpand ../../busybox > foo
3echo " y" | busybox unexpand ../../busybox > bar
4set +e
5test ! -f foo -a -f bar
6if [ $? = 0 ] ; then
7 set -e
8 diff -q foo bar
9fi
10rm -f foo bar
11echo " y" | unexpand ../../busybox > foo
12echo " y" | busybox unexpand ../../busybox > bar
13set +e
14test ! -f foo -a -f bar
15if [ $? = 0 ] ; then
16 set -e
17 diff -q foo bar
18fi
19echo " y y" | unexpand ../../busybox > foo
20echo " y y" | busybox unexpand ../../busybox > bar
21set +e
22test ! -f foo -a -f bar
23if [ $? = 0 ] ; then
24 set -e
25 diff -q foo bar
26fi
27rm -f foo bar
28echo " y y" | unexpand ../../busybox > foo
29echo " y y" | busybox unexpand ../../busybox > bar
30set +e
31test ! -f foo -a -f bar
32if [ $? = 0 ] ; then
33 set -e
34 diff -q foo bar
35fi
36echo " y y" | unexpand -a ../../busybox > foo
37echo " y y" | busybox unexpand -a ../../busybox > bar
38set +e
39test ! -f foo -a -f bar
40if [ $? = 0 ] ; then
41 set -e
42 diff -q foo bar
43fi
44rm -f foo bar
45echo " y y" | unexpand -a ../../busybox > foo
46echo " y y" | busybox unexpand -a ../../busybox > bar
47set +e
48test ! -f foo -a -f bar
49if [ $? = 0 ] ; then
50 set -e
51 diff -q foo bar
52fi