Debian Codegraph @

tests/osstt

raw
1 #!/bin/sh
2
3 set -e
4
5 # This script stands for "OpenStack Shell Test Tools"
6 # and is a set of functions used to test the validity of
7 # shell scripts.
8 # Param: $1 file1
9 # $2 file2
10 osstt_assertFilesAreSame () {
11 FILE1=${1}
12 FILE2=${2}
13 F1_MD5=$(md5sum ${FILE1} | awk '{print $1}')
14 F2_MD5=$(md5sum ${FILE2} | awk '{print $1}')
15 if [ "${F1_MD5}" = "${F2_MD5}" ] ; then
16 RET=yes
17 else
18 RET=no
19 fi
20 }