From 3c5a1cc28b28bab2f714dd4ec163a6f2b1f61cae Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 21 Oct 2021 23:06:50 +0800 Subject: add more nim tests --- tests/projects/nim/console_with_c/src/main | Bin 92184 -> 0 bytes tests/projects/nim/console_with_packages/src/main.nim | 3 +++ tests/projects/nim/console_with_packages/xmake.lua | 8 ++++++++ 3 files changed, 11 insertions(+) delete mode 100755 tests/projects/nim/console_with_c/src/main create mode 100644 tests/projects/nim/console_with_packages/src/main.nim create mode 100644 tests/projects/nim/console_with_packages/xmake.lua diff --git a/tests/projects/nim/console_with_c/src/main b/tests/projects/nim/console_with_c/src/main deleted file mode 100755 index 84f0819ac..000000000 Binary files a/tests/projects/nim/console_with_c/src/main and /dev/null differ diff --git a/tests/projects/nim/console_with_packages/src/main.nim b/tests/projects/nim/console_with_packages/src/main.nim new file mode 100644 index 000000000..a3368303a --- /dev/null +++ b/tests/projects/nim/console_with_packages/src/main.nim @@ -0,0 +1,3 @@ +proc zlibVersion(): cstring {.cdecl, importc} + +echo zlibVersion() diff --git a/tests/projects/nim/console_with_packages/xmake.lua b/tests/projects/nim/console_with_packages/xmake.lua new file mode 100644 index 000000000..924ee9632 --- /dev/null +++ b/tests/projects/nim/console_with_packages/xmake.lua @@ -0,0 +1,8 @@ +add_rules("mode.debug", "mode.release") + +add_requires("zlib") + +target("test") + set_kind("binary") + add_files("src/main.nim") + add_packages("zlib") -- cgit v1.3.1