|
@@ -71,7 +71,7 @@ eunit-apps-include-lib: init
|
|
|
$t $(MAKE) -C $(APP) $v
|
|
|
|
|
|
$i "Run eunit"
|
|
|
- $t $(MAKE) -C $(APP) $v
|
|
|
+ $t $(MAKE) -C $(APP) eunit $v
|
|
|
|
|
|
$i "Distclean the application"
|
|
|
$t $(MAKE) -C $(APP) distclean $v
|
|
@@ -82,6 +82,25 @@ eunit-apps-include-lib: init
|
|
|
$i "Distclean the application"
|
|
|
$t $(MAKE) -C $(APP) distclean $v
|
|
|
|
|
|
+eunit-apps-include-lib-deps: init
|
|
|
+
|
|
|
+ $i "Bootstrap a new OTP library named $(APP)"
|
|
|
+ $t mkdir $(APP)/
|
|
|
+ $t cp ../erlang.mk $(APP)/
|
|
|
+ $t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v
|
|
|
+
|
|
|
+ $i "Create new library the_app"
|
|
|
+ $t $(MAKE) -C $(APP) new-lib in=the_app $v
|
|
|
+
|
|
|
+ $i "Add Cowlib to the list of dependencies of the_app"
|
|
|
+ $t perl -ni.bak -e 'print;if ($$.==1) {print "DEPS = cowlib\ndep_cowlib_commit = master\n"}' $(APP)/apps/the_app/Makefile
|
|
|
+
|
|
|
+ $i "Generate .erl file that uses include_lib()"
|
|
|
+ $t echo '-module(the). -include_lib("cowlib/include/cow_parse.hrl"). -export([thing/0]). thing() -> true.' > $(APP)/apps/the_app/src/the.erl
|
|
|
+
|
|
|
+ $i "Run eunit"
|
|
|
+ $t $(MAKE) -C $(APP) eunit $v
|
|
|
+
|
|
|
eunit-apps-one-app-tested: init
|
|
|
|
|
|
$i "Bootstrap a new OTP library named $(APP)"
|