Commit 711e3d2
committed
test: behavior with different suffix combinations
The test files were created with this script:
# cd tests/files/suffixes
# clean
rm -rf chunks_carve/ extractions/ collisions.zip
# reproduce output
seq 100 | gzip > 0-160.gzip
seq 128 | gzip > 160-375.gzip
dd if=/dev/zero of=375-512.padding bs=1 count=137
cat 0-160.gzip 160-375.gzip 375-512.padding > chunks
unblob --carve-suffix _carve chunks
cp 0-160.gzip chunks_carve/
echo something else > chunks_carve/0-160.gzip_extract/gzip.uncompressed
zip collisions.zip chunks chunks_carve/0-160.gzip chunks_carve/0-160.gzip_extract/gzip.uncompressed
for input in collisions.zip chunks
do
unblob -e extractions/defaults/ $input
unblob --carve-suffix _carve -e extractions/_carve_extract/ $input
unblob --carve-suffix _c --extract-suffix _e -e extractions/_c_e/ $input
done1 parent 2767e86 commit 711e3d2
File tree
29 files changed
+191
-0
lines changed- tests
- files/suffixes
- extractions
- _c_e
- chunks_c
- 0-160.gzip_e
- 160-375.gzip_e
- collisions.zip_e
- chunks_carve
- 0-160.gzip_extract
- 0-160.gzip_e
- chunks_c
- 0-160.gzip_e
- 160-375.gzip_e
- _carve_extract
- chunks_carve
- 0-160.gzip_extract
- 160-375.gzip_extract
- collisions.zip_extract
- chunks_carve
- 0-160.gzip_extract
- defaults
- chunks_extract
- 0-160.gzip_extract
- 160-375.gzip_extract
- collisions.zip_extract
- chunks_carve
- 0-160.gzip_extract
- chunks_extract
- 0-160.gzip_extract
- 160-375.gzip_extract
29 files changed
+191
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments