TestGoLibMath: set LLGOROOT

This commit is contained in:
xushiwei
2024-06-15 18:02:51 +08:00
parent 287722b1d2
commit 71518b025d

View File

@@ -17,6 +17,8 @@
package cl_test
import (
"os"
"path/filepath"
"testing"
"github.com/goplus/llgo/cl/cltest"
@@ -66,6 +68,8 @@ func TestPython(t *testing.T) {
}
func TestGoLibMath(t *testing.T) {
root, _ := filepath.Abs("..")
os.Setenv("LLGOROOT", root)
conf := build.NewDefaultConf(build.ModeInstall)
build.Do([]string{"math"}, conf)
}