aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/core_makedep.mk20
-rw-r--r--test/core_query.mk2
2 files changed, 21 insertions, 1 deletions
diff --git a/test/core_makedep.mk b/test/core_makedep.mk
index f2ab860..077df6b 100644
--- a/test/core_makedep.mk
+++ b/test/core_makedep.mk
@@ -25,6 +25,26 @@ core-makedep-behavior: init
$t test -f $(APP)/ebin/boy.beam
$t test -f $(APP)/ebin/human.beam
+core-makedep-ignore-filenames-with-spaces: 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
+ $t mkdir $(APP)/src/core
+
+ $i "Generate related .erl files"
+ $t printf "%s\n" "-module(human)." "-export([live/0])." "live() -> ok." > $(APP)/src/core/human.erl
+ $t printf "%s\n" "-module(boy)." "-import(human,[live/0])." > $(APP)/src/boy.erl
+ $t printf "%s\n" "-module(boy)." "-import(human,[live/0])." > $(APP)/src/my\ boy.erl
+ $t $(MAKE) -C $(APP) $v
+
+ $i "Check that all compiled files exist"
+ $t test -f $(APP)/$(APP).d
+ $t test -f $(APP)/ebin/$(APP).app
+ $t test -f $(APP)/ebin/boy.beam
+ $t test -f $(APP)/ebin/human.beam
+
core-makedep-ignore-special-files: init
$i "Bootstrap a new OTP library named $(APP)"
diff --git a/test/core_query.mk b/test/core_query.mk
index 9f348a1..85e863f 100644
--- a/test/core_query.mk
+++ b/test/core_query.mk
@@ -154,7 +154,7 @@ endif
"farwest: cowlib git https://github.com/ninenines/cowlib master" \
"farwest: cowboy git https://github.com/ninenines/cowboy master" \
"farwest: gun git https://github.com/ninenines/gun master" \
- "gun: cowlib git https://github.com/ninenines/cowlib 2.12.1" \
+ "gun: cowlib git https://github.com/ninenines/cowlib master" \
> $(APP)/expected-deps.txt
$t cmp $(APP)/expected-deps.txt $(APP)/.erlang.mk/query-deps.log