aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMartin Björklund <[email protected]>2020-11-26 09:46:04 +0100
committerLoïc Hoguin <[email protected]>2023-05-12 17:24:45 +0200
commitb9676cb3fd1f71fef34d5f151baba100d77072d4 (patch)
tree7042cfb3c7743f7e0525136f1786901b1550d7f0 /test
parent4cdab1076b9917ba431fcc1cf0a444e00407b056 (diff)
downloaderlang.mk-b9676cb3fd1f71fef34d5f151baba100d77072d4.tar.gz
erlang.mk-b9676cb3fd1f71fef34d5f151baba100d77072d4.tar.bz2
erlang.mk-b9676cb3fd1f71fef34d5f151baba100d77072d4.zip
Ignore files with '#' in their names, e.g. emacs lock files
Also remove usage of grep for ignoring files since find can do this directly.
Diffstat (limited to 'test')
-rw-r--r--test/core_makedep.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/core_makedep.mk b/test/core_makedep.mk
index 5a0b02c..f2ab860 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-special-files: 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/.#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-import: init
$i "Bootstrap a new OTP library named $(APP)"