TestGoLibMath: set LLGOROOT
This commit is contained in:
@@ -17,6 +17,8 @@
|
|||||||
package cl_test
|
package cl_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"os"
|
||||||
|
"path/filepath"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/goplus/llgo/cl/cltest"
|
"github.com/goplus/llgo/cl/cltest"
|
||||||
@@ -66,6 +68,8 @@ func TestPython(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestGoLibMath(t *testing.T) {
|
func TestGoLibMath(t *testing.T) {
|
||||||
|
root, _ := filepath.Abs("..")
|
||||||
|
os.Setenv("LLGOROOT", root)
|
||||||
conf := build.NewDefaultConf(build.ModeInstall)
|
conf := build.NewDefaultConf(build.ModeInstall)
|
||||||
build.Do([]string{"math"}, conf)
|
build.Do([]string{"math"}, conf)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user