source: drbl_ui/backup/test_busybox/busybox-1.7.2/testsuite/unexpand/unexpand-works-like-GNU @ 144

Last change on this file since 144 was 20, checked in by chris, 17 years ago
File size: 1.2 KB
Line 
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
Note: See TracBrowser for help on using the repository browser.