Added framework for smoke tests and few basic tests.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
38
test/smoke_test/basic/10
Executable file
38
test/smoke_test/basic/10
Executable file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Copyright(c) 2012-2019 Intel Corporation
|
||||
# SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
#
|
||||
|
||||
# The line below specified that line under it should be used as the test's short description when launching test via run_tests script.
|
||||
# The text should not be longer than 80 chars - if it is, the script will strip addititonal characters
|
||||
# DESCRIPTION Verify cache start in different modes
|
||||
|
||||
# The line below says that this test should be included in BVT - it will be launched, when we use "./run_tests -b"
|
||||
# USE_IN_BVT
|
||||
|
||||
# Standard beginning for every test - get the main tests directory and
|
||||
# link the cas_lib file for CAS API, then use "start_test $*" to pass params
|
||||
# and do other necessary checks and setup
|
||||
TESTS_DIR="$(dirname $0)/../"
|
||||
. $TESTS_DIR/cas_lib
|
||||
start_test $*
|
||||
|
||||
# This is where the real test starts
|
||||
basic_i() {
|
||||
echo -n ""
|
||||
}
|
||||
|
||||
# Test if the APP exists, if it has option "--version" and if it returns a correct status
|
||||
NUMBER_OF_CORE_PARTITIONS="2"
|
||||
NUMBER_OF_CACHE_PARTITIONS="2"
|
||||
CACHE_FORCE_OPTION="yes"
|
||||
CACHE_LINE_SIZE="all"
|
||||
CACHE_MODE_OPTION="all"
|
||||
iteration basic_i
|
||||
|
||||
# Always return 0 at the end of the test - if at any point something has failed
|
||||
# in the API functions, test will end and return a proper result.
|
||||
# If you need to check other things during the test and end the test earlier, you
|
||||
# should end the test using "end_test $retval" function
|
||||
end_test 0
|
Reference in New Issue
Block a user