mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
Test case for macos building
This commit is contained in:
parent
0a8e283e55
commit
602afca3e3
23
tools/build/build_test.go
Normal file
23
tools/build/build_test.go
Normal file
@ -0,0 +1,23 @@
|
||||
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()
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user