diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-04-19 15:38:12 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-04-19 15:38:12 -0400 |
| commit | d12f1f5b4954d893111c05420060354537a1485c (patch) | |
| tree | 1026150a776607a5aae06273b3c3fa37ec47831f /src/codegen.cpp | |
| parent | 9b7f438882b4f283d252d8ca364607fae385cc1a (diff) | |
| download | zig-d12f1f5b4954d893111c05420060354537a1485c.tar.gz zig-d12f1f5b4954d893111c05420060354537a1485c.zip | |
test framework supports name prefix and filter argument
rename self hosted tests to behavior tests
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index 3061c82766..fc57b49772 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -147,6 +147,14 @@ void codegen_set_omit_zigrt(CodeGen *g, bool omit_zigrt) { g->omit_zigrt = omit_zigrt; } +void codegen_set_test_filter(CodeGen *g, Buf *filter) { + g->test_filter = filter; +} + +void codegen_set_test_name_prefix(CodeGen *g, Buf *prefix) { + g->test_name_prefix = prefix; +} + void codegen_set_is_test(CodeGen *g, bool is_test_build) { g->is_test_build = is_test_build; } |
