diff options
author | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/d/1 simple | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
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)); +} |