Add comprehensive test system for Go-to-Zig compiler
- Implement end-to-end test runner for compilation and behavior tests - Add test cases for basic print functionality - Refactor translator to use proper AST generation - Remove redundant programs directory in favor of tests
This commit is contained in:
12
Makefile
12
Makefile
@@ -1,5 +1,15 @@
|
||||
run:
|
||||
go run internal/main.go -o hello.zig programs/hello.go && zig run hello.zig
|
||||
|
||||
test:
|
||||
test: test-unit test-integration
|
||||
|
||||
test-unit:
|
||||
go test ./internal/zig
|
||||
|
||||
test-integration:
|
||||
go run ./cmd/testrunner
|
||||
|
||||
test-quick:
|
||||
go run ./cmd/testrunner
|
||||
|
||||
.PHONY: run test test-unit test-integration test-quick
|
||||
|
Reference in New Issue
Block a user