github.com/yous1230/fabric@v2.0.0-beta.0.20191224111736-74345bee6ac2+incompatible/core/container/externalbuilder/testdata/goodbuilder/bin/run (about)

     1  #!/bin/bash
     2  
     3  OUTPUT_JSON="$(jq -S . "$2/chaincode.json")"
     4  
     5  EXPECTED_JSON="$(echo '{"chaincode_id":"test-ccid","peer_address":"fake-peer-address","client_cert":"fake-client-cert","client_key":"fake-client-key","root_cert":"fake-root-cert"}' | jq -S .)"
     6  	
     7  if [ "$OUTPUT_JSON" = "$EXPECTED_JSON" ] ; then
     8      exit 0
     9  fi
    10  
    11  >&2 echo "got $OUTPUT_JSON; want $EXPECTED_JSON"
    12  exit 1