13 okexit create extract test db
15 hash=$(zpm-addfile $PF test.foo 2>> test.out)
18 okexit add foo file content
19 okstreq "$hash" b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c foo hash contents
23 zpm-extract $PF $hash test.foo2
24 okexit extract foo file content
26 sha=$(zpm-hash test.foo2)
27 okstreq $hash $sha extracted hash matches
29 sha=$(zpm-extract $PF $hash - | zpm-hash)
30 okstreq $hash $sha stdout extract hash matches