From d59f5f86207c9a3501def2a9c6307cfb7188a6b5 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 21 Oct 2016 07:08:52 +0530 Subject: [PATCH] Add a test that contains only generated Vala files Demonstrates that the Vala detection is broken when all the files are generated. --- test cases/vala/8 generated sources/installed_files.txt | 1 + test cases/vala/8 generated sources/meson.build | 1 + test cases/vala/8 generated sources/onlygen/maingen.in | 3 +++ test cases/vala/8 generated sources/onlygen/meson.build | 7 +++++++ 4 files changed, 12 insertions(+) create mode 100644 test cases/vala/8 generated sources/onlygen/maingen.in create mode 100644 test cases/vala/8 generated sources/onlygen/meson.build diff --git a/test cases/vala/8 generated sources/installed_files.txt b/test cases/vala/8 generated sources/installed_files.txt index a4c37f6ed..e1e943246 100644 --- a/test cases/vala/8 generated sources/installed_files.txt +++ b/test cases/vala/8 generated sources/installed_files.txt @@ -1 +1,2 @@ usr/bin/generatedtest +usr/bin/onlygentest diff --git a/test cases/vala/8 generated sources/meson.build b/test cases/vala/8 generated sources/meson.build index 7271821da..6e03404b7 100644 --- a/test cases/vala/8 generated sources/meson.build +++ b/test cases/vala/8 generated sources/meson.build @@ -5,3 +5,4 @@ cd.set('x', 'y') subdir('src') subdir('tools') +subdir('onlygen') diff --git a/test cases/vala/8 generated sources/onlygen/maingen.in b/test cases/vala/8 generated sources/onlygen/maingen.in new file mode 100644 index 000000000..33c14ce1d --- /dev/null +++ b/test cases/vala/8 generated sources/onlygen/maingen.in @@ -0,0 +1,3 @@ +int main() { + return 0; +} diff --git a/test cases/vala/8 generated sources/onlygen/meson.build b/test cases/vala/8 generated sources/onlygen/meson.build new file mode 100644 index 000000000..f48e0b887 --- /dev/null +++ b/test cases/vala/8 generated sources/onlygen/meson.build @@ -0,0 +1,7 @@ +onlygen = generator(copy, + output : '@BASENAME@.vala', + arguments : ['@INPUT@', '@OUTPUT@']) + +executable('onlygentest', onlygen.process('maingen.in'), + install : true, + dependencies: [dependency('glib-2.0'), dependency('gobject-2.0')])