test.sh 392 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. echo "Building programs"
  3. #
  4. # Build the UncheckedAccount variant.
  5. #
  6. pushd programs/unchecked-account/
  7. anchor build
  8. if [ $? -eq 0 ]; then
  9. echo "Error: expected failure"
  10. exit 1
  11. fi
  12. popd
  13. #
  14. # Build the AccountInfo variant.
  15. #
  16. pushd programs/account-info/
  17. anchor build
  18. if [ $? -eq 0 ]; then
  19. echo "Error: expected failure"
  20. exit 1
  21. fi
  22. popd
  23. echo "Success. All builds failed."