aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorKirill Isakov <bootctl@gmail.com>2022-04-20 11:04:40 +0600
committerEli Schwartz <eschwartz93@gmail.com>2022-04-20 20:53:19 -0400
commit33aa803521b2aa62688833842ea7eddb828e0e25 (patch)
tree499e6852660546f6b7ee5560c78934291536f5c9 /test cases
parent1c23281653dfd4ada517f0f0ceb2b7506003aa29 (diff)
downloadmeson-33aa803521b2aa62688833842ea7eddb828e0e25.zip
meson-33aa803521b2aa62688833842ea7eddb828e0e25.tar.gz
meson-33aa803521b2aa62688833842ea7eddb828e0e25.tar.bz2
vcs_tag: document the already supported file arg
Diffstat (limited to 'test cases')
-rw-r--r--test cases/common/66 vcstag/meson.build5
-rwxr-xr-xtest cases/common/66 vcstag/version.py3
2 files changed, 8 insertions, 0 deletions
diff --git a/test cases/common/66 vcstag/meson.build b/test cases/common/66 vcstag/meson.build
index 520f72a..9eba4c6 100644
--- a/test cases/common/66 vcstag/meson.build
+++ b/test cases/common/66 vcstag/meson.build
@@ -17,7 +17,12 @@ fallback : '1.0.0')
version_src_fallback = vcs_tag(input : 'vcstag.c.in',
output : 'vcstag-fallback.c')
+version_src_file = vcs_tag(input : 'vcstag.c.in',
+output : 'vcstag-file.c',
+command : files('version.py'))
+
executable('tagprog', 'tagprog.c', version_src)
executable('tagprog-custom', 'tagprog.c', version_src_custom)
executable('tagprog-fallback', 'tagprog.c', version_src_fallback)
executable('tagprog-notfound-fallback', 'tagprog.c', version_src_notfound_fallback)
+executable('tagprog-file', 'tagprog.c', version_src_file)
diff --git a/test cases/common/66 vcstag/version.py b/test cases/common/66 vcstag/version.py
new file mode 100755
index 0000000..0e0185e
--- /dev/null
+++ b/test cases/common/66 vcstag/version.py
@@ -0,0 +1,3 @@
+#!/usr/bin/env python3
+
+print('3.14')