diff --git a/p4cmds.txt b/p4cmds.txt index 4c4f5a16cddd2e0014780c7d028c36af04a254f2..a5ae2118394adc9e747ab1acdb978873aca39565 100644 --- a/p4cmds.txt +++ b/p4cmds.txt @@ -1,26 +1,37 @@ -# 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 diff --git a/p4cmds.txt~ b/p4cmds.txt~ index 76eaddd79d2a04c6849d874bd43e731429802b42..4c4f5a16cddd2e0014780c7d028c36af04a254f2 100644 --- a/p4cmds.txt~ +++ b/p4cmds.txt~ @@ -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