mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-28 19:01:53 +02:00
2c953a5d1a
- Makefile (test, tests, valgrind): new targets to run regression tests - test/Common: test harness (adapted from fped) - test/minpkg: test minimum package definition - test/prereq: test basic prerequisite queries
44 lines
887 B
Bash
Executable File
44 lines
887 B
Bash
Executable File
#!/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
|