Merge pull request #150 from benavrhm/topic_benavrhm_fixups_20201112
Topic benavrhm fixups 20201112
This commit is contained in:
commit
eb549b4c21
7 changed files with 68 additions and 12 deletions
|
|
@ -205,6 +205,7 @@ err(){
|
|||
echo "Received: $2"
|
||||
fi
|
||||
echo -e "\e[0m"
|
||||
echo "Diff between Expected and Received:"
|
||||
echo "$ret"| od -t c > $dir/clixon-ret
|
||||
echo "$expect"| od -t c > $dir/clixon-expect
|
||||
diff $dir/clixon-expect $dir/clixon-ret
|
||||
|
|
|
|||
|
|
@ -19,7 +19,9 @@ s="$_" ; . ./lib.sh || if [ "$s" = $0 ]; then exit 0; else return 0; fi
|
|||
# -f %e gives elapsed wall clock time but is not available on all systems
|
||||
# so we use time -p for POSIX compliance and awk to get wall clock time
|
||||
# Note sometimes time -p is used and sometimes $TIMEFN, cant get it to work same everywhere
|
||||
# time function (this is a mess to get right on freebsd/linux)
|
||||
: ${TIMEFN:=time -p} # portability: 2>&1 | awk '/real/ {print $2}'
|
||||
if ! $TIMEFN true; then err "A working time function" "'$TIMEFN' does not work"; fi
|
||||
|
||||
APPNAME=example
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,9 @@ s="$_" ; . ./lib.sh || if [ "$s" = $0 ]; then exit 0; else return 0; fi
|
|||
# -f %e gives elapsed wall clock time but is not available on all systems
|
||||
# so we use time -p for POSIX compliance and awk to get wall clock time
|
||||
# Note sometimes time -p is used and sometimes $TIMEFN, cant get it to work same everywhere
|
||||
# time function (this is a mess to get right on freebsd/linux)
|
||||
: ${TIMEFN:=time -p} # portability: 2>&1 | awk '/real/ {print $2}'
|
||||
if ! $TIMEFN true; then err "A working time function" "'$TIMEFN' does not work"; fi
|
||||
|
||||
APPNAME=example
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ s="$_" ; . ./lib.sh || if [ "$s" = $0 ]; then exit 0; else return 0; fi
|
|||
# so we use time -p for POSIX compliance and awk to get wall clock time
|
||||
# Note sometimes time -p is used and sometimes $TIMEFN, cant get it to work same everywhere
|
||||
: ${TIMEFN:=time -p} # portability: 2>&1 | awk '/real/ {print $2}'
|
||||
if ! $TIMEFN true; then err "A working time function" "'$TIMEFN' does not work"; fi
|
||||
|
||||
APPNAME=example
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ fin=$dir/fin
|
|||
|
||||
# time function (this is a mess to get right on freebsd/linux)
|
||||
: ${TIMEFN:=time -p} # portability: 2>&1 | awk '/real/ {print $2}'
|
||||
if ! $TIMEFN true; then err "A working time function" "'$TIMEFN' does not work"; fi
|
||||
|
||||
APPNAME=example
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ s="$_" ; . ./lib.sh || if [ "$s" = $0 ]; then exit 0; else return 0; fi
|
|||
|
||||
# time function (this is a mess to get right on freebsd/linux)
|
||||
: ${TIMEFN:=time -p} # portability: 2>&1 | awk '/real/ {print $2}'
|
||||
if ! $TIMEFN true; then err "A working time function" "'$TIMEFN' does not work"; fi
|
||||
|
||||
APPNAME=example
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue