fuzzer : tests with high id are run without need to change finalTestNb

dev
Yann Collet 2016-06-16 11:32:57 +02:00
parent 80d033fb43
commit 803c05ec7e
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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>