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:
@@ -25,6 +25,7 @@ defines.ERASE_CYCLES = 10
|
||||
defines.BLOCK_RECYCLES = 4
|
||||
defines.N = [1, 2, 4, 8, 16, 32, 64, 128, 256]
|
||||
defines.SEED = 42
|
||||
fuzz = 'SEED'
|
||||
code = '''
|
||||
// run our test twice, once with 1/2 the storage, once with 2/2 the
|
||||
// storage, and compare how many operations we were able to perform
|
||||
@@ -223,6 +224,7 @@ defines.SIZE = [
|
||||
'4*BLOCK_SIZE',
|
||||
]
|
||||
defines.SEED = 42
|
||||
fuzz = 'SEED'
|
||||
if = '(SIZE*N)/BLOCK_SIZE <= 16'
|
||||
code = '''
|
||||
// run our test twice, once with 1/2 the storage, once with 2/2 the
|
||||
@@ -484,6 +486,7 @@ defines.SIZE = [
|
||||
'4*BLOCK_SIZE',
|
||||
]
|
||||
defines.SEED = 42
|
||||
fuzz = 'SEED'
|
||||
if = '(SIZE*N)/BLOCK_SIZE <= 16'
|
||||
code = '''
|
||||
// run our test twice, once with 1/2 the storage, once with 2/2 the
|
||||
@@ -887,6 +890,7 @@ defines.SIZE = [
|
||||
'4*BLOCK_SIZE',
|
||||
]
|
||||
defines.SEED = 42
|
||||
fuzz = 'SEED'
|
||||
if = '(SIZE*N)/BLOCK_SIZE <= 16'
|
||||
code = '''
|
||||
// run our test twice, once with 1/2 the storage, once with 2/2 the
|
||||
|
||||
Reference in New Issue
Block a user