#!/bin/bash

DIR_NPU=`dirname $0`

info_view()
{
    echo "*****************************************************"
    echo "***                                               ***"
    echo "***            NPU TEST                           ***"
    echo "***                                               ***"
    echo "*****************************************************"
}

info_view
echo "***********************************************************"
echo "npu stress test:					1"
echo "npu scale frequency test:			2"
echo "***********************************************************"

read -t 30 NPU_CHOICE

npu_stress_test()
{
	bash ${DIR_NPU}/npu_stress_test.sh
}

npu_scale_frequency_test()
{
	bash ${DIR_NPU}/npu_freq_scaling.sh 86400 2
}

case ${NPU_CHOICE} in
	1)
		npu_stress_test
		;;
	2)
		npu_scale_frequency_test
		;;
	*)
		echo "not found your input."
		;;
esac
