Root/qpkg/test/instconf

1#!/bin/sh
2. ./Common
3
4###############################################################################
5
6qpkg_fail "installed package conflicts with dependency" prereq A <<EOF
7Package: B
8Version: 0
9Architecture: test
10Filename: B
11
12Package: A
13Version: 0
14Architecture: test
15Depends: B
16Filename: A
17
18Package: C
19Version: 0
20Architecture: test
21Conflicts: B
22Status: installed
23EOF
24expect <<EOF
25can't resolve A
26EOF
27
28###############################################################################
29
30qpkg_fail "installed package conflicts with initial package" prereq A <<EOF
31Package: B
32Version: 0
33Architecture: test
34Filename: B
35
36Package: A
37Version: 0
38Architecture: test
39Depends: B
40Filename: A
41
42Package: C
43Version: 0
44Architecture: test
45Conflicts: A
46Status: installed
47EOF
48expect <<EOF
49A conflicts with installed packages
50EOF
51
52###############################################################################
53
54qpkg_fail "prerequisite conflicts with installed package" prereq A <<EOF
55Package: B
56Version: 0
57Architecture: test
58Conflicts: C
59Filename: B
60
61Package: A
62Version: 0
63Architecture: test
64Depends: B
65Filename: A
66
67Package: C
68Version: 0
69Architecture: test
70Status: installed
71EOF
72expect <<EOF
73can't resolve A
74EOF
75
76###############################################################################
77
78qpkg_fail "initial package conflicts with installed package" prereq A <<EOF
79Package: A
80Version: 0
81Architecture: test
82Conflicts: C
83Filename: A
84
85Package: C
86Version: 0
87Architecture: test
88Status: installed
89EOF
90expect <<EOF
91A conflicts with installed packages
92

Archive Download this file

Branches:
master



interactive