11 cd tmp || bailout "can not cd to tmp"
12 require rm -f $PF test.empty
13 require touch test.empty
15 zpm test test.empty 2>/dev/null
16 failsok zpm-test of empty file
19 okexit zpm-init new file
21 tryrun zpm newpackage -f $PF basics-1.0-1
22 pkgid=$(zpm list -f $PF)
23 okstreq "$pkgid" "basics-1.0-1" "have basics 1.0"
25 require zpm pkg -f $PF basics version=2.0
26 pkgid=$(zpm list -f $PF)
27 okstreq "$pkgid" "basics-2.0-1" "have basics 2.0"
29 tryrun zpm newpackage -f $PF -p foo -l bar -d baz -u quux valset-1.0-1
30 val=$(zpm pkg -f $PF valset packager)
31 okstreq "$val" 'foo' newpackage set packager
32 val=$(zpm pkg -f $PF valset licenses)
33 okstreq "$val" 'bar' newpackage set licenses
34 val=$(zpm pkg -f $PF valset description)
35 okstreq "$val" 'baz' newpackage set description
36 val=$(zpm pkg -f $PF valset url)
37 okstreq "$val" 'quux' newpackage set url