From e41c5a8f4439f3b183f64b06a9843de04301aa3c Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Fri, 25 Oct 2024 00:06:18 +0900 Subject: [PATCH] Units(Meson): add a case for extracting alias_target as a run target Signed-off-by: Masatake YAMATO --- Units/parser-meson.r/simple-meson.d/README | 1 - Units/parser-meson.r/simple-meson.d/expected.tags | 4 ++++ Units/parser-meson.r/simple-meson.d/input-6.meson | 13 +++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) delete mode 100644 Units/parser-meson.r/simple-meson.d/README create mode 100644 Units/parser-meson.r/simple-meson.d/input-6.meson diff --git a/Units/parser-meson.r/simple-meson.d/README b/Units/parser-meson.r/simple-meson.d/README deleted file mode 100644 index 0b0ecff4ed..0000000000 --- a/Units/parser-meson.r/simple-meson.d/README +++ /dev/null @@ -1 +0,0 @@ -* alias_target is not tested. diff --git a/Units/parser-meson.r/simple-meson.d/expected.tags b/Units/parser-meson.r/simple-meson.d/expected.tags index b6f13366e0..533a615a5b 100644 --- a/Units/parser-meson.r/simple-meson.d/expected.tags +++ b/Units/parser-meson.r/simple-meson.d/expected.tags @@ -31,3 +31,7 @@ bench-message input-5.meson /^bench_message = executable('bench-message', source suites input-5.meson /^suites = [$/;" variable Connection input-5.meson /^ benchmark('Connection', bench_connect, timeout: 60, kwargs: suite)$/;" benchmark Message passing input-5.meson /^ benchmark('Message passing', bench_message, timeout: 120, kwargs: suite)$/;" benchmark +gi_docgen input-6.meson /^gi_docgen = find_program('gi-docgen')$/;" variable +gck input-6.meson /^subdir('gck')$/;" subdir +gcr input-6.meson /^subdir('gcr')$/;" subdir +docs input-6.meson /^alias_target('docs',$/;" run diff --git a/Units/parser-meson.r/simple-meson.d/input-6.meson b/Units/parser-meson.r/simple-meson.d/input-6.meson new file mode 100644 index 0000000000..16e967e21e --- /dev/null +++ b/Units/parser-meson.r/simple-meson.d/input-6.meson @@ -0,0 +1,13 @@ +# -*- Meson -*- +# Taken from docs/meson.build of gcr +# +gi_docgen = find_program('gi-docgen') + +subdir('gck') +subdir('gcr') + +# Create a pseudo target that build all docs at once +alias_target('docs', + gck_docs, + gcr_docs, +)