Denys Vlasenko | e3d90a9 | 2010-05-10 05:53:16 +0200 | [diff] [blame] | 1 | # FEATURE: CONFIG_UNEXPAND |
| 2 | |
Denis Vlasenko | 3952f20 | 2007-08-13 14:10:24 +0000 | [diff] [blame] | 3 | rm -f foo bar |
Denys Vlasenko | e82cf33 | 2010-05-12 15:59:32 +0200 | [diff] [blame] | 4 | $ECHO -e "\ty" | expand -t 3 ../../busybox > foo |
| 5 | $ECHO -e "\ty" | busybox unexpand -t 3 ../../busybox > bar |
Denis Vlasenko | 3952f20 | 2007-08-13 14:10:24 +0000 | [diff] [blame] | 6 | set +e |
| 7 | test ! -f foo -a -f bar |
| 8 | if [ $? = 0 ] ; then |
| 9 | set -e |
| 10 | diff -q foo bar |
| 11 | fi |
| 12 | rm -f foo bar |
Denys Vlasenko | e82cf33 | 2010-05-12 15:59:32 +0200 | [diff] [blame] | 13 | $ECHO -e "\ty\tx" | expand -it 3 ../../busybox > foo |
| 14 | $ECHO -e "\ty\tx" | busybox unexpand -it 3 ../../busybox > bar |
Denis Vlasenko | 3952f20 | 2007-08-13 14:10:24 +0000 | [diff] [blame] | 15 | set +e |
| 16 | test ! -f foo -a -f bar |
| 17 | if [ $? = 0 ] ; then |
| 18 | set -e |
| 19 | diff -q foo bar |
| 20 | fi |