Skip to content

Commit 27ccecb

Browse files
committed
tests: test IO_PRIORITY_MODE option
Signed-off-by: Dave <dave@leil.io>
1 parent e6906ad commit 27ccecb

File tree

3 files changed

+22
-17
lines changed

3 files changed

+22
-17
lines changed
Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1 @@
1-
timeout_set 3 minutes
2-
3-
CHUNKSERVERS=4
4-
USE_RAMDISK=YES
5-
MOUNT_EXTRA_CONFIG="cacheexpirationtime=0"
6-
setup_local_empty_saunafs info
7-
8-
cd ${info[mount0]}
9-
10-
mkdir dir_std
11-
12-
for count in {1..2}; do
13-
touch dir_std/file
14-
FILE_SIZE=100000000 BLOCK_SIZE=2135 file-generate dir_std/file &
15-
file-validate-growing dir_std/file 100000000
16-
rm dir_std/file
17-
done
1+
source test_suites/TestTemplates/test_simlutaneous_write_read.inc
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
IO_PRIORITY_MODE="SWITCH" source test_suites/TestTemplates/test_simlutaneous_write_read.inc
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
timeout_set 3 minutes
2+
3+
io_priority_mode=${IO_PRIORITY_MODE:-FIFO}
4+
5+
CHUNKSERVERS=4 \
6+
USE_RAMDISK=YES \
7+
MOUNT_EXTRA_CONFIG="cacheexpirationtime=0" \
8+
CHUNKSERVER_EXTRA_CONFIG="IO_PRIORITY_MODE=${io_priority_mode}"
9+
setup_local_empty_saunafs info
10+
11+
cd ${info[mount0]}
12+
13+
mkdir dir_std
14+
15+
for count in {1..2}; do
16+
touch dir_std/file
17+
FILE_SIZE=100000000 BLOCK_SIZE=2135 file-generate dir_std/file &
18+
file-validate-growing dir_std/file 100000000
19+
rm dir_std/file
20+
done

0 commit comments

Comments
 (0)