aboutsummaryrefslogtreecommitdiff
path: root/test/tests.zig
AgeCommit message (Collapse)Author
2025-01-07test: Enable long calls for all thumb/thumbeb module tests.Alex Rønne Petersen
The relocation range issues will happen eventually as we add more code to the standard library and test suites, so we may as well just deal with this now. @MasonRemaley ran into this in #20271, for example.
2024-12-18tests.zig: migrate from deprecated std.Build APIsmlugg
2024-12-18std.Build: remove deprecated APIsEric Joldasov
These APIs were all deprecated prior to the release of 0.13.0, so can be safety removed in the current release cycle. `std.Build`: * `host` -> `graph.host` `std.Build.Step.Compile`: * `setLinkerScriptPath` -> `setLinkerScript` * `defineCMacro` -> `root_module.addCMacro` * `linkFrameworkNeeded`-> `root_module.linkFramework` * `linkFrameworkWeak`-> `root_module.linkFramework` `std.Build.Step.ObjCopy`: * `getOutputSource` -> `getOutput` `std.Build.Step.Options`: * `addOptionArtifact` -> `addOptionPath` * `getSource` -> `getOutput` `std.Build.Step.Run`: * `extra_file_dependencies` -> `addFileInput` * `addDirectorySourceArg` -> `addDirectoryArg` * `addPrefixedDirectorySourceArg` -> `addPrefixedDirectoryArg`
2024-12-15Merge pull request #22219 from alexrp/arm-big-endianAlex Rønne Petersen
Add `armeb-linux-*`, `thumbeb-linux-*`, and `aarch64_be-linux-*` to CI
2024-12-13Add compiler internals testsCarl Åstholm
There are several test decls inside `/src` that are not currently being tested and have bitrotted as a result. This commit revives those tests and adds the `test-compiler-internals` set of tests which tests everything reachable from `/src/main.zig`.
2024-12-13test: Add aarch64_be-linux-* to the module test matrix.Alex Rønne Petersen
2024-12-13test: Add thumbeb-linux-* to the module test matrix.Alex Rønne Petersen
2024-12-13test: Add armeb-linux-* to the module test matrix.Alex Rønne Petersen
2024-12-01test: Add x86_64-linux-(gnux32,muslx32) to module tests.Alex Rønne Petersen
2024-11-24test: Enable -Dtest-target-filter=... to work for test-cases and ↵Alex Rønne Petersen
test-translate-c.
2024-11-24test: Enable -Dtest-target-filter=... to work for test-c-abi.Alex Rønne Petersen
2024-11-05Revert "test: Add aarch64_be-linux-(none,gnu,musl) to module tests."Alex Rønne Petersen
This reverts commit 4049be90de6a557c1ab522363fddbb71d3ccdb18. See: https://github.com/ziglang/zig/issues/21911
2024-11-04test: Add aarch64_be-linux-(none,gnu,musl) to module tests.Alex Rønne Petersen
2024-11-03Merge pull request #21599 from alexrp/thumb-portingAlex Rønne Petersen
2024-11-03test: Add thumb-linux-(musl)eabi(hf) target triples for module tests.Alex Rønne Petersen
2024-11-03test: Add the ability to skip specific modules for a target.Alex Rønne Petersen
2024-11-02std.zig.target: Change mips64(el)-linux-musl triples to -muslabi64.Alex Rønne Petersen
With this, MIPS triples for musl are in line with glibc triples.
2024-10-15test: Add riscv(32,64)-linux-(none,musl) with soft float to module tests.Alex Rønne Petersen
2024-10-05tests: add `test-incremental` stepmlugg
This is contained in the `test` step, so is tested by CI. This commit also includes some enhancements to the `incr-check` tool to make this work correctly.
2024-10-04test: Add s390x-linux-(none,musl,gnu) triples to module tests.Alex Rønne Petersen
2024-09-20test: Add `riscv32-linux-(none,musl,gnu)` triples for module tests.Alex Rønne Petersen
2024-09-19Revert "tests: skip native CPU std tests on Windows"Alex Rønne Petersen
This reverts commit 234693bcbba6f55ff6e975ddbedf0fad4dfaa8f1.
2024-09-19test: Re-enable LLVM riscv64 module tests.Alex Rønne Petersen
Closes #18872.
2024-09-10test: Switch all `arm-linux-*` triples for module tests from v8a to v7a.Alex Rønne Petersen
Broadly speaking, versions 6, 7, and 8 are the ones that are in common use. Of these, v7 is what you'll typically see for 32-bit Arm today. So let's actually make sure that that's what we're testing.
2024-09-10test: Add arm, mips, and powerpc soft float targets to module tests.Alex Rønne Petersen
Prefer `eabi` and `eabihf` over the ambiguous `none` when not using libc.
2024-09-06std.zig.target: Split `powerpc-linux-musl` triple into ↵Alex Rønne Petersen
`powerpc-linux-musleabi(hf)`.
2024-09-06std.zig.target: Split `mips(el)-linux-musl` triples into ↵Alex Rønne Petersen
`mips(el)-linux-musleabi(hf)`. Closes #21184.
2024-09-05test: Add `powerpc64-linux-(none,musl)` triples to module tests.Alex Rønne Petersen
2024-08-18test: Add `mips64(el)-linux-(none,musl,gnuabi64)` targets.Alex Rønne Petersen
These take 3-4 minutes to run on my machine, i.e. they're not affected by the LLVM compilation speed bug that affects mips32.
2024-08-16Dwarf: rework self-hosted debug info from scratchJacob Young
This is in preparation for incremental and actually being able to debug executables built by the x86_64 backend.
2024-08-14build/test: Add -Dtest-slow-targets and move mips module tests behind it.Alex Rønne Petersen
The idea is that these tests are just too slow to include by default on a contributor's local machine. If they want to run these, they need to opt in.
2024-08-14build/test: Add -Dtest-target-filter for filtering module tests by target ↵Alex Rønne Petersen
triple. This is useful during porting work where you're not interested in running all targets all the time while iterating on changes.
2024-08-14test: Re-enable mips(el)-linux-gnueabihf tests.Alex Rønne Petersen
Closes #4927.
2024-08-13Merge pull request #21053 from alexrp/mips-testsAndrew Kelley
`test`: Re-enable `mips(el)-linux(-musl)` tests.
2024-08-13test: Re-enable armv8-linux-gnueabihf tests.Alex Rønne Petersen
Closes #3287.
2024-08-12test: Re-enable mips(el)-linux(-musl) tests.Alex Rønne Petersen
Closes #13782. Closes #16846.
2024-08-01build.zig: fix -Dskip-non-nativeAndrew Kelley
now it actually does what it says on the tin
2024-07-26riscv: implement `@clz`David Rubin
2024-07-14riscv: vectors part 1David Rubin
2024-07-12std.Build.Step.WriteFile: extract UpdateSourceFilesAndrew Kelley
This has been planned for quite some time; this commit finally does it. Also implements file system watching integration in the make() implementation for UpdateSourceFiles and fixes the reporting of step caching for both. WriteFile does not yet have file system watching integration.
2024-07-12make more build steps integrate with the watch systemAndrew Kelley
2024-07-04compiler: rework type resolution, fully resolve all typesmlugg
I'm so sorry. This commit was just meant to be making all types fully resolve by queueing resolution at the moment of their creation. Unfortunately, a lot of dominoes ended up falling. Here's what happened: * I added a work queue job to fully resolve a type. * I realised that from here we could eliminate `Sema.types_to_resolve` if we made function codegen a separate job. This is desirable for simplicity of both spec and implementation. * This led to a new AIR traversal to detect whether any required type is unresolved. If a type in the AIR failed to resolve, then we can't run codegen. * Because full type resolution now occurs by the work queue job, a bug was exposed whereby error messages for type resolution were associated with the wrong `Decl`, resulting in duplicate error messages when the type was also resolved "by" its owner `Decl` (which really *all* resolution should be done on). * A correct fix for this requires using a different `Sema` when performing type resolution: we need a `Sema` owned by the type. Also note that this fix is necessary for incremental compilation. * This means a whole bunch of functions no longer need to take `Sema`s. * First-order effects: `resolveTypeFields`, `resolveTypeLayout`, etc * Second-order effects: `Type.abiAlignmentAdvanced`, `Value.orderAgainstZeroAdvanced`, etc The end result of this is, in short, a more correct compiler and a simpler language specification. This regressed a few error notes in the test cases, but nothing that seems worth blocking this change. Oh, also, I ripped out the old code in `test/src/Cases.zig` which introduced a dependency on `Compilation`. This dependency was problematic at best, and this code has been unused for a while. When we re-enable incremental test cases, we must rewrite their executor to use the compiler server protocol.
2024-07-04build: fix WriteFile and addCSourceFiles not adding LazyPath depsJonathan Marler
Adds a missing call to addLazyPathDependenciesOnly in std.Build.Module.addCSourceFiles. Also fixes an issue in std.Build.Step.WriteFile where it wasn't updating all the GeneratedFile instances for every directory. To fix the second issue, I removed all the GeneratedFile instances and now all files/directories reference the steps main GeneratedFile via sub paths.
2024-06-13Change deprecated b.host to b.graph.host in tests and Zig's build.zigKrzysztof Wolicki
2024-06-02pass `-fno-builtin` when testing `lib/c.zig`, `lib/compiler_rt.zig`Veikka Tuominen
2024-05-11riscv: add stage2_riscv to test matrix and bypass failing testsDavid Rubin
2024-05-03Rename Dir.writeFile2 -> Dir.writeFile and update all callsitesRyan Liptak
writeFile was deprecated in favor of writeFile2 in f645022d16361865e24582d28f1e62312fbc73bb. This commit renames writeFile2 to writeFile and makes writeFile2 a compile error.
2024-04-19disable RISC-V CI testing due to LLVM's O(N^2) codegenAndrew Kelley
tracked by #18872
2024-04-13cbe: fix optional codegenJacob Young
Also reduce ctype pool string memory usage, remove self assignments, and enable more warnings.
2024-04-11remove deprecated LazyPath.path union tagAndrew Kelley