Commit 158b19b3 authored by Jan Kiene's avatar Jan Kiene
Browse files

add argument to get_wmops.sh too

parent c6855044
Loading
Loading
Loading
Loading
+15 −4
Original line number Diff line number Diff line
@@ -28,15 +28,26 @@
# accordance with the laws of the Federal Republic of Germany excluding its conflict of law rules and
# the United Nations Convention on Contracts on the International Sales of Goods.

# get format from command line
if [ $# -ne 2 ]; then
  echo "Usage: $0 \"ivas-format(s)\" \"output-format(s)\""
function usage {
  echo "Usage: $0 \"ivas-format(s)\" \"output-format(s)\" \"mode[full|mem_only]\""
  exit 1
}

# get format from command line
if [ $# -ne 3 ]; then
    usage
fi

ivas_format=$1
output_format="$2"

mode_arg_script=""
if [ "$3" = "mem_only" ]; then
    mode_arg_script="--wmc_tool_mem_only"
elif [ "$3" != "full" ]; then
    usage
fi

date=`date +%Y%m%d`                         # used for log-file file ending
shortDate=`date "+%b %d" | sed -e "s/\ /_/g"`    # stored in the log-file
fullDate=`date "+%c" | sed -e "s/\ /_/g"`       # stored in the log-file
@@ -56,7 +67,7 @@ wmopsFilenameFlc=${destDir}/wmops/logs/${wmopsFilenameFlcLast}
ret_val=0

# instrument and build
./scripts/IvasBuildAndRunChecks.py -p $config_file --checks COMPLEXITY --create_complexity_tables ${wmopsFilenameFlc} -C $ivas_format -f ${ep} --oc $output_format
./scripts/IvasBuildAndRunChecks.py $mode_arg_script -p $config_file --checks COMPLEXITY --create_complexity_tables ${wmopsFilenameFlc} -C $ivas_format -f ${ep} --oc $output_format
ret_val=$?

# get the info on worst-case operating point: WMOPS number, enc-operating mode, dec-operating mode