equal
deleted
inserted
replaced
60 |
60 |
61 ==copyright |
61 ==copyright |
62 |
62 |
63 Copyright (c) 2008-2010 Accenture. All rights reserved. |
63 Copyright (c) 2008-2010 Accenture. All rights reserved. |
64 |
64 |
|
65 ==smoke-test |
|
66 |
|
67 export TESTDATA "This is some test data for fzip" |
|
68 echo -n "$TESTDATA" > test.txt |
|
69 rm test.txt.zip $Silent &| echo -n "" |
|
70 |
|
71 # Test zip |
|
72 fzip --file test.txt |
|
73 exists test.txt.zip || $Error |
|
74 rm test.txt |
|
75 |
|
76 # Test unzip |
|
77 fzip --unzip test.txt.zip |
|
78 exists test.txt || $Error |
|
79 cat -b test.txt | export -s RESULT |
|
80 var RESULT == "$TESTDATA" || $Error |
|
81 |
|
82 # Test that we don't overwrite files unless --overwrite is specified |
|
83 fzip --file test.txt $Silent &| var ? == "-11" || $Error |
|
84 fzip --file test.txt --overwrite |
|
85 |
|
86 fzip --unzip test.txt.zip $Silent &| var ? == "-11" || $Error |
|
87 fzip --unzip test.txt.zip --overwrite |
|
88 |
|
89 rm test.txt |
|
90 rm test.txt.zip |