Skip to content

Commit a51ea6e

Browse files
authoredOct 28, 2024··
Allow tests to run on loong64
Signed-off-by: Tianle Xu <xtl@xtlsoft.top>
1 parent 717529a commit a51ea6e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎pkg/plugin/plugin_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ func TestPlatformPrepareCommand(t *testing.T) {
9292
{OperatingSystem: "linux", Architecture: "ppc64le", Command: "echo -n linux-ppc64le"},
9393
{OperatingSystem: "linux", Architecture: "s390x", Command: "echo -n linux-s390x"},
9494
{OperatingSystem: "linux", Architecture: "riscv64", Command: "echo -n linux-riscv64"},
95+
{OperatingSystem: "linux", Architecture: "loong64", Command: "echo -n linux-loong64"},
9596
{OperatingSystem: "windows", Architecture: "amd64", Command: "echo -n win-64"},
9697
},
9798
},
@@ -111,6 +112,8 @@ func TestPlatformPrepareCommand(t *testing.T) {
111112
osStrCmp = "linux-s390x"
112113
} else if os == "linux" && arch == "riscv64" {
113114
osStrCmp = "linux-riscv64"
115+
} else if os == "linux" && arch == "loong64" {
116+
osStrCmp = "linux-loong64"
114117
} else if os == "windows" && arch == "amd64" {
115118
osStrCmp = "win-64"
116119
} else {

0 commit comments

Comments
 (0)
Please sign in to comment.