From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- meson/test cases/d/1 simple/app.d | 8 ++++++++ meson/test cases/d/1 simple/meson.build | 4 ++++ meson/test cases/d/1 simple/test.json | 6 ++++++ meson/test cases/d/1 simple/utils.d | 8 ++++++++ 4 files changed, 26 insertions(+) create mode 100644 meson/test cases/d/1 simple/app.d create mode 100644 meson/test cases/d/1 simple/meson.build create mode 100644 meson/test cases/d/1 simple/test.json create mode 100644 meson/test cases/d/1 simple/utils.d (limited to 'meson/test cases/d/1 simple') diff --git a/meson/test cases/d/1 simple/app.d b/meson/test cases/d/1 simple/app.d new file mode 100644 index 000000000..0be1d2cc7 --- /dev/null +++ b/meson/test cases/d/1 simple/app.d @@ -0,0 +1,8 @@ + +import std.stdio; +import utils; + +void main () +{ + printGreeting ("a Meson D test"); +} diff --git a/meson/test cases/d/1 simple/meson.build b/meson/test cases/d/1 simple/meson.build new file mode 100644 index 000000000..a10b67b10 --- /dev/null +++ b/meson/test cases/d/1 simple/meson.build @@ -0,0 +1,4 @@ +project('D Simple Test', 'd') + +e = executable('dsimpleapp', ['app.d', 'utils.d'], install : true) +test('apptest', e) diff --git a/meson/test cases/d/1 simple/test.json b/meson/test cases/d/1 simple/test.json new file mode 100644 index 000000000..62f907a4c --- /dev/null +++ b/meson/test cases/d/1 simple/test.json @@ -0,0 +1,6 @@ +{ + "installed": [ + {"type": "exe", "file": "usr/bin/dsimpleapp"}, + {"type": "pdb", "file": "usr/bin/dsimpleapp", "language": "d"} + ] +} diff --git a/meson/test cases/d/1 simple/utils.d b/meson/test cases/d/1 simple/utils.d new file mode 100644 index 000000000..8645548c5 --- /dev/null +++ b/meson/test cases/d/1 simple/utils.d @@ -0,0 +1,8 @@ + +import std.stdio; +import std.string : format; + +void printGreeting (string name) +{ + writeln ("Hello, I am %s.".format (name)); +} -- cgit 1.2.3-korg