12 cd tmp || bailout 'can not cd to tmp'
16 zpm newpackage -f $PF basics-1.0-1
17 okexit create basics package
19 n=$(zpm list -n -f $PF)
20 okexit list package name
21 okstreq "$n" "basics" package name
24 okexit list package name
25 okstreq "$n" "basics-1.0-1" package name
27 id=$(zpm findpkg -f $PF basics)
29 okstreq "$id" "basics-1.0-1" found basics package
31 id=$(zpm findpkg -f $PF basics-1.0)
33 okstreq "$id" "basics-1.0-1" found basics-1.0 package
35 id=$(zpm findpkg -f $PF basics-1.0-1)
37 okstreq "$id" "basics-1.0-1" found basics-1.0-1 package
39 id=$(zpm findpkg -f $PF basics-2.0-1)
40 failsok findpkg did not find wrong version
42 cd .. || bailout 'can not cd up'