diff options
Diffstat (limited to 'reg_test.sh')
-rwxr-xr-x | reg_test.sh | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/reg_test.sh b/reg_test.sh index 2a73fc511..8177096a8 100755 --- a/reg_test.sh +++ b/reg_test.sh | |||
@@ -9,7 +9,7 @@ if ! eval diff -u tar.c testdir ; then | |||
9 | echo "Bummer. File copy failed." | 9 | echo "Bummer. File copy failed." |
10 | exit 0 | 10 | exit 0 |
11 | else | 11 | else |
12 | echo "Cool. File copy is ok." | 12 | echo "Cool. 'cp tar.c testdir' is ok." |
13 | fi | 13 | fi |
14 | 14 | ||
15 | rm -rf testdir | 15 | rm -rf testdir |
@@ -20,7 +20,7 @@ if ! eval diff -u tar.c testdir/foo/tar.c ; then | |||
20 | echo "Bummer. File copy to a directory failed." | 20 | echo "Bummer. File copy to a directory failed." |
21 | exit 0 | 21 | exit 0 |
22 | else | 22 | else |
23 | echo "Cool. File copy to a directory is ok." | 23 | echo "Cool. 'cp tar.c testdir/foo' is ok." |
24 | fi | 24 | fi |
25 | 25 | ||
26 | 26 | ||
@@ -32,7 +32,7 @@ if ! eval diff -u tar.c testdir/foo/tar.c ; then | |||
32 | echo "Bummer. File copy to a directory w/ a '/' failed." | 32 | echo "Bummer. File copy to a directory w/ a '/' failed." |
33 | exit 0 | 33 | exit 0 |
34 | else | 34 | else |
35 | echo "Cool. File copy to a directory w/ a '/' is ok." | 35 | echo "Cool. 'cp tar.c testdir/foo/' is ok." |
36 | fi | 36 | fi |
37 | 37 | ||
38 | 38 | ||
@@ -44,7 +44,7 @@ if ! eval diff -ur X11 testdir ; then | |||
44 | echo "Bummer. Local dir copy failed." | 44 | echo "Bummer. Local dir copy failed." |
45 | exit 0 | 45 | exit 0 |
46 | else | 46 | else |
47 | echo "Cool. Local dir copy is ok." | 47 | echo "Cool. 'cp -a X11 testdir' is ok." |
48 | fi | 48 | fi |
49 | 49 | ||
50 | rm -rf testdir X11 | 50 | rm -rf testdir X11 |
@@ -55,7 +55,7 @@ if ! eval diff -ur X11 testdir ; then | |||
55 | echo "Bummer. Local dir copy w/ a '/' failed." | 55 | echo "Bummer. Local dir copy w/ a '/' failed." |
56 | exit 0 | 56 | exit 0 |
57 | else | 57 | else |
58 | echo "Cool. Local dir copy w/ a '/' is ok." | 58 | echo "Cool. 'cp -a X11 testdir/' is ok." |
59 | fi | 59 | fi |
60 | 60 | ||
61 | rm -rf testdir X11 | 61 | rm -rf testdir X11 |
@@ -66,7 +66,7 @@ if ! eval diff -ur X11 testdir ; then | |||
66 | echo "Bummer. Local dir copy w/ a src '/' failed." | 66 | echo "Bummer. Local dir copy w/ a src '/' failed." |
67 | exit 0 | 67 | exit 0 |
68 | else | 68 | else |
69 | echo "Cool. Local dir copy w/ a src '/' is ok." | 69 | echo "Cool. 'cp -a X11/ testdir' is ok." |
70 | fi | 70 | fi |
71 | 71 | ||
72 | rm -rf testdir X11 | 72 | rm -rf testdir X11 |
@@ -77,7 +77,7 @@ if ! eval diff -ur X11 testdir ; then | |||
77 | echo "Bummer. Local dir copy w/ 2x '/'s failed." | 77 | echo "Bummer. Local dir copy w/ 2x '/'s failed." |
78 | exit 0 | 78 | exit 0 |
79 | else | 79 | else |
80 | echo "Cool. Local dir copy w/ 2x '/'s is ok." | 80 | echo "Cool. 'cp -a X11/ testdir/' is ok." |
81 | fi | 81 | fi |
82 | 82 | ||
83 | rm -rf testdir X11 | 83 | rm -rf testdir X11 |
@@ -86,7 +86,7 @@ if ! eval diff -ur /etc/X11 testdir ; then | |||
86 | echo "Bummer. Remote dir copy failed." | 86 | echo "Bummer. Remote dir copy failed." |
87 | exit 0 | 87 | exit 0 |
88 | else | 88 | else |
89 | echo "Cool. Remote dir copy is ok." | 89 | echo "Cool. 'cp -a /etc/X11 testdir' is ok." |
90 | fi | 90 | fi |
91 | 91 | ||
92 | 92 | ||
@@ -98,7 +98,7 @@ if ! eval diff -ur /etc/X11 testdir/foo ; then | |||
98 | echo "Bummer. Remote dir copy to a directory failed." | 98 | echo "Bummer. Remote dir copy to a directory failed." |
99 | exit 0 | 99 | exit 0 |
100 | else | 100 | else |
101 | echo "Cool. Remote dir copy to a directory is ok." | 101 | echo "Cool. 'cp -a /etc/X11 testdir/foo' is ok." |
102 | fi | 102 | fi |
103 | 103 | ||
104 | 104 | ||
@@ -110,7 +110,7 @@ if ! eval diff -ur /etc/X11 testdir/foo ; then | |||
110 | echo "Bummer. Remote dir copy to a directory w/ a '/' failed." | 110 | echo "Bummer. Remote dir copy to a directory w/ a '/' failed." |
111 | exit 0 | 111 | exit 0 |
112 | else | 112 | else |
113 | echo "Cool. Remote dir copy to a directory w/ a '/' is ok." | 113 | echo "Cool. 'cp -a /etc/X11 testdir/foo/' is ok." |
114 | fi | 114 | fi |
115 | 115 | ||
116 | rm -rf testdir | 116 | rm -rf testdir |
@@ -124,14 +124,24 @@ if ! eval ./busybox cp README foo ; then | |||
124 | echo "Bummer. cp README foo failed." | 124 | echo "Bummer. cp README foo failed." |
125 | exit 0 | 125 | exit 0 |
126 | else | 126 | else |
127 | echo "Cool. cp README foo is ok." | 127 | echo "Cool. 'cp README foo' is ok." |
128 | fi | 128 | fi |
129 | 129 | ||
130 | if ! eval ./busybox cp foo/README bar ; then | 130 | if ! eval ./busybox cp foo/README bar ; then |
131 | echo "Bummer. cp foo/README bar failed." | 131 | echo "Bummer. cp foo/README bar failed." |
132 | exit 0 | 132 | exit 0 |
133 | else | 133 | else |
134 | echo "Cool. cp foo/README bar is ok." | 134 | echo "Cool. 'cp foo/README bar' is ok." |
135 | fi | ||
136 | |||
137 | rm -f bar/README | ||
138 | ENVVAR1=foo | ||
139 | ENVVAR2=bar | ||
140 | if ! eval ./busybox cp $ENVVAR1/README $ENVVAR2 ; then | ||
141 | echo "Bummer. cp foo/README bar failed." | ||
142 | exit 0 | ||
143 | else | ||
144 | echo "Cool. 'cp \$ENVVAR1/README \$ENVVAR2' is ok." | ||
135 | fi | 145 | fi |
136 | 146 | ||
137 | rm -rf foo bar | 147 | rm -rf foo bar |