Added fuzz test attribute

This acts as a marker to indicate a fuzz test. It should reference a
define, usually SEED, that can be randomized to get interesting test
permutations.

This is currently unused, but could lead to some interesting uses such
as time-based fuzz testing. It's also just useful for inspecting the
tests (make test-list).
This commit is contained in:
Christopher Haster
2024-05-28 12:44:44 -05:00
parent 3fb58b6623
commit 9c9a409524
14 changed files with 122 additions and 33 deletions
+4
View File
@@ -3998,6 +3998,7 @@ code = '''
[cases.test_rbyd_fuzz_append_removes]
defines.N = 'range(1, 33)'
defines.SEED = 'range(1000)'
fuzz = 'SEED'
# large progs take too long for now
if = 'PROG_SIZE < 512'
in = 'lfs.c'
@@ -11818,6 +11819,7 @@ code = '''
[cases.test_rbyd_fuzz_create_deletes]
defines.N = 'range(1, 33)'
defines.SEED = 'range(1000)'
fuzz = 'SEED'
# large progs take too long for now
if = 'PROG_SIZE < 512'
in = 'lfs.c'
@@ -14954,6 +14956,7 @@ code = '''
defines.N = 'range(1, 33)'
defines.M = 3
defines.SEED = 'range(1000)'
fuzz = 'SEED'
# large progs take too long for now
if = 'PROG_SIZE < 512'
in = 'lfs.c'
@@ -15114,6 +15117,7 @@ code = '''
defines.N = 'range(1, 33)'
defines.W = 5
defines.SEED = 'range(1000)'
fuzz = 'SEED'
# large progs take too long for now
if = 'PROG_SIZE < 512'
in = 'lfs.c'