-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test12 to check #29, reading beyond eof
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
- Loading branch information
1 parent
3bdc630
commit d2ddb8c
Showing
3 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/sh | ||
|
||
cd $(dirname $0) | ||
|
||
testname=$(basename $0) | ||
rm -f $testname.log | ||
|
||
mkdir run$testname && cd run$testname || { echo "ERROR: Could not change to test directory" ; exit 1; } >&2 | ||
|
||
tar -xf ../readbeyondeof.tar.gz || { echo "ERROR: Could not extract data test files" ; exit 1; } >&2 | ||
|
||
banner="repair files where the filesize got changed" | ||
dashes=`echo "$banner" | sed s/./-/g` | ||
|
||
echo $dashes | ||
echo $banner | ||
echo $dashes | ||
|
||
mv test.data test.data-correct | ||
head -c 113579 test.data-correct > test.data | ||
|
||
../../par2 r test.par2 > ../$testname.log || { echo "ERROR: repair files using PAR 2.0 failed" ; exit 1; } >&2 | ||
|
||
cd .. | ||
rm -rf run$testname | ||
|
||
exit 0; | ||
|