aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-06-17 16:35:42 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-06-18 11:25:44 +0900
commitd44a74e9b80445def078a08ddccdaa2d64ffb374 (patch)
tree808bb4e02f63a86f8664373c83b832a9ff8b8e23
parent6cb1c25696baa9484023e561de2cbc2aec749e14 (diff)
downloadandroid_build_kati-d44a74e9b80445def078a08ddccdaa2d64ffb374.tar.gz
android_build_kati-d44a74e9b80445def078a08ddccdaa2d64ffb374.tar.bz2
android_build_kati-d44a74e9b80445def078a08ddccdaa2d64ffb374.zip
Add a few more testcases to XXX_with_comments.mk
-rw-r--r--testcase/define_with_comments.mk6
-rw-r--r--testcase/ifdef_with_comments.mk7
2 files changed, 13 insertions, 0 deletions
diff --git a/testcase/define_with_comments.mk b/testcase/define_with_comments.mk
index 4d68cf6..e2c6c16 100644
--- a/testcase/define_with_comments.mk
+++ b/testcase/define_with_comments.mk
@@ -16,6 +16,11 @@ endef baz
define endef_with_not_endef
endefPASS
endef
+define with_immediate_comment#comment
+PASS6
+endef
+# Note: for some reason, the following is an error.
+#endef#comment
test:
echo $(define_with_space)
@@ -24,3 +29,4 @@ test:
echo $(endef_with_not_comment)
echo $(endef_with_not_comment2)
echo $(endef_with_not_endef)
+ echo $(with_immediate_comment)
diff --git a/testcase/ifdef_with_comments.mk b/testcase/ifdef_with_comments.mk
index 1a4e128..774ed21 100644
--- a/testcase/ifdef_with_comments.mk
+++ b/testcase/ifdef_with_comments.mk
@@ -20,8 +20,15 @@ else # bar
PASS4:=PASS4
endif # foo
+ifeq ($(VAR),NOK)# hoge
+$(error fail)
+else# bar
+PASS5:=PASS5
+endif# foo
+
test:
echo $(PASS1)
echo $(PASS2)
echo $(PASS3)
echo $(PASS4)
+ echo $(PASS5)