fix llgo test unit test
This commit is contained in:
2
.github/workflows/llgo.yml
vendored
2
.github/workflows/llgo.yml
vendored
@@ -139,8 +139,6 @@ jobs:
|
|||||||
- name: run llgo test
|
- name: run llgo test
|
||||||
run: |
|
run: |
|
||||||
llgo test ./...
|
llgo test ./...
|
||||||
cd _demo
|
|
||||||
llgo test -v ./runtest
|
|
||||||
|
|
||||||
hello:
|
hello:
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/goplus/llgo/_demo/runtest/bar"
|
"github.com/goplus/llgo/cl/_testgo/runtest/bar"
|
||||||
"github.com/goplus/llgo/_demo/runtest/foo"
|
"github.com/goplus/llgo/cl/_testgo/runtest/foo"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Zoo() int {
|
func Zoo() int {
|
||||||
1
cl/_testgo/runtest/out.ll
Normal file
1
cl/_testgo/runtest/out.ll
Normal file
@@ -0,0 +1 @@
|
|||||||
|
;
|
||||||
@@ -57,10 +57,10 @@ func TestRun(t *testing.T) {
|
|||||||
mockRun([]string{"-v", "../../cl/_testgo/print"}, &Config{Mode: ModeRun})
|
mockRun([]string{"-v", "../../cl/_testgo/print"}, &Config{Mode: ModeRun})
|
||||||
}
|
}
|
||||||
|
|
||||||
func _TestTest(t *testing.T) {
|
func TestTest(t *testing.T) {
|
||||||
mockRun([]string{"-v", "../../_demo/runtest"}, &Config{Mode: ModeTest})
|
mockRun([]string{"-v", "../../cl/_testgo/runtest"}, &Config{Mode: ModeTest})
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCmpTest(t *testing.T) {
|
func TestCmpTest(t *testing.T) {
|
||||||
mockRun([]string{"-v", "../../_demo/runtest"}, &Config{Mode: ModeCmpTest})
|
mockRun([]string{"-v", "../../cl/_testgo/runtest"}, &Config{Mode: ModeCmpTest})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user