Skip to content

Instantly share code, notes, and snippets.

@masterl
Last active November 18, 2015 12:42
Show Gist options
  • Save masterl/b54a5553c7e1789e0464 to your computer and use it in GitHub Desktop.
Save masterl/b54a5553c7e1789e0464 to your computer and use it in GitHub Desktop.
Automated on-save test runner

Dependencies:

  • entrproject.org
  • inotify-tools

As it is, it is for C files using only .c and .h as extensions on their files. Needs to be generic.

#!/bin/bash
find `pwd` | grep "[.][ch]$" | grep -v "/.git/" | entr sh -c 'make test'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment