fixtures/scripts/push-and-pull.sh in zold-0.4.1 vs fixtures/scripts/push-and-pull.sh in zold-0.4.2
- old
+ new
@@ -7,33 +7,32 @@
port=`python -c 'import socket; s=socket.socket(); s.bind(("", 0)); print(s.getsockname()[1]); s.close()'`
mkdir server
cd server
-zold node --host=localhost --port=${port} --bind-port=${port} --threads=0 &
+zold --trace node --host=localhost --port=${port} --bind-port=${port} --threads=0 --standalone &
pid=$!
trap "kill -9 $pid" EXIT
cd ..
while ! nc -z localhost ${port}; do
sleep 0.1
done
-zold remote clean
-zold remote add localhost ${port}
-zold remote show
+zold --trace remote clean
+zold --trace remote add localhost ${port}
+zold --trace remote show
-zold --public-key id_rsa.pub create 0000000000000000
+zold --trace --public-key id_rsa.pub create 0000000000000000
target=`zold --public-key id_rsa.pub create`
invoice=`zold invoice ${target}`
-zold --private-key id_rsa pay 0000000000000000 ${invoice} 14.99 'To save the world!'
-zold propagate 0000000000000000
-zold show
-zold show 0000000000000000
+zold --trace --private-key id_rsa pay 0000000000000000 ${invoice} 14.99 'To save the world!'
+zold --trace propagate 0000000000000000
+zold --trace show
+zold --trace show 0000000000000000
-zold push 0000000000000000
-zold fetch 0000000000000000 --ignore-score-weakness
-zold diff 0000000000000000
-zold merge 0000000000000000
-zold clean 0000000000000000
-
-echo 'DONE'
+zold --trace remote show
+zold --trace push 0000000000000000
+zold --trace fetch 0000000000000000 --ignore-score-weakness
+zold --trace diff 0000000000000000
+zold --trace merge 0000000000000000
+zold --trace clean 0000000000000000