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" 20590a52c4f00588c500328b16d466c982a26fabaa5fa4dcc83052dd0a84f233 foo hash contents
23 zpm-extract -f $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 -f $PF $hash - | zpm-hash)
30 okstreq $hash $sha stdout extract hash matches