Skip to content

Instantly share code, notes, and snippets.

@tbg
Created September 2, 2015 06:55
Show Gist options
  • Save tbg/41c4d53b9b143a568824 to your computer and use it in GitHub Desktop.
Save tbg/41c4d53b9b143a568824 to your computer and use it in GitHub Desktop.
function rt() { rm -f "${1}.test" && make test TESTFLAGS=-c PKG=./$1 && while [ $? -eq 0 ]; do echo -n "." && (OUT=$(./${1}.test --test.run "${2}" --test.timeout=5s 2>&1) || (echo "${OUT}" && false)); done }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment