#!/bin/sh

. /root/qaset/config
. /usr/share/qa/qaset/libs/common.sh

#run test
WORKLOAD_NAME="process_scheduler_cfs_cyclictest_half_core"    # case
WORKLOAD_LOG_NAME="qa_test_cyclictest"      # suite
BENCHMARK_SCRIPT="/usr/bin/cyclictest"

cpunum=$(cat /proc/cpuinfo | grep processor | wc -l)
NUM=$(($cpunum/2))
BENCHMARK_SCRIPT_OPTIONS=" -t $NUM -q -n -l 100000"
sq_benchmark_run ${WORKLOAD_NAME} ${WORKLOAD_LOG_NAME} ${BENCHMARK_SCRIPT} ${BENCHMARK_SCRIPT_OPTIONS}

