mirror of
https://github.com/oneclickvirt/ecs.git
synced 2025-10-27 17:30:36 +08:00
update
This commit is contained in:
@@ -4,6 +4,6 @@ import (
|
|||||||
"github.com/oneclickvirt/backtrace/bk"
|
"github.com/oneclickvirt/backtrace/bk"
|
||||||
)
|
)
|
||||||
|
|
||||||
func BcakTrace() {
|
func BackTrace() {
|
||||||
backtrace.BackTrace()
|
backtrace.BackTrace()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,5 +16,5 @@ import (
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
func TestBackTrace(t *testing.T) {
|
func TestBackTrace(t *testing.T) {
|
||||||
BcakTrace()
|
BackTrace()
|
||||||
}
|
}
|
||||||
|
|||||||
4
main.go
4
main.go
@@ -3,7 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
backtrace "github.com/oneclickvirt/backtrace/bk"
|
"github.com/oneclickvirt/ecs/backtrace"
|
||||||
"github.com/oneclickvirt/ecs/basic"
|
"github.com/oneclickvirt/ecs/basic"
|
||||||
"github.com/oneclickvirt/ecs/commediatest"
|
"github.com/oneclickvirt/ecs/commediatest"
|
||||||
"github.com/oneclickvirt/ecs/cputest"
|
"github.com/oneclickvirt/ecs/cputest"
|
||||||
@@ -34,7 +34,7 @@ func main() {
|
|||||||
memoryTestMethod string
|
memoryTestMethod string
|
||||||
diskTestMethod, diskTestPath string
|
diskTestMethod, diskTestPath string
|
||||||
diskMultiCheck bool
|
diskMultiCheck bool
|
||||||
width = 80
|
width = 84
|
||||||
)
|
)
|
||||||
flag.BoolVar(&showVersion, "v", false, "Show version information")
|
flag.BoolVar(&showVersion, "v", false, "Show version information")
|
||||||
flag.StringVar(&language, "l", "zh", "Specify language (supported: en, zh)")
|
flag.StringVar(&language, "l", "zh", "Specify language (supported: en, zh)")
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
package unlocktest
|
package unlocktest
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"github.com/oneclickvirt/UnlockTests/utils"
|
"github.com/oneclickvirt/UnlockTests/utils"
|
||||||
"github.com/oneclickvirt/UnlockTests/uts"
|
"github.com/oneclickvirt/UnlockTests/uts"
|
||||||
|
"github.com/oneclickvirt/defaultset"
|
||||||
)
|
)
|
||||||
|
|
||||||
func MediaTest(language string) {
|
func MediaTest(language string) {
|
||||||
@@ -13,16 +15,16 @@ func MediaTest(language string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
//if language == "zh" {
|
//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 {
|
//} 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 {
|
if uts.IPV4 {
|
||||||
//fmt.Println(Blue("IPV4:"))
|
fmt.Println(defaultset.Blue("IPV4:"))
|
||||||
uts.RunTests(utils.Ipv4HttpClient, "ipv4", language)
|
uts.RunTests(utils.Ipv4HttpClient, "ipv4", language)
|
||||||
}
|
}
|
||||||
if uts.IPV6 {
|
if uts.IPV6 {
|
||||||
//fmt.Println(Blue("IPV6:"))
|
fmt.Println(defaultset.Blue("IPV6:"))
|
||||||
uts.RunTests(utils.Ipv6HttpClient, "ipv6", language)
|
uts.RunTests(utils.Ipv6HttpClient, "ipv6", language)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user