TestGoLibMath: mac only (temp)
This commit is contained in:
@@ -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,11 +69,13 @@ 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) {
|
||||||
testCompile(t, `package foo
|
testCompile(t, `package foo
|
||||||
|
|||||||
Reference in New Issue
Block a user