Skip to content

Commit

Permalink
Replaced $(...) instead of legacy backticked ... (#481)
Browse files Browse the repository at this point in the history
Signed-off-by: DaYea Yim <dyyim@protonmail.com>
  • Loading branch information
dyyim741 authored and ksh8281 committed Oct 29, 2019
1 parent 6aa1ede commit e1658b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/measure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

#make full
echo "======================================================="
REPO_BASE=`pwd`
REPO_BASE=$(pwd)
if [[ -z "$TESTDIR_BASE" ]]; then
TESTDIR_BASE="test/"
fi
if [[ -z "$MODE" ]]; then
MODE="release"
fi
TESTDIR_BASE=`realpath $TESTDIR_BASE`
TESTDIR_BASE=$(realpath $TESTDIR_BASE)
TESTBIN="$TESTDIR_BASE/bin/"
MEMPS="$TESTBIN/memps"
OCTANE_BASE="test/octane"
Expand Down Expand Up @@ -91,8 +91,8 @@ function measure(){
done ) >> $outfile &
sleep 1s;
echo $t >> $memresfile
MAXV=`cat $outfile | grep 'PSS:' | sed -e 's/,//g' | awk '{ if(max < $2) max=$2} END { print max}'`
MAXR=`cat $outfile | grep 'RSS:' | sed -e 's/,//g' | awk '{ if(max < $2) max=$2} END { print max}'`
MAXV=$(cat $outfile | grep 'PSS:' | sed -e 's/,//g' | awk '{ if(max < $2) max=$2} END { print max}')
MAXR=$(cat $outfile | grep 'RSS:' | sed -e 's/,//g' | awk '{ if(max < $2) max=$2} END { print max}')
echo 'MaxPSS:'$MAXV', MaxRSS:'$MAXR >> $memresfile
rm $outfile
echo $MAXV
Expand Down Expand Up @@ -123,7 +123,7 @@ else
echo "== Measure Sunspider Time =="
cd $SUNSPIDER_BASE
./sunspider --shell=$cmd --suite=sunspider-1.0.2 --args="$args" | tee $timeresfile
tmpresult=`cat $timeresfile | grep "Results are located at" | cut -d' ' -f5`
tmpresult=$(cat $timeresfile | grep "Results are located at" | cut -d' ' -f5)
cp $tmpresult $TEST_RESULT_PATH/sunspider_time.res
cd -
fi
Expand Down

0 comments on commit e1658b8

Please sign in to comment.