diff options
| author | pdagobert <[email protected]> | 2023-03-18 17:39:10 +0100 |
|---|---|---|
| committer | pdagobert <[email protected]> | 2023-03-26 00:17:03 +0100 |
| commit | 6416ec1cecf3d05878b42bdf02588ecdd31ad12f (patch) | |
| tree | bbe0bcb223d652a76fa41f4c730ddf0ecbb5c2fa | |
| parent | 0aa09bf07fe82468a08b5152f2001f5c185a6294 (diff) | |
Add test for dub package
| -rw-r--r-- | tests/projects/dlang/dub_package/src/main.d | 7 | ||||
| -rw-r--r-- | tests/projects/dlang/dub_package/test.lua | 6 | ||||
| -rw-r--r-- | tests/projects/dlang/dub_package/xmake.lua | 8 |
3 files changed, 21 insertions, 0 deletions
diff --git a/tests/projects/dlang/dub_package/src/main.d b/tests/projects/dlang/dub_package/src/main.d new file mode 100644 index 000000000..3a9f9db79 --- /dev/null +++ b/tests/projects/dlang/dub_package/src/main.d @@ -0,0 +1,7 @@ +import util.log; + +void main() +{ + log = Log(stderrLogger, stdoutLogger(LogLevel.info), fileLogger("log")); + log.warn("test"); +}
\ No newline at end of file diff --git a/tests/projects/dlang/dub_package/test.lua b/tests/projects/dlang/dub_package/test.lua new file mode 100644 index 000000000..b76241be2 --- /dev/null +++ b/tests/projects/dlang/dub_package/test.lua @@ -0,0 +1,6 @@ +-- main entry +function main(t) + + -- build project + t:build() +end diff --git a/tests/projects/dlang/dub_package/xmake.lua b/tests/projects/dlang/dub_package/xmake.lua new file mode 100644 index 000000000..c9b82dffb --- /dev/null +++ b/tests/projects/dlang/dub_package/xmake.lua @@ -0,0 +1,8 @@ +add_rules("mode.debug", "mode.release") + +add_requires("dub::log 0.4.3") + +target("test") + set_kind("binary") + add_files("src/main.d") + add_packages("dub::log")
\ No newline at end of file |
