14 hash=$(zpm-addfile $PF test.foo 2>> test.out)
17 okexit add foo file content
18 okstreq $hash b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c foo hash contents
22 zpm-extract $PF $hash test.foo2
23 okexit extract foo file content
25 sha=$(zpm-hash test.foo2)
26 okstreq $hash $sha extracted hash matches
28 sha=$(zpm-extract $PF $hash - | zpm-hash)
29 okstreq $hash $sha stdout extract hash matches