Skip to content
Snippets Groups Projects
Commit 2d40c0f5 authored by Peter J. Keleher's avatar Peter J. Keleher
Browse files

auto

parent b03adb14
No related branches found
No related tags found
No related merge requests found
# Test 1
echo Test 1
rm -fr /tmp/blob5002
killall ubiserver
sleep 5
go run ubiserver.go -b /tmp/blob -s :5001 -S localhost:5002 -p 1000 &
sleep 5
go run cli.go -s :5001 list | wc
# Test 2
echo
echo Test 2
go run cli.go -s :5001 build
go run cli.go -s :5001 path last E
go run cli.go -s :5001 path last EM
go run cli.go -s :5001 path last EMW
# Test 3
Echo
echo Test 3
killall ubiserver
sleep 5
go run ubiserver.go -b /tmp/blob -s :5001 -S localhost:5002 -p 1000 -D 2 &
sleep 5
go run cli.go -s :5001 list | wc
go run cli.go -s :5001 build
go run cli.go -s :5001 path last ""
go run cli.go -s :5001 path last E
# Test 4
echo
echo Test 4
killall ubiserver
rm -fr /tmp/blob5002
sleep 5
go run ubiserver.go -b /tmp/blob -s :5001 -S localhost:5002 -p 1000 &
go run ubiserver.go -b /tmp/blob -s :5002 -S localhost:5001 -p 1000 &
sleep 5
go run cli.go -s :5001 list | wc
go run cli.go -s :5002 list | wc
go run cli.go -s :5001 pull "localhost:5002"
......@@ -28,22 +39,28 @@ go run cli.go -s :5002 pull "localhost:5001"
go run cli.go -s :5002 pull "localhost:5001"
go run cli.go -s :5001 pull "localhost:5002"
# Test 5
echo
echo Test 5
killall ubiserver
rm -fr /tmp/blob*
sleep 5
go run ubiserver.go -b /tmp/blob -s :5002 -S localhost:5001 -p 10 &
go run ubiserver.go -b /tmp/blob -s :5001 -S localhost:5002 -p 10 &
sleep 5
go run cli.go -s :5001 list | wc ; go run cli.go -s :5002 list | wc
go run cli.go -a -s :5001 put sampledir
go run cli.go -s :5001 list | wc ; go run cli.go -s :5002 list | wc
go run cli.go -s :5001 list | wc ; go run cli.go -s :5002 list | wc
# Test 6
go run cli.go -a -s :5002 put sampledis-7.2.1
echo
echo Test 6
go run cli.go -a -s :5002 put ~/down/sampledis-7.2.1
go run cli.go -s :5001 list | wc ; go run cli.go -s :5002 list | wc
go run cli.go -s :5001 list | wc ; go run cli.go -s :5002 list | wc
go run cli.go -s :5001 list | wc ; go run cli.go -s :5002 list | wc
# Test 7
echo
echo Test 7
docker compose up
go run cli.go -s :5001 list | wc; go run cli.go -s :5002 list | wc; go run cli.go -s :5003 list | wc
go run cli.go -s :5001 put sampledir
......
......@@ -34,7 +34,6 @@ go run ubiserver.go -b /tmp/blob -s :5002 -S localhost:5001 -p 10 &
go run ubiserver.go -b /tmp/blob -s :5001 -S localhost:5002 -p 10 &
go run cli.go -s :5001 list | wc ; go run cli.go -s :5002 list | wc
go run cli.go -a -s :5001 put sampledir
sha256_32_ITNRHUSBBLCJFBHKUB2ESG24XNUUPF3KH34CRO22JWOIZPZRC5OA====
go run cli.go -s :5001 list | wc ; go run cli.go -s :5002 list | wc
go run cli.go -s :5001 list | wc ; go run cli.go -s :5002 list | wc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment