Compare commits

..

6 Commits

Author SHA1 Message Date
源文雨
737bec0d2e feat(compile): add GOARM=7 to armv7a 2024-04-17 18:20:40 +09:00
源文雨
0b76fa08ee chore(test): add more log 2024-04-17 18:15:45 +09:00
源文雨
4f1f4f36ef chore(test): add more log 2024-04-17 18:11:54 +09:00
源文雨
a485af5591 fix(test): restore bad dns 2024-04-17 18:09:07 +09:00
源文雨
bf33a3b8ec chore(test): add more log 2024-04-17 18:06:38 +09:00
源文雨
333455ae73 feat: add more arch 2024-04-17 18:01:32 +09:00
3 changed files with 14 additions and 2 deletions

View File

@ -21,7 +21,7 @@ TEST_EXPECTED := '{"code":200,'
all:
@BUILD_PATH=$(BUILD_PATH)/aarch64 TARGET_ARCH=aarch64 GOARCH=arm64 $(MAKE) -e shared
@BUILD_PATH=$(BUILD_PATH)/armv7a TARGET_ARCH=armv7a GOARCH=arm TARGET_SDK=androideabi23 $(MAKE) -e shared
@BUILD_PATH=$(BUILD_PATH)/armv7a TARGET_ARCH=armv7a GOARCH=arm GOARM=7 TARGET_SDK=androideabi23 $(MAKE) -e shared
@BUILD_PATH=$(BUILD_PATH)/i686 TARGET_ARCH=i686 GOARCH=amd64 $(MAKE) -e shared
@BUILD_PATH=$(BUILD_PATH)/x86_64 TARGET_ARCH=x86_64 GOARCH=386 $(MAKE) -e shared
rm -rf $(BUILD_PATH)/*/*.h

View File

@ -42,6 +42,12 @@ func TestDNS(t *testing.T) {
}
func TestBadDNS(t *testing.T) {
dotv6serversbak := dotv6servers.m
dotv4serversbak := dotv4servers.m
defer func() {
dotv6servers.m = dotv6serversbak
dotv4servers.m = dotv4serversbak
}()
if canUseIPv6.Get() {
dotv6servers = dnsservers{
m: map[string][]*dnsstat{},

View File

@ -1,6 +1,7 @@
package main
import (
"encoding/base64"
"encoding/json"
"io"
"net/http"
@ -44,7 +45,12 @@ func TestRequest(t *testing.T) {
t.Fatal(err)
}
if c.C != http.StatusOK {
t.Fatal("status code", c.C)
s, err := base64.StdEncoding.DecodeString(c.D)
if err != nil {
t.Fatal("status code", c.C, "msg:", c.D)
} else {
t.Fatal("status code", c.C, "msg:", s)
}
}
if len(c.D) == 0 {
t.Fatal("empty data")