test(e2e): bateria de testes ponta a ponta para os casos centrais da linguagem#170
Merged
Merged
Conversation
… smoke tests reais Estende tests/exe_smoke_test.rs com casos executados de ponta a ponta (fonte C -> lexer -> parser -> semantica -> IR -> codegen x86-64 -> gcc) para blocos/escopos locais, cadeia if/else if/else, while, for, do-while e recursao (fibonacci), complementando os smoke tests ja existentes de programa minimo, aritmetica e chamada de funcao. Resolve #161
4 tasks
HugoFreitass
approved these changes
Jun 24, 2026
HugoFreitass
left a comment
Collaborator
There was a problem hiding this comment.
PR revisado! Conflitos de merge resolvidos preservando todos os testes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumo
tests/exe_smoke_test.rscom smoke tests que executam o pipeline completo (lexer -> parser -> semântica -> IR -> codegen x86-64 ->gcc) e checam o exit code real do binário gerado para: blocos/escopos locais, cadeiaif/else if/else,while,for,do-whilee recursão (fibonacci)..cválidos/inválidos já presentes emtests/integration_test.rs.struct,typedef, ponteiros com atribuição eswitchnão foram incluídos nos smoke tests de execução real porque o lowering ainda não suporta esses casos (destino de atribuicao nao suportado no lowering/switch nao suportado no lowering); eles continuam cobertos apenas no nível semântico emtests/integration_test.rs.Closes #161
Test plan
cargo test --allpassacargo clippy --all -- -D warningssem avisoscargo fmt --checksem diffs