diff options
Diffstat (limited to 'meson/test cases/d/1 simple')
-rw-r--r-- | meson/test cases/d/1 simple/app.d | 8 | ||||
-rw-r--r-- | meson/test cases/d/1 simple/meson.build | 4 | ||||
-rw-r--r-- | meson/test cases/d/1 simple/test.json | 6 | ||||
-rw-r--r-- | meson/test cases/d/1 simple/utils.d | 8 |
4 files changed, 26 insertions, 0 deletions
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)); +} |