Skip to content

Instantly share code, notes, and snippets.

@codyrioux
Created December 25, 2011 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codyrioux/1519764 to your computer and use it in GitHub Desktop.
Save codyrioux/1519764 to your computer and use it in GitHub Desktop.
Erlang Simple Test Runner
.SUFFIXES: .erl .beam .yrl
.erl.beam:
erlc -W $<
.yrl.erl:
erlc -W $<
ERL = erl -boot start_clean
MODS = calc calc_tests
all: compile
compile: ${MODS:%=%.beam}
test: compile
${ERL} -pa ./ -s eunit test calc -s init stop
clean:
rm -rf *.beam erl_crash.dump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment