You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
871 B

  1. #!/bin/bash
  2. # returns non-zero error code if any proof fails
  3. success=0
  4. log_dir=$(cat /dev/urandom | tr -cd 'a-f0-9' | head -c 6)
  5. mkdir -p output/$log_dir
  6. echo "Checking classic safety:"
  7. res=$(ivy_check classic_safety.ivy | tee "output/$log_dir/classic_safety.txt" | tail -n 1)
  8. if [ "$res" = "OK" ]; then
  9. echo "OK"
  10. else
  11. echo "FAILED"
  12. success=1
  13. fi
  14. echo "Checking accountable safety 1:"
  15. res=$(ivy_check accountable_safety_1.ivy | tee "output/$log_dir/accountable_safety_1.txt" | tail -n 1)
  16. if [ "$res" = "OK" ]; then
  17. echo "OK"
  18. else
  19. echo "FAILED"
  20. success=1
  21. fi
  22. echo "Checking accountable safety 2:"
  23. res=$(ivy_check complete=fo accountable_safety_2.ivy | tee "output/$log_dir/accountable_safety_2.txt" | tail -n 1)
  24. if [ "$res" = "OK" ]; then
  25. echo "OK"
  26. else
  27. echo "FAILED"
  28. success=1
  29. fi
  30. echo
  31. echo "See ivy_check output in the output/ folder"
  32. exit $success