]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
meson: Update tests timeout to run properly
authorLzu Tao <taolzu@gmail.com>
Sun, 2 Dec 2018 20:23:09 +0000 (03:23 +0700)
committerLzu Tao <taolzu@gmail.com>
Sun, 2 Dec 2018 20:23:09 +0000 (03:23 +0700)
build/meson/tests/meson.build

index e35575d0048f3e26b46d32358a40e897a8706117..aa9cd86f4ebc18fe22526bf2444463d0f7816243 100644 (file)
@@ -173,22 +173,46 @@ if host_machine_os != os_windows
     timeout: 600) # Timeout should work on HDD drive
 endif
 
-test('test-fullbench-1', fullbench, args: ['-i1'],
-  depends: [fullbench, datagen])
-test('test-fullbench-2', fullbench, args: ['-i1', '-P0'],
-  depends: [fullbench, datagen])
+test('test-fullbench-1',
+  fullbench,
+  args: ['-i1'],
+  depends: [datagen],
+  timeout: 60)
+test('test-fullbench-2',
+  fullbench,
+  args: ['-i1', '-P0'],
+  depends: [datagen],
+  timeout: 60)
 
 if use_zlib
-  test('test-fuzzer', fuzzer, args: ['-v', FUZZERTEST] + FUZZER_FLAGS)
+  test('test-fuzzer',
+    fuzzer,
+    args: ['-v', FUZZERTEST] + FUZZER_FLAGS,
+    timeout: 240)
 endif
 
-test('test-zbuff', zbufftest, args: [ZSTREAM_TESTTIME])
-test('test-zstream-1', zstreamtest, args: ['-v', ZSTREAM_TESTTIME] + FUZZER_FLAGS)
-test('test-zstream-2', zstreamtest, args: ['-mt', '-t1', ZSTREAM_TESTTIME] + FUZZER_FLAGS)
-test('test-zstream-3', zstreamtest, args: ['--newapi', '-t1', ZSTREAM_TESTTIME] + FUZZER_FLAGS)
-test('test-longmatch', longmatch)
-test('test-invalidDictionaries', invalidDictionaries)
-test('test-symbols', symbols)
-test('test-legacy', legacy)
-test('test-decodecorpus', decodecorpus, args: ['-t', DECODECORPUS_TESTTIME])
-test('test-poolTests', poolTests)
+test('test-zbuff',
+  zbufftest,
+  args: [ZSTREAM_TESTTIME],
+  timeout: 120)
+test('test-zstream-1',
+  zstreamtest,
+  args: ['-v', ZSTREAM_TESTTIME] + FUZZER_FLAGS,
+  timeout: 120)
+test('test-zstream-2',
+  zstreamtest,
+  args: ['-mt', '-t1', ZSTREAM_TESTTIME] + FUZZER_FLAGS,
+  timeout: 120)
+test('test-zstream-3',
+  zstreamtest,
+  args: ['--newapi', '-t1', ZSTREAM_TESTTIME] + FUZZER_FLAGS,
+  timeout: 120)
+test('test-longmatch', longmatch, timeout: 36)
+test('test-invalidDictionaries', invalidDictionaries) # should be fast
+test('test-symbols', symbols) # should be fast
+test('test-legacy', legacy) # should be fast
+test('test-decodecorpus',
+  decodecorpus,
+  args: ['-t', DECODECORPUS_TESTTIME],
+  timeout: 60)
+test('test-poolTests', poolTests) # should be fast