testing: Update CliTest Support.

And add tests for Cli preprocessing.

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-05-21 22:40:58 -04:00
parent b3ca30541a
commit d60465e669
6 changed files with 58 additions and 17 deletions
+15
View File
@@ -23,4 +23,19 @@ import Testing
@CliTest()
func simple_cli_test() -> [String] {
return ["p4ce", "--plain", "compile", "simple.p4", "-I", "TestData/Sources/"]
}
@CliTest()
func simple_cli_testa() -> [String] {
return ["p4ce", "--plain", "compile", "simple.p4", "-I", "TestData/Sources/"]
}
@CliTest()
func simple_cli_preprocessor_test() -> [String] {
return ["p4ce", "--plain", "preprocess", "simple.p4", "-I", "TestData/Sources/"]
}
@CliTest()
func simple_cli_preprocessor_test_file_not_found() -> [String] {
return ["p4ce", "--plain", "preprocess", "simple.p", "-I", "TestData/Sources/"]
}