preprocessor: remove create_timing_csv.sh (moved to testsuite.git)
parent
c598f4dde3
commit
d7d8af34a0
|
@ -467,12 +467,10 @@ check-local: $(TARGETS)
|
|||
|
||||
check-matlab: $(M_XFAIL_TRS_FILES) $(M_TRS_FILES)
|
||||
./read_trs_files.sh "$(M_TRS_FILES)" "$(M_XFAIL_TRS_FILES)"
|
||||
./create_timing_csv.sh "$(M_TRS_FILES)" "$(M_XFAIL_TRS_FILES)"
|
||||
@echo 'Matlab Tests Done'
|
||||
|
||||
check-octave: $(O_XFAIL_TRS_FILES) $(O_TRS_FILES)
|
||||
./read_trs_files.sh "$(O_TRS_FILES)" "$(O_XFAIL_TRS_FILES)"
|
||||
./create_timing_csv.sh "$(O_TRS_FILES)" "$(O_XFAIL_TRS_FILES)"
|
||||
@echo 'Octave Tests Done'
|
||||
|
||||
%.m.trs %.m.log: %.mod
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
DATE=`date +%Y%m%d`
|
||||
if [[ `uname` == 'Linux' ]]; then
|
||||
CSVDIR="/home/$USER/testSuiteTiming"
|
||||
else
|
||||
CSVDIR="/Users/$USER/testSuiteTiming"
|
||||
fi
|
||||
|
||||
if [ ! -d $CSVDIR ]; then
|
||||
mkdir -p $CSVDIR
|
||||
fi
|
||||
|
||||
for file in $1 $2; do
|
||||
time=`grep cputime $file | cut -d: -f3 | sed -e 's/^[[:space:]]*//' | sed -e 's/[[:space:]]*$//'`
|
||||
csvfile=`echo $file | sed 's/\//-/g' | sed 's/\.trs$/\.csv/g'`
|
||||
if [ ! -f $CSVDIR/$csvfile ]; then
|
||||
name=`echo $file | sed 's/\.m\.trs$/.mod/g' | sed 's/\.o\.trs$/.mod/g'`
|
||||
echo "DATE,$name" > $CSVDIR/$csvfile
|
||||
fi
|
||||
echo $DATE,$time >> $CSVDIR/$csvfile
|
||||
done
|
Loading…
Reference in New Issue