summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLzu Tao <taolzu@gmail.com>2018-12-02 21:36:09 +0700
committerLzu Tao <taolzu@gmail.com>2018-12-03 19:19:02 +0700
commit5699432d386062b9088fda27bb0c597062efa666 (patch)
tree11d3bbbda4bcc08095457937c6edc91ae890bbf0 /contrib
parent3a510831c31500e94f9fd732b586ef7b92642d2c (diff)
downloadlz4-5699432d386062b9088fda27bb0c597062efa666.tar.gz
lz4-5699432d386062b9088fda27bb0c597062efa666.tar.bz2
lz4-5699432d386062b9088fda27bb0c597062efa666.zip
meson test: Update timeout and tests that use COPYING
Diffstat (limited to 'contrib')
-rw-r--r--contrib/meson/tests/meson.build20
1 files changed, 16 insertions, 4 deletions
diff --git a/contrib/meson/tests/meson.build b/contrib/meson/tests/meson.build
index 82e2813..392bcf2 100644
--- a/contrib/meson/tests/meson.build
+++ b/contrib/meson/tests/meson.build
@@ -15,7 +15,7 @@ lib_dir_inc = include_directories(join_paths(lz4_root_dir, 'lib'))
# Test flags
# =============================================================================
-TEST_FILES = join_paths(lz4_root_dir, 'tests/COPYING')
+TEST_FILES = join_paths(meson.current_source_dir(), lz4_root_dir, 'tests/COPYING')
FUZZER_TIME = '-T90s'
NB_LOOPS = '-i1'
@@ -76,6 +76,18 @@ checkTag = executable('checkTag',
# Tests (Use "meson test --list" to list all tests)
# =============================================================================
-test('test-fullbench', fullbench, args: ['--no-prompt', NB_LOOPS, TEST_FILES])
-test('test-fuzzer', fuzzer, args: [FUZZER_TIME])
-test('test-frametest', frametest, args: [FUZZER_TIME])
+# XXX: (Need TEST) These timeouts (in seconds) when running on a HDD should be
+# at least six times bigger than on a SSD
+
+test('test-fullbench',
+ fullbench,
+ args: ['--no-prompt', NB_LOOPS, TEST_FILES],
+ timeout: 420) # Should enough when running on HDD
+test('test-fuzzer',
+ fuzzer,
+ args: [FUZZER_TIME],
+ timeout: 100)
+test('test-frametest',
+ frametest,
+ args: [FUZZER_TIME],
+ timeout: 100)