mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-15 08:19:41 +02:00
44 lines
887 B
Plaintext
44 lines
887 B
Plaintext
|
#!/bin/sh
|
||
|
. ./Common
|
||
|
|
||
|
###############################################################################
|
||
|
|
||
|
qpkg_fail "no Version field" <<EOF
|
||
|
Package: test
|
||
|
EOF
|
||
|
expect <<EOF
|
||
|
package test has no version
|
||
|
EOF
|
||
|
|
||
|
###############################################################################
|
||
|
|
||
|
qpkg_fail "no Architecture field" <<EOF
|
||
|
Package: test
|
||
|
Version: 1
|
||
|
EOF
|
||
|
expect <<EOF
|
||
|
package test version 1 has no architecture
|
||
|
EOF
|
||
|
|
||
|
###############################################################################
|
||
|
|
||
|
qpkg_fail "no Filename field" <<EOF
|
||
|
Package: whatever
|
||
|
Version: 1
|
||
|
Architecture: test
|
||
|
EOF
|
||
|
expect <<EOF
|
||
|
package whatever version 1 has no file name (nor is it installed)
|
||
|
EOF
|
||
|
|
||
|
###############################################################################
|
||
|
|
||
|
qpkg "minimum package definition" <<EOF
|
||
|
Package: whatever
|
||
|
Version: 1
|
||
|
Architecture: test
|
||
|
Filename: whatever_1_test.ipkg
|
||
|
EOF
|
||
|
expect <<EOF
|
||
|
EOF
|