summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-27 22:40:18 +0800
committerruki <[email protected]>2021-10-27 22:40:18 +0800
commit019744ba3a592cb0b0a89d275f96ed665531253f (patch)
treece42dac37c720a1de13969212bfd0ccc172e068e
parent71217ef2ce95a70aad0fd1cad05eb462b4612a5b (diff)
add nimble test
-rw-r--r--tests/projects/nim/native_package/src/main.nim (renamed from tests/projects/nim/console_with_packages/src/main.nim)0
-rw-r--r--tests/projects/nim/native_package/xmake.lua (renamed from tests/projects/nim/console_with_packages/xmake.lua)0
-rw-r--r--tests/projects/nim/nimble_package/src/main.nim3
-rw-r--r--tests/projects/nim/nimble_package/xmake.lua8
4 files changed, 11 insertions, 0 deletions
diff --git a/tests/projects/nim/console_with_packages/src/main.nim b/tests/projects/nim/native_package/src/main.nim
index a3368303a..a3368303a 100644
--- a/tests/projects/nim/console_with_packages/src/main.nim
+++ b/tests/projects/nim/native_package/src/main.nim
diff --git a/tests/projects/nim/console_with_packages/xmake.lua b/tests/projects/nim/native_package/xmake.lua
index 924ee9632..924ee9632 100644
--- a/tests/projects/nim/console_with_packages/xmake.lua
+++ b/tests/projects/nim/native_package/xmake.lua
diff --git a/tests/projects/nim/nimble_package/src/main.nim b/tests/projects/nim/nimble_package/src/main.nim
new file mode 100644
index 000000000..b78aa2495
--- /dev/null
+++ b/tests/projects/nim/nimble_package/src/main.nim
@@ -0,0 +1,3 @@
+import zip/zlib
+
+echo zlibVersion()
diff --git a/tests/projects/nim/nimble_package/xmake.lua b/tests/projects/nim/nimble_package/xmake.lua
new file mode 100644
index 000000000..af3e0f0f5
--- /dev/null
+++ b/tests/projects/nim/nimble_package/xmake.lua
@@ -0,0 +1,8 @@
+add_rules("mode.debug", "mode.release")
+
+add_requires("nimble::zip")
+
+target("test")
+ set_kind("binary")
+ add_files("src/main.nim")
+ add_packages("nimble::zip")