mirror of https://github.com/v2ray/v2ray-core
relocate sample configs
parent
5cf36c4520
commit
1e9f4a1a08
|
@ -18,7 +18,7 @@ func TestClientSampleConfig(t *testing.T) {
|
|||
assert := assert.On(t)
|
||||
|
||||
GOPATH := os.Getenv("GOPATH")
|
||||
baseDir := filepath.Join(GOPATH, "src", "github.com", "v2ray", "v2ray-core", "release", "config")
|
||||
baseDir := filepath.Join(GOPATH, "src", "github.com", "v2ray", "v2ray-core", "tools", "release", "config")
|
||||
|
||||
pointConfig, err := LoadConfig(filepath.Join(baseDir, "vpoint_socks_vmess.json"))
|
||||
assert.Error(err).IsNil()
|
||||
|
@ -38,7 +38,7 @@ func TestServerSampleConfig(t *testing.T) {
|
|||
assert := assert.On(t)
|
||||
|
||||
GOPATH := os.Getenv("GOPATH")
|
||||
baseDir := filepath.Join(GOPATH, "src", "github.com", "v2ray", "v2ray-core", "release", "config")
|
||||
baseDir := filepath.Join(GOPATH, "src", "github.com", "v2ray", "v2ray-core", "tools", "release", "config")
|
||||
|
||||
pointConfig, err := LoadConfig(filepath.Join(baseDir, "vpoint_vmess_freedom.json"))
|
||||
assert.Error(err).IsNil()
|
||||
|
|
|
@ -25,7 +25,7 @@ func copyConfigFile(src, dest string, goOS GoOS, format bool) error {
|
|||
|
||||
func copyConfigFiles(dir string, goOS GoOS) error {
|
||||
GOPATH := os.Getenv("GOPATH")
|
||||
srcDir := filepath.Join(GOPATH, "src", "github.com", "v2ray", "v2ray-core", "release", "config")
|
||||
srcDir := filepath.Join(GOPATH, "src", "github.com", "v2ray", "v2ray-core", "tools", "release", "config")
|
||||
src := filepath.Join(srcDir, "vpoint_socks_vmess.json")
|
||||
dest := filepath.Join(dir, "vpoint_socks_vmess.json")
|
||||
if goOS == Windows || goOS == MacOS {
|
||||
|
|
|
@ -28,7 +28,7 @@ func TestBuildAndRun(t *testing.T) {
|
|||
|
||||
outBuffer := bytes.NewBuffer(make([]byte, 0, 1024))
|
||||
errBuffer := bytes.NewBuffer(make([]byte, 0, 1024))
|
||||
configFile := filepath.Join(gopath, "src", "github.com", "v2ray", "v2ray-core", "release", "config", "vpoint_socks_vmess.json")
|
||||
configFile := filepath.Join(gopath, "src", "github.com", "v2ray", "v2ray-core", "tools", "release", "config", "vpoint_socks_vmess.json")
|
||||
cmd := exec.Command(target, "--config="+configFile)
|
||||
cmd.Stdout = outBuffer
|
||||
cmd.Stderr = errBuffer
|
||||
|
|
Loading…
Reference in New Issue