Home | History | Annotate | Download | only in src

Lines Matching refs:VCDIFF

18 # This script tests the correctness of the vcdiff command-line executable.
23 # of the open-vcdiff package. ($srcdir is automatically provided by Automake
27 VCDIFF=./vcdiff
35 DELTA_FILE=$TEST_TMPDIR/configure.ac.vcdiff
37 MALICIOUS_ENCODING=$srcdir/testdata/allocates_4gb.vcdiff
39 # vcdiff with no arguments shows usage information & error result
40 $VCDIFF \
41 && { echo "vcdiff with no arguments should fail, but succeeded"; \
45 # vcdiff with three arguments but without "encode" or "decode"
47 $VCDIFF $VCD_OPTIONS \
49 && { echo "vcdiff without operation argument should fail, but succeeded"; \
53 # vcdiff with all three arguments. Verify that output file matches target file
54 $VCDIFF $VCD_OPTIONS \
60 $VCDIFF decode -dictionary $DICTIONARY_FILE \
73 # vcdiff using stdin/stdout. Verify that output file matches target file
74 { $VCDIFF $VCD_OPTIONS \
80 { $VCDIFF decode -dictionary $DICTIONARY_FILE \
93 # vcdiff with mixed stdin/stdout.
94 { $VCDIFF $VCD_OPTIONS \
100 { $VCDIFF decode -dictionary $DICTIONARY_FILE \
113 { $VCDIFF $VCD_OPTIONS \
119 { $VCDIFF decode -dictionary $DICTIONARY_FILE \
133 # dictionary, vcdiff will spot the mistake and return an error. (It can't
135 $VCDIFF decode -dictionary $TARGET_FILE \
145 # "vcdiff test" with all three arguments.
146 $VCDIFF $VCD_OPTIONS \
150 || { echo "vcdiff test with three arguments failed"; \
157 $VCDIFF $VCD_OPTIONS \
161 && { echo "vcdiff with missing dictionary file should fail, but succeeded"; \
166 $VCDIFF $VCD_OPTIONS \
170 && { echo "vcdiff with missing target file should fail, but succeeded"; \
175 $VCDIFF decode -dictionary $DICTIONARY_FILE \
178 && { echo "vcdiff with missing delta file should fail, but succeeded"; \
185 $VCDIFF $VCD_OPTIONS \
189 && { echo "vcdiff with symbolic link loop should fail, but succeeded"; \
196 $VCDIFF $VCD_OPTIONS \
203 $VCDIFF -stats \
219 $VCDIFF $VCD_OPTIONS \
224 || { echo "vcdiff test with /dev/null as dictionary failed"; \
232 $VCDIFF $VCD_OPTIONS \
236 && { echo "vcdiff with /dev/kmem as dictionary should fail, but succeeded"; \
240 $VCDIFF $VCD_OPTIONS \
244 && { echo "vcdiff with /dev/kmem as target should fail, but succeeded"; \
249 $VCDIFF decode -dictionary $DICTIONARY_FILE \
252 && { echo "vcdiff with invalid delta file should fail, but succeeded"; \
256 $VCDIFF $VCD_OPTIONS \
264 $VCDIFF $VCD_OPTIONS \
272 $VCDIFF $VCD_OPTIONS \
280 $VCDIFF $VCD_OPTIONS \
290 $VCDIFF $VCD_OPTIONS \
296 || { echo "vcdiff test with -buffersize=1 failed"; \
302 # Using -buffersize=1 with stdin/stdout means that vcdiff
304 { $VCDIFF encode -dictionary $DICTIONARY_FILE \
311 { $VCDIFF decode -dictionary $DICTIONARY_FILE \
327 $VCDIFF $VCD_OPTIONS \
332 && { echo "vcdiff test with -buffersize=0 should fail, but succeeded"; \
339 $VCDIFF $VCD_OPTIONS \
345 || { echo "vcdiff test with -buffersize=128M failed"; \
351 $VCDIFF $VCD_OPTIONS \
360 $VCDIFF $VCD_OPTIONS \
367 $VCDIFF decode -target $TARGET_FILE \
374 { $VCDIFF encode -dictionary $DICTIONARY_FILE \
379 { $VCDIFF decode -dictionary $DICTIONARY_FILE \
390 { $VCDIFF encode -dictionary $DICTIONARY_FILE \
398 { $VCDIFF decode -dictionary $DICTIONARY_FILE \
411 $VCDIFF $VCD_OPTIONS \
419 $VCDIFF $VCD_OPTIONS \
426 $VCDIFF $VCD_OPTIONS \
433 # open-vcdiff bug 8 (http://code.google.com/p/open-vcdiff/issues/detail?id=8)
443 $VCDIFF $VCD_OPTIONS \
452 $VCDIFF $VCD_OPTIONS \
464 $VCDIFF $VCD_OPTIONS \
469 || { echo "vcdiff test with -max_target_file_size failed"; \
474 $VCDIFF $VCD_OPTIONS \
479 || { echo "vcdiff test with -max_target_window_size failed"; \
486 $VCDIFF $VCD_OPTIONS \
493 $VCDIFF $VCD_OPTIONS \
509 $VCDIFF $VCD_OPTIONS \
516 $VCDIFF $VCD_OPTIONS \