1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-12-19 00:29:42 +02:00
wernermisc/qpkg/test/cyclic

35 lines
679 B
Plaintext
Raw Normal View History

#!/bin/sh
. ./Common
###############################################################################
qpkg_fail "cyclic dependency (one step)" prereq foo <<EOF
Package: foo
Version: 0
Architecture: test
Depends: foo
Filename: foo_0_test.ipkg
EOF
expect <<EOF
package foo version 0 has cyclic dependency
EOF
###############################################################################
qpkg_fail "cyclic dependency (two steps)" prereq foo <<EOF
Package: bar
Version: 1
Architecture: test
Depends: foo
Filename: bar_1_test.ipkg
Package: foo
Version: 0
Architecture: test
Depends: bar
Filename: foo_0_test.ipkg
EOF
expect <<EOF
package foo version 0 has cyclic dependency
EOF