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:
2025-06-05 22:35:18 -05:00
parent d5f346cf8b
commit bea04d6810
10 changed files with 370 additions and 37 deletions

View File

@@ -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