valgrind.sh 331 B

1234567891011
  1. #! /bin/bash
  2. hash valgrind 2> /dev/null \
  3. || {
  4. 1>&2 echo "Valgrind not found"
  5. ./dice ./tests/testing.dice
  6. }
  7. hash valgrind 2> /dev/null \
  8. && valgrind -v --tool=memcheck --leak-check=full --show-leak-kinds=all --show-reachable=no --track-origins=yes \
  9. ./dice <<< "5x d4 + 2 + d6; 4d6!k3; 10x d2 T2;"