Merge "Add dependency for hexdump"

This commit is contained in:
Jenkins 2016-03-23 23:06:36 +00:00 committed by Gerrit Code Review
commit 11b111fd7a
4 changed files with 19 additions and 0 deletions

View File

@ -1,5 +1,6 @@
bc
bridge-utils
bsdmainutils
curl
g++
gcc

View File

@ -25,5 +25,6 @@ screen
tar
tcpdump
unzip
util-linux
wget
zlib-devel

View File

@ -30,6 +30,7 @@ screen
tar
tcpdump
unzip
util-linux
wget
which
zlib-devel

View File

@ -9,6 +9,22 @@ source $TOP/functions
source $TOP/tests/unittest.sh
echo "Testing generate_hex_string()"
VAL=$(generate_hex_string 16)
if [[ ${#VAL} -eq 32 ]]; then
passed "OK"
else
failed "generate_hex_string 16 failed ${#VAL}"
fi
VAL=$(generate_hex_string 32)
if [[ ${#VAL} -eq 64 ]]; then
passed "OK"
else
failed "generate_hex_string 32 failed ${#VAL}"
fi
echo "Testing die_if_not_set()"
bash -c "source $TOP/functions; X=`echo Y && true`; die_if_not_set $LINENO X 'not OK'"