summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-17 23:23:00 +0800
committerruki <[email protected]>2026-03-17 23:23:00 +0800
commit800d9e9fb6891dcc861c24f17340f5a88209e2ea (patch)
treea65d36d58ef7bf6b1a2d8a572d38b2780038536d
parent9c3345d7357d1ede85b9f24d6721986315e28de6 (diff)
improve check test
-rw-r--r--tests/projects/csharp/console/test.lua8
-rw-r--r--tests/projects/csharp/console_with_runtime_json/test.lua8
-rw-r--r--tests/projects/csharp/exe_with_library/test.lua8
-rw-r--r--tests/projects/csharp/exe_with_package/test.lua8
-rw-r--r--tests/projects/csharp/multiple_library/test.lua8
-rw-r--r--tests/projects/csharp/web_project/test.lua8
6 files changed, 24 insertions, 24 deletions
diff --git a/tests/projects/csharp/console/test.lua b/tests/projects/csharp/console/test.lua
index 5ab8adc69..e67becab3 100644
--- a/tests/projects/csharp/console/test.lua
+++ b/tests/projects/csharp/console/test.lua
@@ -1,10 +1,10 @@
-import("lib.detect.find_tool")
+import("detect.sdks.find_dotnet")
function test_build(t)
- local dotnet = find_tool("dotnet")
- if dotnet then
+ local dotnet = find_dotnet()
+ if dotnet and dotnet.sdkver then
t:build()
else
- return t:skip("dotnet not found")
+ return t:skip("dotnet sdk not found")
end
end
diff --git a/tests/projects/csharp/console_with_runtime_json/test.lua b/tests/projects/csharp/console_with_runtime_json/test.lua
index 5ab8adc69..e67becab3 100644
--- a/tests/projects/csharp/console_with_runtime_json/test.lua
+++ b/tests/projects/csharp/console_with_runtime_json/test.lua
@@ -1,10 +1,10 @@
-import("lib.detect.find_tool")
+import("detect.sdks.find_dotnet")
function test_build(t)
- local dotnet = find_tool("dotnet")
- if dotnet then
+ local dotnet = find_dotnet()
+ if dotnet and dotnet.sdkver then
t:build()
else
- return t:skip("dotnet not found")
+ return t:skip("dotnet sdk not found")
end
end
diff --git a/tests/projects/csharp/exe_with_library/test.lua b/tests/projects/csharp/exe_with_library/test.lua
index 5ab8adc69..e67becab3 100644
--- a/tests/projects/csharp/exe_with_library/test.lua
+++ b/tests/projects/csharp/exe_with_library/test.lua
@@ -1,10 +1,10 @@
-import("lib.detect.find_tool")
+import("detect.sdks.find_dotnet")
function test_build(t)
- local dotnet = find_tool("dotnet")
- if dotnet then
+ local dotnet = find_dotnet()
+ if dotnet and dotnet.sdkver then
t:build()
else
- return t:skip("dotnet not found")
+ return t:skip("dotnet sdk not found")
end
end
diff --git a/tests/projects/csharp/exe_with_package/test.lua b/tests/projects/csharp/exe_with_package/test.lua
index 5ab8adc69..e67becab3 100644
--- a/tests/projects/csharp/exe_with_package/test.lua
+++ b/tests/projects/csharp/exe_with_package/test.lua
@@ -1,10 +1,10 @@
-import("lib.detect.find_tool")
+import("detect.sdks.find_dotnet")
function test_build(t)
- local dotnet = find_tool("dotnet")
- if dotnet then
+ local dotnet = find_dotnet()
+ if dotnet and dotnet.sdkver then
t:build()
else
- return t:skip("dotnet not found")
+ return t:skip("dotnet sdk not found")
end
end
diff --git a/tests/projects/csharp/multiple_library/test.lua b/tests/projects/csharp/multiple_library/test.lua
index 5ab8adc69..e67becab3 100644
--- a/tests/projects/csharp/multiple_library/test.lua
+++ b/tests/projects/csharp/multiple_library/test.lua
@@ -1,10 +1,10 @@
-import("lib.detect.find_tool")
+import("detect.sdks.find_dotnet")
function test_build(t)
- local dotnet = find_tool("dotnet")
- if dotnet then
+ local dotnet = find_dotnet()
+ if dotnet and dotnet.sdkver then
t:build()
else
- return t:skip("dotnet not found")
+ return t:skip("dotnet sdk not found")
end
end
diff --git a/tests/projects/csharp/web_project/test.lua b/tests/projects/csharp/web_project/test.lua
index 5ab8adc69..e67becab3 100644
--- a/tests/projects/csharp/web_project/test.lua
+++ b/tests/projects/csharp/web_project/test.lua
@@ -1,10 +1,10 @@
-import("lib.detect.find_tool")
+import("detect.sdks.find_dotnet")
function test_build(t)
- local dotnet = find_tool("dotnet")
- if dotnet then
+ local dotnet = find_dotnet()
+ if dotnet and dotnet.sdkver then
t:build()
else
- return t:skip("dotnet not found")
+ return t:skip("dotnet sdk not found")
end
end