From: Eduardo Ramos Testillano Date: Fri, 29 Jan 2016 16:11:30 +0000 (+0100) Subject: Checkings and warning (SEQ8 overflow) X-Git-Tag: REFACTORING_TESTING_LIBRARY~52 X-Git-Url: https://git.teslayout.com/public/public/public/?a=commitdiff_plain;h=8a29a0d920cda3366e3fe84f8cedb0dac14eb8d8;p=anna.git Checkings and warning (SEQ8 overflow) --- diff --git a/example/diameter/launcher/resources/scripts/clone.sh b/example/diameter/launcher/resources/scripts/clone.sh index 747e8b0..84a9479 100755 --- a/example/diameter/launcher/resources/scripts/clone.sh +++ b/example/diameter/launcher/resources/scripts/clone.sh @@ -181,6 +181,9 @@ then fi N_ITEMS=$((CLONE_SEQ_END - CLONE_SEQ_BEGIN + 1)) +[ "$N_ITEMS" -lt 1 ] && _exit "Initial sequence ($CLONE_SEQ_BEGIN) provided must be under final sequence value ($CLONE_SEQ_END) !!" +[ "$CLONE_SEQ_END" -gt "99999999" ] && echo "Warning: some sequence value in range provided overflows __SEQ8__ and derived variables (__IPV4__ and __IPV4HEX__). Be care about using them ..." + if [ -z "$N_GROUPS" ] then N_GROUPS=$((N_ITEMS/25))