More test script examples
parent
daf715929a
commit
058a1d64ab
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
source ./test_helpers.sh
|
||||
|
||||
IPFS="../../main/ipfs --config /tmp/ipfs_1"
|
||||
|
||||
function pre {
|
||||
eval "$IPFS" init;
|
||||
}
|
||||
|
||||
function post {
|
||||
rm -Rf /tmp/ipfs_1;
|
||||
rm hello.txt;
|
||||
}
|
||||
|
||||
function body {
|
||||
create_hello_world;
|
||||
eval "$IPFS" add hello.txt
|
||||
eval "$IPFS" object cat Qm123456
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
function create_hello_world {
|
||||
echo 'Hello, World!' > hello.txt
|
||||
}
|
Loading…
Reference in New Issue