Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 17 additions & 36 deletions cl/compile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,52 +65,33 @@ var embedTargetConfigs = []embedTargetConfig{
target: "esp32c3-basic",
ignoreByDir: map[string][]string{
"./_testgo": {
"./_testgo/abimethod", // llgo panic: unsatisfied import internal/runtime/sys
"./_testgo/cgobasic", // fast fail: build constraints exclude all Go files (cgo)
"./_testgo/cgocfiles", // fast fail: build constraints exclude all Go files (cgo)
"./_testgo/cgodefer", // fast fail: build constraints exclude all Go files (cgo)
"./_testgo/cgofull", // fast fail: build constraints exclude all Go files (cgo)
"./_testgo/cgomacro", // fast fail: build constraints exclude all Go files (cgo)
"./_testgo/cgopython", // fast fail: build constraints exclude all Go files (cgo)
"./_testgo/chan", // timeout: emulator did not auto-exit
"./_testgo/defer4", // unexpected output: got "fatal error", expected "recover: panic message"
"./_testgo/goexit", // llgo panic: unsatisfied import internal/runtime/sys
"./_testgo/indexerr", // unexpected output: len(dst)=12, len(src)=0 (got "fatal error")
"./_testgo/makeslice", // unexpected output: len(dst)=23, len(src)=0 (got "fatal error\\nmust error")
"./_testgo/reflect", // llgo panic: unsatisfied import internal/runtime/sys
"./_testgo/reflectconv", // llgo panic: unsatisfied import internal/sync
"./_testgo/reflectfn", // llgo panic: unsatisfied import internal/runtime/sys
"./_testgo/reflectmkfn", // llgo panic: unsatisfied import internal/runtime/sys
"./_testgo/rewrite", // llgo panic: unsatisfied import internal/sync
"./_testgo/select", // timeout: emulator did not auto-exit
"./_testgo/selects", // timeout: emulator did not auto-exit
"./_testgo/sigsegv", // unexpected output: got "0/main", expected recover nil-pointer message
"./_testgo/syncmap", // llgo panic: unsatisfied import internal/runtime/sys
"./_testgo/abimethod", // llgo panic: unsatisfied import internal/runtime/sys
"./_testgo/cgodefer", // fast fail: build constraints exclude all Go files (cgo)
"./_testgo/cgopython", // fast fail: build constraints exclude all Go files (cgo)
"./_testgo/defer4", // unexpected output: got "fatal error", expected "recover: panic message"
"./_testgo/indexerr", // unexpected output: len(dst)=12, len(src)=0 (got "fatal error")
"./_testgo/makeslice", // unexpected output: len(dst)=23, len(src)=0 (got "fatal error\\nmust error")
"./_testgo/select", // timeout: emulator did not auto-exit
"./_testgo/sigsegv", // unexpected output: got "0/main", expected recover nil-pointer message
},
"./_testlibc": {
"./_testlibc/argv", // timeout: emulator panic (Load access fault), no auto-exit
"./_testlibc/atomic", // link error: ld.lld: error: undefined symbol: __atomic_store
"./_testlibc/complex", // link error: ld.lld: error: undefined symbol: cabsf
"./_testlibc/demangle", // link error: ld.lld: error: unknown argument '-Wl,-search_paths_first'
"./_testlibc/once", // fast fail: build constraints exclude all Go files (pthread/sync)
"./_testlibc/setjmp", // link error: ld.lld: error: undefined symbol: stderr
"./_testlibc/sqlite", // link error: ld.lld: error: unable to find library -lsqlite3
},
"./_testrt": {
"./_testrt/asmfull", // compile/asm error: unrecognized instruction mnemonic
"./_testrt/fprintf", // link error: ld.lld: error: undefined symbol: __stderrp
"./_testrt/hello", // fast fail: build constraints exclude all Go files
"./_testrt/linkname", // unexpected output: line order mismatch ("hello" appears first)
"./_testrt/makemap", // link error: ld.lld: error: undefined symbol: __atomic_fetch_or_4
"./_testrt/strlen", // fast fail: build constraints exclude all Go files
"./_testrt/struct", // fast fail: build constraints exclude all Go files
"./_testrt/tpfunc", // unexpected output: type size mismatch (got 8 4 4, expected 16 8 8)
"./_testrt/typalias", // fast fail: build constraints exclude all Go files
"./_testrt/unreachable", // timeout: emulator panic (Instruction access fault), no auto-exit
},
"./_testdata": {
"./_testdata/debug", // llgo panic: unsatisfied import internal/runtime/sys
"./_testrt/asmfull", // compile/asm error: unrecognized instruction mnemonic
"./_testrt/fprintf", // link error: ld.lld: error: undefined symbol: __stderrp
"./_testrt/hello", // fast fail: build constraints exclude all Go files
"./_testrt/linkname", // unexpected output: line order mismatch ("hello" appears first)
"./_testrt/strlen", // fast fail: build constraints exclude all Go files
"./_testrt/struct", // fast fail: build constraints exclude all Go files
"./_testrt/tpfunc", // unexpected output: type size mismatch (got 8 4 4, expected 16 8 8)
"./_testrt/typalias", // fast fail: build constraints exclude all Go files
},
"./_testdata": {},
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Since the list of ignored tests for ./_testdata is now empty, this map entry can be removed for better readability. The test runner correctly handles a missing key by treating it as an empty list of ignored tests.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Now that all _testdata tests pass, you could remove this key from the map entirely instead of keeping an empty slice. That would make it immediately obvious there are no ignores for this directory, rather than looking like a placeholder. Totally optional though — the current form is valid Go.

},
},
{
Expand Down
Loading