# each application will create a folder under OUTPUT_DIR
# each application will create a folder under OUTPUT_DIR
OUTPUT_DIR=${1:-output_dir}
declare-i NUM_MODULE
declare-i DEFAULT_NUM_MODULE
declare-i TIMEOUT
declare-i DEFAULT_TIMEOUT
DEFAULT_OUTPUT_DIR='./output_dir'
DEFAULT_NUM_MODULE=100
DEFAULT_TESTCASE_DIR='./tests'
DEFAULT_TIMEOUT=10
DEFAULT_APPLICATION_LIST='./application_list.txt'
function usage {
echo"Run smoke test"
echo"Usage: $0"
echo" -a <list of applications to test>. This should point to a file with lines of '<name>/<version>', it can be generated using either generate_modules_list or software_usage.default: $DEFAULT_APPLICATION_LIST"
echo" -n <number of modules to test>. Specify a large number to test all softwares, default: $DEFAULT_NUM_MODULE"
echo" -o <output directory>, Output file will be generated at OUTPUT_DIR/report.txt, default: $DEFAULT_OUTPUT_DIR"
echo" -t <testcases directories>.Testcases will be loaded from this directory. default: $DEFAULT_TESTCASE_DIR"
echo" -T <timout period in seconds>, default: $DEFAULT_TIMEOUT"