diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2006-01-05 00:28:10 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2006-01-05 00:28:10 +0000 |
commit | e897f0a8054d711168fcf5c30739f2968613d4b6 (patch) | |
tree | 6349bd55ca1e40cd02c256d787d6a26266baae93 /test/test-backend.sh | |
parent | 270561dd09f1c2c0b558e65d834d6badcb55be40 (diff) |
add the possibility for a prepare step before doing the actual test step
svn path=/trunk/; revision=16945
Diffstat (limited to 'test/test-backend.sh')
-rw-r--r-- | test/test-backend.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/test-backend.sh b/test/test-backend.sh index 66dccc5176..93eb4e50cb 100644 --- a/test/test-backend.sh +++ b/test/test-backend.sh @@ -53,6 +53,7 @@ TEST_STEPS[0]=0 # number of steps of a specific nesting level TEST_OK=0 # global count of succeeded steps TEST_FAILED=0 # global count of failed steps +TEST_STEP_PRE_CB= TEST_STEP_POST_CB= # level number of this test item (suite or step) @@ -208,11 +209,14 @@ test_step_add() { fi if [ $TEST_RUN = "ON" ]; then + # preprecessing step + $TEST_STEP_PRE_CB #echo "command: "$2" opt1: "$3" opt2: "$4" opt3: "$5" opt4: "$6" opt5: "$7 TEST_STEP_NAME=$1 # actually run the command to test now $2 #"$3" "$4" "$5" "$6" "$7" + # post precessing step $TEST_STEP_POST_CB else if [[ $TEST_NESTING_LEVEL -eq 0 ]]; then @@ -222,7 +226,13 @@ test_step_add() { } -# set the a post processing function +# set the preprocessing function +# $1 remark +test_step_set_pre() { + TEST_STEP_PRE_CB=$1 +} + +# set the post processing function # $1 remark test_step_set_post() { TEST_STEP_POST_CB=$1 |