summaryrefslogtreecommitdiff
path: root/manual tests
diff options
context:
space:
mode:
authorAlexandreFoley <alexandre.foley@usherbrooke.ca>2016-10-19 17:10:00 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2016-10-20 00:10:00 +0300
commit263cb6a5f0dcbffdf25e159b3bfa07988838aae9 (patch)
treedf61ed2dccd681c7f593af38e325b6ff881ec4e5 /manual tests
parente9089101876e4a6ce9192199f9193720ef6bb816 (diff)
downloadmeson-263cb6a5f0dcbffdf25e159b3bfa07988838aae9.tar.gz
add support of mercurial repo for wrap,… (#937)
* add support for wrap of mercurial repo, and a test with a clone of the sample subproject used for the git test into a mercuriel repo. * Added myself to author list, and switched the URL of the sample subproject in the wrap file to one under the control of the project's maintainers.
Diffstat (limited to 'manual tests')
-rw-r--r--manual tests/10 hg wrap/meson.build10
-rw-r--r--manual tests/10 hg wrap/prog.c6
-rw-r--r--manual tests/10 hg wrap/subprojects/samplesubproject.wrap4
3 files changed, 20 insertions, 0 deletions
diff --git a/manual tests/10 hg wrap/meson.build b/manual tests/10 hg wrap/meson.build
new file mode 100644
index 000000000..c7ac004ca
--- /dev/null
+++ b/manual tests/10 hg wrap/meson.build
@@ -0,0 +1,10 @@
+project('Mercurial outcheckker', 'c')
+
+sp = subproject('samplesubproject')
+
+exe = executable('gitprog', 'prog.c',
+include_directories : sp.get_variable('subproj_inc'),
+link_with : sp.get_variable('subproj_lib'),
+)
+
+test('maintest', exe)
diff --git a/manual tests/10 hg wrap/prog.c b/manual tests/10 hg wrap/prog.c
new file mode 100644
index 000000000..df38000ec
--- /dev/null
+++ b/manual tests/10 hg wrap/prog.c
@@ -0,0 +1,6 @@
+#include"subproj.h"
+
+int main(int argc, char **argv) {
+ subproj_function();
+ return 0;
+}
diff --git a/manual tests/10 hg wrap/subprojects/samplesubproject.wrap b/manual tests/10 hg wrap/subprojects/samplesubproject.wrap
new file mode 100644
index 000000000..6d3b3f2d4
--- /dev/null
+++ b/manual tests/10 hg wrap/subprojects/samplesubproject.wrap
@@ -0,0 +1,4 @@
+[wrap-hg]
+directory=samplesubproject
+url=https://bitbucket.org/jpakkane/samplesubproject
+revision=tip