| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 | #!/bin/bash# Write a keypair for program deploymkdir -p target/deploycp keypairs/idl_commands_one-keypair.json target/deploy# Generate over 20kb bytes of random data (base64 encoded), surround it with quotes, and store it in a variableRANDOM_DATA=$(openssl rand -base64 $((10*1680)) | sed 's/.*/"&",/')# Create the JSON object with the "docs" field containing random dataecho '{  "address": "2uA3amp95zsEHUpo8qnLMhcFAUsiKVEcKHXS1JetFjU5",  "metadata": {    "name": "idl_commands_one",    "version": "0.1.0",    "spec": "0.1.0"  },  "instructions": [    {      "name": "initialize",      "docs" : [        '"$RANDOM_DATA"'        "trailing comma begone"      ],      "discriminator": [],      "accounts": [],      "args": []    }  ]}' > testLargeIdl.jsonecho "Building programs"anchor buildecho "Starting local validator for test"solana-test-validator --reset \  -q \  --mint tgyXxAhCkpgtKCEi4W6xWJSzqwVGs3uk2RodbZP2J49 \  --bpf-program 2uA3amp95zsEHUpo8qnLMhcFAUsiKVEcKHXS1JetFjU5 target/deploy/idl_commands_one.so \  --bpf-program DE4UbHnAcT6Kfh1fVTPRPwpiA3vipmQ4xR3gcLwX3wwS target/deploy/idl_commands_one.so \  &sleep 10echo "Running tests"anchor test --skip-deploy --skip-local-validatortrap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
 |