This commit is contained in:
spiritysdx
2024-06-25 20:02:29 +08:00
parent 0604528cf1
commit 8f24432016
4 changed files with 10 additions and 8 deletions

View File

@@ -4,6 +4,6 @@ import (
"github.com/oneclickvirt/backtrace/bk"
)
func BcakTrace() {
func BackTrace() {
backtrace.BackTrace()
}

View File

@@ -16,5 +16,5 @@ import (
//}
func TestBackTrace(t *testing.T) {
BcakTrace()
BackTrace()
}

View File

@@ -3,7 +3,7 @@ package main
import (
"flag"
"fmt"
backtrace "github.com/oneclickvirt/backtrace/bk"
"github.com/oneclickvirt/ecs/backtrace"
"github.com/oneclickvirt/ecs/basic"
"github.com/oneclickvirt/ecs/commediatest"
"github.com/oneclickvirt/ecs/cputest"
@@ -34,7 +34,7 @@ func main() {
memoryTestMethod string
diskTestMethod, diskTestPath string
diskMultiCheck bool
width = 80
width = 84
)
flag.BoolVar(&showVersion, "v", false, "Show version information")
flag.StringVar(&language, "l", "zh", "Specify language (supported: en, zh)")

View File

@@ -1,8 +1,10 @@
package unlocktest
import (
"fmt"
"github.com/oneclickvirt/UnlockTests/utils"
"github.com/oneclickvirt/UnlockTests/uts"
"github.com/oneclickvirt/defaultset"
)
func MediaTest(language string) {
@@ -13,16 +15,16 @@ func MediaTest(language string) {
return
}
//if language == "zh" {
// fmt.Println("测试时间: ", Yellow(time.Now().Format("2006-01-02 15:04:05")))
// fmt.Println("测试时间: ", defaultset.Yellow(time.Now().Format("2006-01-02 15:04:05")))
//} else {
// fmt.Println("Test time: ", Yellow(time.Now().Format("2006-01-02 15:04:05")))
// fmt.Println("Test time: ", defaultset.Yellow(time.Now().Format("2006-01-02 15:04:05")))
//}
if uts.IPV4 {
//fmt.Println(Blue("IPV4:"))
fmt.Println(defaultset.Blue("IPV4:"))
uts.RunTests(utils.Ipv4HttpClient, "ipv4", language)
}
if uts.IPV6 {
//fmt.Println(Blue("IPV6:"))
fmt.Println(defaultset.Blue("IPV6:"))
uts.RunTests(utils.Ipv6HttpClient, "ipv6", language)
}
}