| 1 |
#! /bin/sh |
| 2 |
# Check long delays, boots partition 2. |
| 3 |
cat <<EOF >test-x |
| 4 |
Version: 2 |
| 5 |
Compatible: 2 |
| 6 |
Y2K-Fix: Disabled |
| 7 |
Drive: 0x80 |
| 8 |
Default: 2 |
| 9 |
Timeout: 255/18 seconds |
| 10 |
Enabled: F A |
| 11 |
Interrupt: Key |
| 12 |
EOF |
| 13 |
do_install -I testdisk.b -l -r -d 0x80 -ik -t 255 -p 2 -eaf test-mbr >test-y |
| 14 |
diff -u test-x test-y |
| 15 |
cat <<EOF >test-x |
| 16 |
Output: "TestDisk" |
| 17 |
Time: 1 |
| 18 |
Output: "\r\n" |
| 19 |
Time: 255 |
| 20 |
Read sector d128 h0 c132 s1 to 0000:7c00 |
| 21 |
Exit: 0080 0000 0084 0001 |
| 22 |
Partition: active type: 0x83 |
| 23 |
Start: C=132 H=0 S=1 End: C=1023 H=15 S=17 |
| 24 |
Sector 0x00008c40 Length 0x00044000 |
| 25 |
eax:00000201 ebx:00007c00 ecx:00008401 edx:00000080 PC:0000:00007c02 |
| 26 |
esi:000007ce edi:00000005 ebp:00000000 efl:00030246 SP:0000:00000000 |
| 27 |
ds:0000 es:0000 fs:0000 gs:0000 FLAGS: c P a Z s t I d o |
| 28 |
EOF |
| 29 |
harness test-mbr -r10 -w275 -k 0x2166 >test-y |
| 30 |
diff -u test-x test-y |
| 31 |
|
| 32 |
: Done |