zig/test/standalone
Kendall Condon e66b269333 greatly improve capabilities of the fuzzer
This PR significantly improves the capabilities of the fuzzer.

The changes made to the fuzzer to accomplish this feat mostly include
tracking memory reads from .rodata to determine fresh inputs, new
mutations (especially the ones that insert const values from .rodata
reads and __sanitizer_conv_const_cmp), and minimizing found inputs.
Additionally, the runs per second has greatly been increased due to
generating smaller inputs and avoiding clearing the 8-bit pc counters.

An additional feature added is that the length of the input file is now
stored and the old input file is rerun upon start.

Other changes made to the fuzzer include more logical initialization,
using one shared file `in` for inputs, creating corpus files with
proper sizes, and using hexadecimal-numbered corpus files for
simplicity.

Furthermore, I added several new fuzz tests to gauge the fuzzer's
efficiency. I also tried to add a test for zstandard decompression,
which it crashed within 60,000 runs (less than a second.)

Bug fixes include:
* Fixed a race conditions when multiple fuzzer processes needed to use
the same coverage file.
* Web interface stats now update even when unique runs is not changing.
* Fixed tokenizer.testPropertiesUpheld to allow stray carriage returns
since they are valid whitespace.
2025-09-18 18:56:10 -04:00
..
c_compiler Merge pull request #23501 from imreallybadatnames/master 2025-04-09 05:16:36 +00:00
c_embed_path Migrate from deprecated Step.Compile APIs 2025-07-26 12:06:43 +02:00
child_process child process test: preemptively use streaming mode 2025-08-30 00:48:50 -07:00
cmakedefine update tools and other miscellaneous things to new APIs 2025-08-30 00:48:50 -07:00
coff_dwarf test: Only run coff_dwarf test on aarch64, x86, x86_64 2025-07-01 23:03:15 +02:00
compiler_rt_panic test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
config_header Remove numerous things deprecated during the 0.14 release cycle 2025-07-11 08:17:43 +02:00
dep_diamond test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
dep_duplicate_module std.Build: add addLibrary function (#22554) 2025-01-22 02:29:21 +00:00
dep_lazypath test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
dep_mutually_recursive test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
dep_recursive tests: remove incorrect import 2025-05-18 17:10:04 +01:00
dep_shared_builtin test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
dep_triangle test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
depend_on_main_mod test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
dependency_options build: fix error in standalone test when using --release 2025-07-28 08:10:23 +01:00
dependencyFromBuildZig Update test build.zig.zon files to conform to the new manifest rules 2025-07-20 18:28:36 +02:00
dirname tests: do not require absolute paths from the build system 2025-06-13 15:46:43 +01:00
embed_generated_file test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
emit_asm_and_bin test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
emit_asm_no_bin test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
emit_llvm_no_bin test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
empty_env test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
empty_global_error_set x86_64: fix @errorName data 2025-01-05 17:15:56 -05:00
entry_point update tools and other miscellaneous things to new APIs 2025-08-30 00:48:50 -07:00
env_vars Add standalone test for environment variables 2025-03-22 15:44:27 -07:00
extern Migrate from deprecated Step.Compile APIs 2025-07-26 12:06:43 +02:00
global_linkage std.Build: add addLibrary function (#22554) 2025-01-22 02:29:21 +00:00
install_headers std.Build: add addLibrary function (#22554) 2025-01-22 02:29:21 +00:00
install_raw_hex Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
ios Target: pass and use locals by pointer instead of by value 2025-06-19 11:45:06 -04:00
issue_339 test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
issue_794 Migrate from deprecated Step.Compile APIs 2025-07-26 12:06:43 +02:00
issue_5825 test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
issue_8550 Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
issue_11595 test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
issue_12706 Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
issue_13970 test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
libcxx test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
libfuzzer greatly improve capabilities of the fuzzer 2025-09-18 18:56:10 -04:00
load_dynamic_library Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
mix_c_files tests: extern threadlocals require LLVM 2025-06-06 23:42:15 -07:00
mix_o_files test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
omit_cfi test: Add a standalone test for omitting CFI directives. 2025-01-19 02:15:30 +01:00
options test-cli: port build options test to new build system API 2025-05-20 23:02:51 -04:00
pie test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
pkg_import test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
run_cwd std.Build.Step.Run: prefix relative path arguments with './' 2025-06-18 22:45:05 +01:00
run_output_caching tests: do not require absolute paths from the build system 2025-06-13 15:46:43 +01:00
run_output_paths update more to avoid GenericWriter 2025-08-28 18:30:57 -07:00
self_exe_symlink tests: do not require absolute paths from the build system 2025-06-13 15:46:43 +01:00
shared_library std.Build: add addLibrary function (#22554) 2025-01-22 02:29:21 +00:00
sigpipe update standalone and incremental tests to new API 2025-07-07 22:43:53 -07:00
simple Fix standalone test simple/cat/main.zig after Writergate update (#25188) 2025-09-11 16:43:11 +00:00
stack_iterator std.debug: remove @frameAddress() "UAF" 2025-08-28 10:56:11 +01:00
static_c_lib std.Build: add addLibrary function (#22554) 2025-01-22 02:29:21 +00:00
strip_empty_loop test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
strip_struct_init test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
test_obj_link_run Compilation: remove last instance of deprecatedReader 2025-08-16 14:46:20 -07:00
test_runner_module_imports std.Build: extend test_runner option to specify whether runner uses std.zig.Server 2025-01-20 00:14:58 +00:00
test_runner_path std.Build: extend test_runner option to specify whether runner uses std.zig.Server 2025-01-20 00:14:58 +00:00
tsan test: enable tsan test for x86_64-netbsd 2025-08-14 08:25:50 +02:00
windows_argv std.ArrayList: make unmanaged the default 2025-08-11 15:52:49 -07:00
windows_bat_args std.ArrayList: make unmanaged the default 2025-08-11 15:52:49 -07:00
windows_entry_points test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
windows_resources test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
windows_spawn Revert "Sema: Stop adding Windows implib link inputs for extern "..." syntax." 2025-08-06 06:15:13 +02:00
zerolength_check test: add tests for @memmove 2025-04-26 13:34:17 +10:00
build.zig test: actually build the tools! 2025-07-16 06:38:53 +02:00
build.zig.zon test: add a standalone test for compiling tsan 2025-08-11 03:02:54 +02:00