source:
MondoRescue/branches/2.2.9/mindi-busybox/testsuite/expand/expand-works-like-GNU@
2823
| Last change on this file since 2823 was 2725, checked in by , 15 years ago | |
|---|---|
| File size: 440 bytes | |
| Rev | Line | |
|---|---|---|
| [2725] | 1 | # FEATURE: CONFIG_UNEXPAND |
| 2 | ||
| [1765] | 3 | rm -f foo bar |
| [2725] | 4 | $ECHO -e "\ty" | expand -t 3 ../../busybox > foo |
| 5 | $ECHO -e "\ty" | busybox unexpand -t 3 ../../busybox > bar | |
| [1765] | 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 | |
| [2725] | 13 | $ECHO -e "\ty\tx" | expand -it 3 ../../busybox > foo |
| 14 | $ECHO -e "\ty\tx" | busybox unexpand -it 3 ../../busybox > bar | |
| [1765] | 15 | set +e |
| 16 | test ! -f foo -a -f bar | |
| 17 | if [ $? = 0 ] ; then | |
| 18 | set -e | |
| 19 | diff -q foo bar | |
| 20 | fi |
Note:
See TracBrowser
for help on using the repository browser.
