Skip to content

Commit 1c4bddc

Browse files
committed
delete all the translate-c tests
the ziglang/translate-c package has its own test suite, so these are redundant
1 parent 2d1f178 commit 1c4bddc

File tree

55 files changed

+1
-6979
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1
-6979
lines changed

build.zig

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ pub fn build(b: *std.Build) !void {
9090
const skip_non_native = b.option(bool, "skip-non-native", "Main test suite skips non-native builds") orelse false;
9191
const skip_libc = b.option(bool, "skip-libc", "Main test suite skips tests that link libc") orelse false;
9292
const skip_single_threaded = b.option(bool, "skip-single-threaded", "Main test suite skips tests that are single-threaded") orelse false;
93-
const skip_translate_c = b.option(bool, "skip-translate-c", "Main test suite skips translate-c tests") orelse false;
94-
const skip_run_translated_c = b.option(bool, "skip-run-translated-c", "Main test suite skips run-translated-c tests") orelse false;
9593
const skip_freebsd = b.option(bool, "skip-freebsd", "Main test suite skips targets with freebsd OS") orelse false;
9694
const skip_netbsd = b.option(bool, "skip-netbsd", "Main test suite skips targets with netbsd OS") orelse false;
9795
const skip_windows = b.option(bool, "skip-windows", "Main test suite skips targets with windows OS") orelse false;
@@ -415,7 +413,7 @@ pub fn build(b: *std.Build) !void {
415413
test_step.dependOn(check_fmt);
416414

417415
const test_cases_step = b.step("test-cases", "Run the main compiler test cases");
418-
try tests.addCases(b, test_cases_step, target, .{
416+
try tests.addCases(b, test_cases_step, .{
419417
.test_filters = test_filters,
420418
.test_target_filters = test_target_filters,
421419
.skip_non_native = skip_non_native,
@@ -426,9 +424,6 @@ pub fn build(b: *std.Build) !void {
426424
.skip_linux = skip_linux,
427425
.skip_llvm = skip_llvm,
428426
.skip_libc = skip_libc,
429-
}, .{
430-
.skip_translate_c = skip_translate_c,
431-
.skip_run_translated_c = skip_run_translated_c,
432427
}, .{
433428
.enable_llvm = enable_llvm,
434429
.llvm_has_m68k = llvm_has_m68k,

test/cases/README.md

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -22,33 +22,6 @@ This will do `zig run` on the code and expect exit code 0.
2222
// run
2323
```
2424

25-
## Translate-c
26-
27-
If you want to test translating C code to Zig use `translate-c`:
28-
29-
```c
30-
// translate-c
31-
// c_frontend=aro,clang
32-
// target=x86_64-linux
33-
//
34-
// pub const foo = 1;
35-
// pub const immediately_after_foo = 2;
36-
//
37-
// pub const somewhere_else_in_the_file = 3:
38-
```
39-
40-
## Run Translated C
41-
42-
If you want to test translating C code to Zig and then executing it use `run-translated-c`:
43-
44-
```c
45-
// run-translated-c
46-
// c_frontend=aro,clang
47-
// target=x86_64-linux
48-
//
49-
// Hello world!
50-
```
51-
5225
## Incremental Compilation
5326

5427
Make multiple files that have ".", and then an integer, before the ".zig"

test/cases/run_translated_c/compound_assignments_with_implicit_casts.c

Lines changed: 0 additions & 20 deletions
This file was deleted.

test/cases/run_translated_c/compound_assignments_with_pointer_arithmetic.c

Lines changed: 0 additions & 21 deletions
This file was deleted.

test/cases/run_translated_c/dereference address of.c

Lines changed: 0 additions & 11 deletions
This file was deleted.

test/cases/run_translated_c/explicit_cast_bool_from_float.c

Lines changed: 0 additions & 10 deletions
This file was deleted.

test/cases/run_translated_c/extern_typedef_variables_in_functions.c

Lines changed: 0 additions & 22 deletions
This file was deleted.

test/cases/run_translated_c/float_from_bool_expr_cast.c

Lines changed: 0 additions & 8 deletions
This file was deleted.

test/cases/run_translated_c/sub_scope_extern_local_var_ref.c

Lines changed: 0 additions & 23 deletions
This file was deleted.

test/cases/translate_c/_Static_assert.c

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)