diff options
author | Klement Sekera <ksekera@cisco.com> | 2018-02-22 11:41:12 +0100 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-03-21 00:01:44 +0000 |
commit | 4c53313cd7e9b866412ad3e04b2d91ac098c1398 (patch) | |
tree | 185aa1f368ea2eb997c2ed46433b31178efc71c9 /test/sys_req/set_system_parameters.sh | |
parent | 2303cb181b51f63c909cd506125c1f832432865a (diff) |
reassembly: feature/concurrency
This change makes ip reassembly an interface feature, while adding
concurrency support. Due to this, punt is no longer needed to test
reassembly.
Change-Id: I467669514ec33283ce935be0f1dd08f07684f0c7
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/sys_req/set_system_parameters.sh')
-rwxr-xr-x | test/sys_req/set_system_parameters.sh | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/test/sys_req/set_system_parameters.sh b/test/sys_req/set_system_parameters.sh deleted file mode 100755 index aa23634b435..00000000000 --- a/test/sys_req/set_system_parameters.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/bin/bash - -file="$1" - -usage(){ - echo "Usage: $0 <requirements file>" -} - -if [ "$file" == "" ] -then - echo "Invalid parameters specified." - usage - exit 1 -fi - -if [ ! -f $file ] -then - echo "File '$file' does not exist." - usage - exit 1 -fi - -if test "$DOCKER_TEST" = "True" -then - echo "==============================================================================" - echo "DOCKER_TEST is set to '$DOCKER_TEST'." - echo "Skipping verification of some system parameters." - echo "Make sure these are set properly, otherwise tests might fail." - echo "Required values/criteria are in '`readlink -e $file`'." - echo "==============================================================================" - exit 0 -fi - -cat $file | grep -v -e '^#.*$' | grep -v -e '^ *$' | while read line -do - value_file=`echo $line | awk '{print $1}'` - operator=`echo $line | awk '{print $2}'` - value=`echo $line | awk '{print $3}'` - set_value=`echo $line | awk '{print $4}'` - if [[ "$value_file" == "" || "$operator" == "" || "$value" == "" || "$set_value" == "" ]] - then - echo "Syntax error in requirements file." - exit 1 - fi - current_value=`cat $value_file` - if test "$current_value" $operator "$value" - then - if test "$V" = "2" - then - echo "Requirement '$value_file $operator $value' satisfied." - fi - else - echo "Requirement '$value_file $operator $value' not satisfied." - echo "Writing '$set_value' to '$value_file'." - echo "$set_value" | tee "$value_file" > /dev/null - if ! test "`cat $value_file`" = "$set_value" - then - echo "Repeating the write using sudo..." - echo "$set_value" | sudo -n tee "$value_file" > /dev/null - if ! test "`cat $value_file`" = "$set_value" - then - echo "Couldn't set the required value. Is that value allowed? Is sudo working?" - exit 1 - fi - fi - echo "Succesfully wrote '$set_value' to '$value_file'." - fi -done |