TestGoLibMath: mac only (temp)

This commit is contained in:
xushiwei
2024-06-15 18:08:08 +08:00
parent 71518b025d
commit 7f11651311

View File

@@ -19,6 +19,7 @@ package cl_test
import ( import (
"os" "os"
"path/filepath" "path/filepath"
"runtime"
"testing" "testing"
"github.com/goplus/llgo/cl/cltest" "github.com/goplus/llgo/cl/cltest"
@@ -68,10 +69,12 @@ func TestPython(t *testing.T) {
} }
func TestGoLibMath(t *testing.T) { func TestGoLibMath(t *testing.T) {
if runtime.GOOS == "darwin" { // TODO(xsw): support linux/windows
root, _ := filepath.Abs("..") root, _ := filepath.Abs("..")
os.Setenv("LLGOROOT", root) os.Setenv("LLGOROOT", root)
conf := build.NewDefaultConf(build.ModeInstall) conf := build.NewDefaultConf(build.ModeInstall)
build.Do([]string{"math"}, conf) build.Do([]string{"math"}, conf)
}
} }
func TestVar(t *testing.T) { func TestVar(t *testing.T) {