Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change makefile to be able to run eunit tests.

  • Loading branch information...
commit 3d9db3beb9e9a4cd914b04712fbf5f06be745499 1 parent 74e80c8
@noss authored
Showing with 19 additions and 11 deletions.
  1. +11 −3 Makefile
  2. +0 −8 src/Makefile
  3. +8 −0 test/Emakefile
View
14 Makefile
@@ -1,7 +1,15 @@
+.PHONY: all test clean
+
all:
- $(MAKE) -C src
+ @cd src && erl -make
-clean:
- $(MAKE) -C src clean
+test:
+ @cd test && erl -make
+ @erl -noshell -pa test \
+ -eval 'eunit:test({dir, "test"}, [verbose]).' \
+ -s init stop
+clean:
+ rm -f ebin/*.beam
+ rm -f test/*.beam
View
8 src/Makefile
@@ -1,8 +0,0 @@
-
-all:
- erl -make
-
-clean:
- -rm ../ebin/*
- -rm *~
-
View
8 test/Emakefile
@@ -0,0 +1,8 @@
+{['../src/*'],
+ [debug_info, {d, 'TEST'}]}.
+
+{['*'],
+ [debug_info, {d, 'TEST'}]}.
+
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.