aboutsummaryrefslogtreecommitdiff
path: root/test cases/common
diff options
context:
space:
mode:
authorOskar Sigvardsson <oskarsigvardsson@gmail.com>2020-10-04 13:00:30 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2020-10-04 14:52:28 +0200
commit962ea8053b2113c2ea8372ed27476bf73119bd65 (patch)
treec60c930272e2a2424d23e6fa97f0ac723a7d7a89 /test cases/common
parent1d443f1bc6ecd1bc793e7af15b69bc70830062db (diff)
downloadmeson-962ea8053b2113c2ea8372ed27476bf73119bd65.zip
meson-962ea8053b2113c2ea8372ed27476bf73119bd65.tar.gz
meson-962ea8053b2113c2ea8372ed27476bf73119bd65.tar.bz2
Added subdir files test
Diffstat (limited to 'test cases/common')
-rw-r--r--test cases/common/237 subdir files/meson.build3
-rw-r--r--test cases/common/237 subdir files/subdir/meson.build1
-rw-r--r--test cases/common/237 subdir files/subdir/prog.c1
3 files changed, 5 insertions, 0 deletions
diff --git a/test cases/common/237 subdir files/meson.build b/test cases/common/237 subdir files/meson.build
new file mode 100644
index 0000000..eb472f3
--- /dev/null
+++ b/test cases/common/237 subdir files/meson.build
@@ -0,0 +1,3 @@
+project('subdir files test', 'c')
+subdir('subdir')
+executable('prog', sources: subdir_sources)
diff --git a/test cases/common/237 subdir files/subdir/meson.build b/test cases/common/237 subdir files/subdir/meson.build
new file mode 100644
index 0000000..70909c7
--- /dev/null
+++ b/test cases/common/237 subdir files/subdir/meson.build
@@ -0,0 +1 @@
+subdir_sources = files(['prog.c'])
diff --git a/test cases/common/237 subdir files/subdir/prog.c b/test cases/common/237 subdir files/subdir/prog.c
new file mode 100644
index 0000000..78f2de1
--- /dev/null
+++ b/test cases/common/237 subdir files/subdir/prog.c
@@ -0,0 +1 @@
+int main(void) { return 0; }