diff options
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-04-12 04:17:37 +0900 |
---|---|---|
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-04-12 04:17:37 +0900 |
commit | ec31b3738bd057cf58985870a100e8c1f485df22 (patch) | |
tree | eedb88f5b04917e0438f24b68adf1faad2b408d3 /testcase | |
parent | 5ff9b346796132178ac29b3b288915e77d3e3942 (diff) | |
download | android_build_kati-ec31b3738bd057cf58985870a100e8c1f485df22.tar.gz android_build_kati-ec31b3738bd057cf58985870a100e8c1f485df22.tar.bz2 android_build_kati-ec31b3738bd057cf58985870a100e8c1f485df22.zip |
Add a couple of tests
Diffstat (limited to 'testcase')
-rw-r--r-- | testcase/equal_and_semi_in_rule.mk | 7 | ||||
-rw-r--r-- | testcase/shell_var.mk | 14 |
2 files changed, 21 insertions, 0 deletions
diff --git a/testcase/equal_and_semi_in_rule.mk b/testcase/equal_and_semi_in_rule.mk new file mode 100644 index 0000000..4b70c1f --- /dev/null +++ b/testcase/equal_and_semi_in_rule.mk @@ -0,0 +1,7 @@ +test: foo bar + +foo: A=echo ; echo PASS +foo: + echo $(A) + +bar: ; echo PASS=PASS diff --git a/testcase/shell_var.mk b/testcase/shell_var.mk new file mode 100644 index 0000000..24f4f00 --- /dev/null +++ b/testcase/shell_var.mk @@ -0,0 +1,14 @@ +$(info $(SHELL)) + +SHELL:=/bin/echo + +$(info $(shell foo)) + +# TODO: Fix. +#echo=/bin/echo +#SHELL=$(echo) + +$(info $(shell bar)) + +test: + baz |