File: inst-5

package info (click to toggle)
mbr 1.2.2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 676 kB
  • sloc: sh: 3,941; ansic: 2,226; makefile: 116
file content (44 lines) | stat: -rwxr-xr-x 691 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#! /bin/sh
set -e
# Test installing old versions.
cat <<EOF >test-x
Version: 0
Compatible: 0
Drive: 0x80
Default: D
Timeout: 18/18 seconds
Enabled: F A
Interrupt: Shift Key
EOF

do_install -l mbr-1.0.0.b >test-y
diff -u test-x test-y

do_install -l mbr-1.0.1.b >test-y
diff -u test-x test-y

do_install -l mbr-1.1.0.b >test-y
diff -u test-x test-y

do_install -l mbr-1.1.1.b >test-y
diff -u test-x test-y

do_install -l mbr-1.1.2.b >test-y
diff -u test-x test-y

# Version change.
cat <<EOF >test-x
Version: 1
Compatible: 0
Y2K-Fix: Disabled
Drive: 0x80
Default: D
Timeout: 18/18 seconds
Enabled: F A
Interrupt: Shift Key
EOF

do_install -l mbr-1.1.3.b >test-y
diff -u test-x test-y

: Done