fix llgo test unit test

This commit is contained in:
Li Jie
2025-04-03 16:20:09 +08:00
parent 8c5f915569
commit c8d791f206
9 changed files with 6 additions and 7 deletions

View File

@@ -139,8 +139,6 @@ jobs:
- name: run llgo test
run: |
llgo test ./...
cd _demo
llgo test -v ./runtest
hello:
continue-on-error: true

View File

@@ -1,8 +1,8 @@
package main
import (
"github.com/goplus/llgo/_demo/runtest/bar"
"github.com/goplus/llgo/_demo/runtest/foo"
"github.com/goplus/llgo/cl/_testgo/runtest/bar"
"github.com/goplus/llgo/cl/_testgo/runtest/foo"
)
func Zoo() int {

View File

@@ -0,0 +1 @@
;

View File

@@ -57,10 +57,10 @@ func TestRun(t *testing.T) {
mockRun([]string{"-v", "../../cl/_testgo/print"}, &Config{Mode: ModeRun})
}
func _TestTest(t *testing.T) {
mockRun([]string{"-v", "../../_demo/runtest"}, &Config{Mode: ModeTest})
func TestTest(t *testing.T) {
mockRun([]string{"-v", "../../cl/_testgo/runtest"}, &Config{Mode: ModeTest})
}
func TestCmpTest(t *testing.T) {
mockRun([]string{"-v", "../../_demo/runtest"}, &Config{Mode: ModeCmpTest})
mockRun([]string{"-v", "../../cl/_testgo/runtest"}, &Config{Mode: ModeCmpTest})
}