From c6c9117c3a568861f6f9fae107829f6b65326661 Mon Sep 17 00:00:00 2001 From: Pietro Date: Wed, 28 Feb 2018 12:44:06 +0100 Subject: [PATCH] Client,test: add test for demo protocol activation --- src/bin_client/test/test_injection.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/bin_client/test/test_injection.sh b/src/bin_client/test/test_injection.sh index 858f9334c..4d981fcf5 100755 --- a/src/bin_client/test/test_injection.sh +++ b/src/bin_client/test/test_injection.sh @@ -9,8 +9,17 @@ start_node 1 sleep 2 +# autogenerated from the demo source +protocol_version="Ps1ZDZdgRP4PFDkzmFpiYtE7gJHioavCMxC96i9zJsK6URwSXSJ" + $admin_client inject protocol "$test_dir/demo" $admin_client list protocols +$client activate protocol $protocol_version with fitness 1 and key dictator +answ=$($client rpc call /blocks/head/protocol with {} 2>/dev/null) + +if ! grep "$protocol_version" <<< $answ ; then + exit 1 +fi echo echo End of test