mirror of
https://github.com/facebook/zstd.git
synced 2025-07-30 22:23:13 +03:00
fuzzer : tests with high id are run without need to change finalTestNb
This commit is contained in:
@ -851,6 +851,8 @@ int main(int argc, const char** argv)
|
|||||||
DISPLAY("Seed = %u\n", seed);
|
DISPLAY("Seed = %u\n", seed);
|
||||||
if (proba!=FUZ_compressibility_default) DISPLAY("Compressibility : %u%%\n", proba);
|
if (proba!=FUZ_compressibility_default) DISPLAY("Compressibility : %u%%\n", proba);
|
||||||
|
|
||||||
|
if (nbTests < testNb) nbTests = testNb;
|
||||||
|
|
||||||
if (testNb==0)
|
if (testNb==0)
|
||||||
result = basicUnitTests(0, ((double)proba) / 100); /* constant seed for predictability */
|
result = basicUnitTests(0, ((double)proba) / 100); /* constant seed for predictability */
|
||||||
if (!result)
|
if (!result)
|
||||||
|
@ -130,7 +130,7 @@ if __name__ == '__main__':
|
|||||||
# Build all release zstd
|
# Build all release zstd
|
||||||
for tag in tags:
|
for tag in tags:
|
||||||
os.chdir(base_dir)
|
os.chdir(base_dir)
|
||||||
dst_zstd = '{}/zstd.{}' .format(tmp_dir, tag) # /path/to/zstd/tests/versionsTest/zstd.<TAG>
|
dst_zstd = '{}/zstd.{}'.format(tmp_dir, tag) # /path/to/zstd/tests/versionsTest/zstd.<TAG>
|
||||||
if not os.path.isfile(dst_zstd) or tag == head:
|
if not os.path.isfile(dst_zstd) or tag == head:
|
||||||
if tag != head:
|
if tag != head:
|
||||||
r_dir = '{}/{}'.format(tmp_dir, tag) # /path/to/zstd/tests/versionsTest/<TAG>
|
r_dir = '{}/{}'.format(tmp_dir, tag) # /path/to/zstd/tests/versionsTest/<TAG>
|
||||||
|
Reference in New Issue
Block a user