5 #printf "# PATH=%s\n" "$PATH" 1>&2
18 rm -f zpmtest-1.0-1.zpm
20 require zpm addtopackage -C zpmtest $td/foo
22 require zpm extract zpmtest-1.0-1.zpm $h $td/foo2
23 h2=$(zpm hash $td/foo2)
24 okstreq "$h" "$h2" "foo and foo2 hash match"
26 pkglist=$(zpm showpkg zpmtest-1.0-1.zpm)
28 okstreq "$1" "zpmtest" package name
29 okstreq "$2" "1.0" package version
30 okstreq "$3" "1" package release
31 okstreq "$4" "$td/foo" file foo in package
36 require zpm addtopackage -C -f $PF zpmtest $td/foo
38 require zpm extract $PF $h $td/foo2
39 h2=$(zpm hash $td/foo2)
42 pkglist=$(zpm showpkg $PF)
44 okstreq "$1" "zpmtest" package name
45 okstreq "$2" "1.0" package version
46 okstreq "$3" "1" package release
47 okstreq "$4" "$td/foo" file foo in package
51 require zpm addtopackage -C -f $PF -S "$td" zpmtest $td/foo
52 fn=$(zpm showpkg $PF | awk '{print $4}')
53 okstreq "$fn" "foo" file foo in package prefix striped
59 rm -f zpmtest-1.0-1.zpm