|
Lines 1-11
Link Here
|
| 1 |
#!/bin/sh |
1 |
#!/bin/sh |
| 2 |
basedir="$1"; |
2 |
basedir="$1"; |
| 3 |
tmpdir="$2"; |
3 |
tmpdir="$2"; |
| 4 |
|
4 |
|
| 5 |
safecopy="$basedir/src/safecopy"; |
5 |
safecopy="$basedir/src/safecopy"; |
| 6 |
safecopydebug="../libsafecopydebug/src/libsafecopydebuglb.so.1.0"; |
6 |
safecopydebug="../libsafecopydebug/src/libsafecopydebuglb.so.1.0: $LD_PRELOAD"; |
| 7 |
|
7 |
|
| 8 |
echo -n " - Testing safecopy 7: Incremental recovery with blocksize variation "; |
8 |
echo -n " - Testing safecopy 7: Incremental recovery with blocksize variation "; |
| 9 |
|
9 |
|
| 10 |
# safecopy regular run with badblocks output - produces some reference files with and withouzt marked badblocks |
10 |
# safecopy regular run with badblocks output - produces some reference files with and withouzt marked badblocks |
| 11 |
LD_PRELOAD="$safecopydebug" $safecopy -R 2 -b 1150 -f 4* -r 4* -o "$tmpdir/test1.badblocks" debug "$tmpdir/test1.dat" >/dev/null 2>&1; |
11 |
LD_PRELOAD="$safecopydebug" $safecopy -R 2 -b 1150 -f 4* -r 4* -o "$tmpdir/test1.badblocks" debug "$tmpdir/test1.dat" >/dev/null 2>&1; |