mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-07-16 10:14:33 -04:00
24 lines
364 B
Go
24 lines
364 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"testing"
|
||
|
|
||
|
"github.com/v2ray/v2ray-core/testing/unit"
|
||
|
)
|
||
|
|
||
|
func TestBuildMacOS(t *testing.T) {
|
||
|
assert := unit.Assert(t)
|
||
|
|
||
|
targetFile := os.ExpandEnv("$GOPATH/bin/v2ray-macos.zip")
|
||
|
os.Remove(targetFile)
|
||
|
|
||
|
*targetOS = "macos"
|
||
|
*targetArch = "amd64"
|
||
|
*archive = true
|
||
|
main()
|
||
|
|
||
|
_, err := os.Stat(targetFile)
|
||
|
assert.Error(err).IsNil()
|
||
|
}
|