blob: e35ce8612865ec89746090a5f628db13afef0152 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
config-cpus 1
nr_iterations=$((($ktest_priority + 1) * 5))
config-timeout $(($nr_iterations * 45 + $(stress_timeout)))
test_main()
{
setup_tracing 'bcache:*'
if [ $NR_REBOOTS = 0 ]; then
setup_bcache
setup_fs ext4
else
existing_bcache
existing_fs ext4
rm -rf /mnt/$dev/*
fi
run_antagonist
if [ $NR_REBOOTS = $nr_iterations ]; then
run_dbench
run_bonnie
stop_fs
discard_all_devices
stop_bcache
else
run_dbench &
run_bonnie &
sleep 30
do_reboot
fi
}
|