Root/qpkg/test/cyclic

Source at commit 0bc4b6046baa19f393ea3ebd6064178a080cfe35 created 9 years 24 days ago.
By Werner Almesberger, qpkg: added detection of cyclic dependencies
1#!/bin/sh
2. ./Common
3
4###############################################################################
5
6qpkg_fail "cyclic dependency (one step)" prereq foo <<EOF
7Package: foo
8Version: 0
9Architecture: test
10Depends: foo
11Filename: foo_0_test.ipkg
12EOF
13expect <<EOF
14package foo version 0 has cyclic dependency
15EOF
16
17###############################################################################
18
19qpkg_fail "cyclic dependency (two steps)" prereq foo <<EOF
20Package: bar
21Version: 1
22Architecture: test
23Depends: foo
24Filename: bar_1_test.ipkg
25
26Package: foo
27Version: 0
28Architecture: test
29Depends: bar
30Filename: foo_0_test.ipkg
31EOF
32expect <<EOF
33package foo version 0 has cyclic dependency
34EOF
35

Archive Download this file

Branches:
master



interactive