Browse Source

Adding test suites

master
Drew Short 9 years ago
parent
commit
6f526c0144
  1. 12
      scripts/tests/test_all.sh
  2. 13
      scripts/tests/test_cpu.sh
  3. 19
      scripts/tests/test_fileio.sh
  4. 13
      scripts/tests/test_mem.sh
  5. 13
      scripts/tests/test_threads.sh

12
scripts/tests/test_all.sh

@ -0,0 +1,12 @@
#!/usr/bin/env bash
if [ -z $1 ]; then
procs=1
else
procs=$1
fi
. test_cpu.sh
. test_threads.sh
. test_mem.sh
. test_fileio.sh

13
scripts/tests/test_cpu.sh

@ -0,0 +1,13 @@
#!/usr/bin/env bash
if [ -z $1 ]; then
procs=1
else
procs=$1
fi
bench_exec="sysbench"
bench_var="--num-threads=$procs"
bench="$bench_exec $benc_var"
$bench --test=cpu --cpu-max-prime=20000 run

19
scripts/tests/test_fileio.sh

@ -0,0 +1,19 @@
#!/usr/bin/env bash
if [ -z $1 ]; then
procs=1
else
procs=$1
fi
bench_exec="sysbench"
bench_var="--num-threads=$procs"
bench="$bench_exec $benc_var"
$bench --test=fileio --file-test-mode=seqwr run
free && sync && sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches' && free
$bench --test=fileio --file-test-mode=seqrd run
rm -f test_file.*
#$bench --test=fileio --file-test-mode=rndwr run
#$bench --test=fileio --file-test-mode=rndrd run
#rm -f test_file.*

13
scripts/tests/test_mem.sh

@ -0,0 +1,13 @@
#!/usr/bin/env bash
if [ -z $1 ]; then
procs=1
else
procs=$1
fi
bench_exec="sysbench"
bench_var="--num-threads=$procs"
bench="$bench_exec $benc_var"
$bench --test=mem run

13
scripts/tests/test_threads.sh

@ -0,0 +1,13 @@
#!/usr/bin/env bash
if [ -z $1 ]; then
procs=1
else
procs=$1
fi
bench_exec="sysbench"
bench_var="--num-threads=$procs"
bench="$bench_exec $benc_var"
$bench --test=threads run
Loading…
Cancel
Save