vpx/scripts/nightly_run.sh
Yi Luo b743b3a5f6 Daily test sends a HTML file for better formatting
Change-Id: I212a617b1a2faa65c231c1894ea114585301faa4
2017-08-06 15:46:59 -07:00

65 lines
2.4 KiB
Bash
Executable File

#!/bin/sh
script_path=~/Dev/sandbox/libvpx/scripts
av1_code=~/Dev/av1d
vp9_code=~/Dev/vp9d
log_path=~/Dev/log
#date_str=`date +%H:%M_%b_%d_%Y`
date_str=`date +%b_%d_%Y`
log_file=report_$date_str.txt
html_log_file=report_$date_str.html
yest_str=`date -d yesterday +%b_%d_%Y`
yest_log_file=report_$yest_str.txt
test_dir=~/Dev/nightly
rm $test_dir/*
$script_path/gen_html_header.sh > $log_path/$html_log_file
# AV1
echo "<p>" >> $log_path/$html_log_file
$script_path/sync_codebase.sh $av1_code/aom >> $log_path/$html_log_file 2>&1
echo "</p>" >> $log_path/$html_log_file
echo "<p>" >> $log_path/$html_log_file
$script_path/av1_conf_build.sh $av1_code >> $log_path/$html_log_file 2>&1
echo "</p>" >> $log_path/$html_log_file
pdfps=`cat $log_path/$yest_log_file | grep e_ok | awk '{print $2}' | awk 'NR==1 {print $1}'`
$script_path/nightly_speed.sh $av1_code 0 $pdfps $html_log_file >> $log_path/$log_file 2>&1
pdfps=`cat $log_path/$yest_log_file | grep e_ok | awk '{print $2}' | awk 'NR==2 {print $1}'`
$script_path/nightly_speed.sh $av1_code 2 $pdfps $html_log_file >> $log_path/$log_file 2>&1
# VP9
echo "<p>" >> $log_path/$html_log_file
$script_path/sync_codebase.sh $vp9_code/libvpx >> $log_path/$html_log_file 2>&1
echo "</p>" >> $log_path/$html_log_file
echo "<p>" >> $log_path/$html_log_file
$script_path/vp9_conf_build.sh $vp9_code lowbitdepth >> $log_path/$html_log_file 2>&1
echo "</p>" >> $log_path/$html_log_file
pdfps=`cat $log_path/$yest_log_file | grep e_ok | awk '{print $2}' | awk 'NR==3 {print $1}'`
$script_path/vp9_nightly_speed.sh $vp9_code 0 $pdfps $html_log_file >> $log_path/$log_file 2>&1
echo "<p>" >> $log_path/$html_log_file
$script_path/vp9_conf_build.sh $vp9_code highbitdepth >> $log_path/$log_file 2>&1
echo "</p>" >> $log_path/$html_log_file
pdfps=`cat $log_path/$yest_log_file | grep e_ok | awk '{print $2}' | awk 'NR==4 {print $1}'`
$script_path/vp9_nightly_speed.sh $vp9_code 2 $pdfps $html_log_file >> $log_path/$log_file 2>&1
users=luoyi
host_name=`hostname`
sender=luoyi
cc_list="--cc=yunqingwang,vpx-eng"
$script_path/gen_html_footer.sh >> $log_path/$html_log_file
#sendgmr --to=$users $cc_list --subject="Codec Daily Report" --from=$sender --reply_to=$sender < $log_path/$log_file
sendgmr --to=$users $cc_list --subject="Codec Daily Report" --from=$sender --reply_to=$sender --html_file=/usr/local/google/home/luoyi/Dev/log/$html_log_file --body_file=/usr/local/google/home/luoyi/Dev/log/$html_log_file