Allow tests to run on loong64

Signed-off-by: Tianle Xu <xtl@xtlsoft.top>
pull/13412/head
Tianle Xu 1 week ago committed by GitHub
parent 717529a7e5
commit a51ea6ec73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 {

Loading…
Cancel
Save