File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,42 @@ cleanPackages() {
2424 assert_output --partial " cargo: not found"
2525}
2626
27+ @test " aarch64" {
28+ assert_equal " aarch64-alpine-linux-musl" " $( TARGETPLATFORM=linux/arm64 xx-cargo --print-target-triple) "
29+ }
30+
31+ @test " arm" {
32+ assert_equal " armv7-alpine-linux-musleabihf" " $( TARGETPLATFORM=linux/arm xx-cargo --print-target-triple) "
33+ }
34+
35+ @test " armv6" {
36+ assert_equal " armv6-alpine-linux-musleabihf" " $( TARGETPLATFORM=linux/arm/v6 xx-cargo --print-target-triple) "
37+ }
38+
39+ @test " armv5" {
40+ assert_equal " armv5-alpine-linux-musleabi" " $( TARGETPLATFORM=linux/arm/v5 xx-cargo --print-target-triple) "
41+ }
42+
43+ @test " amd64" {
44+ assert_equal " x86_64-alpine-linux-musl" " $( TARGETPLATFORM=linux/amd64 xx-cargo --print-target-triple) "
45+ }
46+
47+ @test " 386" {
48+ assert_equal " i586-alpine-linux-musl" " $( TARGETPLATFORM=linux/386 xx-cargo --print-target-triple) "
49+ }
50+
51+ @test " riscv64" {
52+ assert_equal " riscv64gc-alpine-linux-musl" " $( TARGETPLATFORM=linux/riscv64 xx-cargo --print-target-triple) "
53+ }
54+
55+ @test " s390x" {
56+ assert_equal " s390x-alpine-linux-musl" " $( TARGETPLATFORM=linux/s390x xx-cargo --print-target-triple) "
57+ }
58+
59+ @test " ppc64le" {
60+ assert_equal " powerpc64le-alpine-linux-musl" " $( TARGETPLATFORM=linux/ppc64le xx-cargo --print-target-triple) "
61+ }
62+
2763testHelloCargo () {
2864 rm -f " /.xx-cargo.$( xx-info arch) "
2965 run xxadd xx-c-essentials
You can’t perform that action at this time.
0 commit comments