From 2d40c0f531c5da0eddd121413bef62bbe4515a44 Mon Sep 17 00:00:00 2001 From: "Peter J. Keleher" <keleher@cs.umd.edu> Date: Sun, 5 Nov 2023 10:15:16 -0500 Subject: [PATCH] auto --- p4cmds.txt | 35 ++++++++++++++++++++++++++--------- p4cmds.txt~ | 1 - 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/p4cmds.txt b/p4cmds.txt index 4c4f5a1..a5ae211 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 76eaddd..4c4f5a1 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 -- GitLab