From a51ea6ec73f69c59ae13e228f27b006ad6efc54b Mon Sep 17 00:00:00 2001 From: Tianle Xu Date: Mon, 28 Oct 2024 21:54:10 +0800 Subject: [PATCH] Allow tests to run on loong64 Signed-off-by: Tianle Xu --- pkg/plugin/plugin_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/plugin/plugin_test.go b/pkg/plugin/plugin_test.go index 725052346..b81797390 100644 --- a/pkg/plugin/plugin_test.go +++ b/pkg/plugin/plugin_test.go @@ -92,6 +92,7 @@ func TestPlatformPrepareCommand(t *testing.T) { {OperatingSystem: "linux", Architecture: "ppc64le", Command: "echo -n linux-ppc64le"}, {OperatingSystem: "linux", Architecture: "s390x", Command: "echo -n linux-s390x"}, {OperatingSystem: "linux", Architecture: "riscv64", Command: "echo -n linux-riscv64"}, + {OperatingSystem: "linux", Architecture: "loong64", Command: "echo -n linux-loong64"}, {OperatingSystem: "windows", Architecture: "amd64", Command: "echo -n win-64"}, }, }, @@ -111,6 +112,8 @@ func TestPlatformPrepareCommand(t *testing.T) { osStrCmp = "linux-s390x" } else if os == "linux" && arch == "riscv64" { osStrCmp = "linux-riscv64" + } else if os == "linux" && arch == "loong64" { + osStrCmp = "linux-loong64" } else if os == "windows" && arch == "amd64" { osStrCmp = "win-64" } else {