InKryption
609896a6e8
std.MultiArrayList: add functions addOne, pop, and popOrNull ( #11553 )
...
Update basic usage test to account for these, and by extension for addOneAssumeCapacity.
2022-04-29 22:51:53 -04:00
Andrew Kelley
cc39d453c4
Merge pull request #11549 from Vexu/stage2-fixes
...
Stage2: fix comptime unreachable, adjust Zir.Extended
2022-04-29 22:50:53 -04:00
Jimmi Holst Christensen
a0a2ce92ca
std: Do not allocate the result for ChildProcess.init
...
Instead, just return ChildProcess directly. This structure does not
require a stable address, so we can put it on the stack just fine. If
someone wants it on the heap they should do.
const proc = try allocator.create(ChildProcess);
proc.* = ChildProcess.init(args, allocator);
2022-04-29 22:50:34 -04:00
Veikka Tuominen
596f7df02e
Zir: turn extended func into func_extended
2022-04-30 01:06:01 +03:00
Veikka Tuominen
1d455896cb
Zir: move more common instructions out of extended
2022-04-30 01:06:01 +03:00
Veikka Tuominen
a6f254ec3e
stage2: fix comptime unreachable
2022-04-30 01:05:48 +03:00
Natalia Cholewa
0e49142ce4
std.SegmentedList: add constIterator
2022-04-29 14:48:49 -04:00
Jakub Konka
3b8187072f
Merge pull request #11530 from ziglang/test-harness
...
test: move compare and run tests to new test harness
2022-04-29 08:24:02 +02:00
Daniele Cocca
fda143d5d8
CBE: fix renderValue() for struct fields with no runtime bits
...
These shouldn't count towards the total emitted, or the stray comma
separators would cause compilation errors.
2022-04-28 23:41:42 -04:00
Stephen Gregoratto
2409041e62
Seccomp fixups re: #10717
...
- Add type annotation for AUDIT.current.
- Make unsupported archs a compile error.
2022-04-28 23:41:25 -04:00
Andrew Kelley
a242906696
compiler-rt: restore stage1 workaround
...
18d6523888ef08bc66eb808075d13c5e00b8fcf4 regressed compiler-rt tests for
stage1 because it removed a workaround. I updated the comment to better
explain what exactly the workaround is so that it won't happen again.
2022-04-28 20:39:33 -07:00
Andrew Kelley
d8e99164d3
AstGen: encode negativity into float literals
...
rather than a separate negation instruction. closes #11545
2022-04-28 17:11:42 -07:00
Andrew Kelley
18d6523888
compiler-rt: upgrade to stage2 fn ptr semantics
2022-04-28 17:11:14 -07:00
Andrew Kelley
c5e847744c
Revert "Merge pull request #11214 from iddev5/ay-build-runner"
...
This reverts commit 75c9936737a6ba991d4ef187ddc9d51bc0ad0998, reversing
changes made to 7f13f5cd5f5a518638b15d7225eae2d88ec1efb5.
I don't think `runZigBuild` belongs in std.testing. We already have
`test/standalone/*` for this.
Additionally test names should explain what they are testing rather than
referencing GitHub issue numbers.
2022-04-28 14:12:32 -07:00
Veikka Tuominen
091fe78337
Merge pull request #11541 from Vexu/stage2-slice-field-ptr
...
Stage2: fix slice field modification at comptime
2022-04-28 22:27:50 +03:00
Andrew Kelley
3052597a73
Revert "std.testing: add writeZigFile for TmpDir"
...
This reverts commit 7f13f5cd5f5a518638b15d7225eae2d88ec1efb5.
I'd like to review this one before it goes in. This is an awfully
specific API that I don't think belongs in std.testing. Also I don't
want any code snippets in doc strings. We have doctests for that.
2022-04-28 11:20:53 -07:00
Andrew Kelley
9181c98225
std.build: fix dll-export-fns API
...
We have a pattern using `?bool` for the -f/-fno- style flags.
Fixup for 8e3add8736be683b450c2754bedb064811baed0e.
2022-04-28 11:13:33 -07:00
Andrew Kelley
360ecc1a2f
Merge pull request #11532 from ziglang/compiler-rt-math
...
compiler-rt math functions reorg
2022-04-28 13:34:38 -04:00
Jakub Konka
d25f06a71c
test: remove redundant codepaths from test harness
2022-04-28 18:35:01 +02:00
Jakub Konka
62625d9d95
test: migrate stage1 compile error tests to updated test manifest
2022-04-28 18:35:01 +02:00
Jakub Konka
c8d0fb0b21
test: migrate stage2 independent compile errors to test manifest parser
2022-04-28 18:35:01 +02:00
Jakub Konka
3c19f694d9
test: fix incorrect error loc in assert_function x86_64-linux test
2022-04-28 18:35:01 +02:00
Jakub Konka
2875216f8e
test: fix x86_64-macos failures
...
This is just a temporary fix - I would like to unify all of x86_64
tests across linux and macos OSes.
2022-04-28 18:35:01 +02:00
Jakub Konka
5a5648c0f0
test: migrate llvm incremental tests
2022-04-28 18:35:01 +02:00
Jakub Konka
2cd456f8f4
test: correctly handle multiple backends
...
To correctly handle multiple backends crossed with multiple targets,
we need to push all elements in separate allocated arrays rather
than operate on raw iterators. Hence, introduce `getConfigForKeyAlloc`.
2022-04-28 18:35:01 +02:00
Jakub Konka
495bb12e6a
test: migrate plan9 and sparcv9 incremental tests
2022-04-28 18:35:01 +02:00
Jakub Konka
ed51a5d02a
test: migrate arm incremental tests
2022-04-28 18:35:01 +02:00
Jakub Konka
fc4fbfe8e1
test: migrate aarch64 incremental tests
2022-04-28 18:35:01 +02:00
Jakub Konka
7e17cbbda5
test: migrate riscv64 incremental tests
2022-04-28 18:35:01 +02:00
Jakub Konka
8e05e6a1ed
test: migrate wasm incremental tests
2022-04-28 18:35:01 +02:00
Jakub Konka
815dc2c6e7
test: enable wasm32-wasi incremental tests
2022-04-28 18:35:01 +02:00
Jakub Konka
8d5acf7693
test: recursively walk dir with tests
...
Prune incremental tests by moving non-incremental behavior tests to
behavior test suite instead.
2022-04-28 18:35:01 +02:00
Jakub Konka
c8a0d8ff2b
ci: ignore fmt errors in test/incremental/
2022-04-28 18:35:01 +02:00
Jakub Konka
e4a8a66504
test: remove incremental tests that were ported to the new harness
2022-04-28 18:35:01 +02:00
Jakub Konka
97b781955e
test: fix incorrect default target spec; port all incremental tests
2022-04-28 18:35:01 +02:00
Jakub Konka
133708d939
test: leave a todo note to explicitly specify ABI for targets in the future
2022-04-28 18:35:01 +02:00
Jakub Konka
0998185f77
test: adjust error location for assert_function test
2022-04-28 18:35:01 +02:00
Jakub Konka
81e90c7acb
test: fix pointer invalidation bug in the harness
2022-04-28 18:35:01 +02:00
Jakub Konka
c1a98cd65d
test: set case name from initial filename for a sequence
...
Port more incremental tests.
2022-04-28 18:35:01 +02:00
Jakub Konka
46db5e2a44
test: unroll into multiple cases, provide default parsers
...
Provide default parsers for obvious config options such as
`CrossTarget` or `Backend` (or any enum for that matter).
Unroll iterator loops into multiple cases - we need to create
a Cartesian product for all possibilities specified in the
test manifest.
2022-04-28 18:35:01 +02:00
Jakub Konka
bc370311cb
test: add comptime struct holding default config values
2022-04-28 18:35:01 +02:00
Jakub Konka
f41dd3617e
test: pass Strategy per directory of tests
2022-04-28 18:35:01 +02:00
Jakub Konka
d305a6fb55
test: parse all of manifest in TestManifest abstraction
2022-04-28 18:35:01 +02:00
Jakub Konka
d8d12d51ec
test: abstract away test manifest parser into separate struct
2022-04-28 18:35:01 +02:00
Jakub Konka
d5fcb50988
fmt: fix formatting of lib/std/x/net/bpf.zig
2022-04-28 18:34:37 +02:00
Veikka Tuominen
6d48600ea0
Merge pull request #10717 from gh-fork-dump/seccomp-bits
...
Add Seccomp bits for linux
2022-04-28 18:54:09 +03:00
Veikka Tuominen
75c9936737
Merge pull request #11214 from iddev5/ay-build-runner
...
std: explicitly handle error.UnexpectedExitCode in build_runner
2022-04-28 18:38:44 +03:00
matu3ba
7f13f5cd5f
std.testing: add writeZigFile for TmpDir
...
* remove need for manual string concatenation for building binaries in test blocks
* include small program snippet to show how to get binary path with subslicing
2022-04-28 18:37:30 +03:00
Erik Hugne
8e3add8736
std.build: make no_dll_export_fns accessible in build step
2022-04-28 18:34:15 +03:00
Erik Hugne
f7bc8900bf
std.coff: parse out codebase and entrypoint from optionalheader
2022-04-28 18:31:20 +03:00