" >> ./build_results.html
+ echo " " >> ./build_results.html
+ echo " | Element | " >> ./build_results.html
+ echo " Status | " >> ./build_results.html
+ echo " Nb Errors | " >> ./build_results.html
+ echo " Nb Warnings | " >> ./build_results.html
+ echo "
" >> ./build_results.html
+}
+
+function summary_table_row {
+ echo " " >> ./build_results.html
+ echo " | $1" >> ./build_results.html
+ if [ -f $2 ]
+ then
+ STATUS=`egrep -c "$3" $2`
+ if [ $STATUS -eq 1 ]
+ then
+ echo " | OK" >> ./build_results.html
+ else
+ echo " | KO" >> ./build_results.html
+ fi
+ NB_ERRORS=`egrep -c "error:" $2`
+ if [ $NB_ERRORS -eq 0 ]
+ then
+ echo " | $NB_ERRORS" >> ./build_results.html
+ else
+ echo " | $NB_ERRORS" >> ./build_results.html
+ fi
+ NB_WARNINGS=`egrep "warning:" $2 | egrep -v "jobserver unavailable|Clock skew detected.|flexran.proto" | egrep -c "warning:"`
+ if [ $NB_WARNINGS -eq 0 ]
+ then
+ echo " | $NB_WARNINGS" >> ./build_results.html
+ else
+ if [ $NB_WARNINGS -gt 20 ]
+ then
+ echo " | $NB_WARNINGS" >> ./build_results.html
+ else
+ echo " | $NB_WARNINGS" >> ./build_results.html
+ fi
+ fi
+ if [ $NB_ERRORS -ne 0 ] || [ $NB_WARNINGS -ne 0 ]
+ then
+ details_table "$1" $2 $4
+ fi
+ else
+ echo " | Unknown" >> ./build_results.html
+ echo " | --" >> ./build_results.html
+ echo " | --" >> ./build_results.html
+ fi
+ echo " |
" >> ./build_results.html
+}
+
+function summary_table_footer {
+ echo "
" >> ./build_results.html
+}
+
+function sca_summary_table_header {
+ echo " " >> ./build_results.html
-echo " " >> ./build_results.html
-echo " | Element | " >> ./build_results.html
-echo " Status | " >> ./build_results.html
-echo " Nb Errors | " >> ./build_results.html
-echo " Nb Warnings | " >> ./build_results.html
-echo "
" >> ./build_results.html
-echo " " >> ./build_results.html
-echo " | LTE SoftModem - Release 14" >> ./build_results.html
-if [ -f ./archives/enb_usrp/lte-softmodem.Rel14.txt ]
-then
- STATUS=`egrep -c "Built target lte-softmodem" ./archives/enb_usrp/lte-softmodem.Rel14.txt`
- if [ $STATUS -eq 1 ]
- then
- echo " | OK" >> ./build_results.html
- else
- echo " | KO" >> ./build_results.html
- fi
- STATUS=`egrep -c "error:" ./archives/enb_usrp/lte-softmodem.Rel14.txt`
- if [ $STATUS -eq 0 ]
- then
- echo " | $STATUS" >> ./build_results.html
- else
- echo " | $STATUS" >> ./build_results.html
- fi
- STATUS=`egrep -c "warning:" ./archives/enb_usrp/lte-softmodem.Rel14.txt`
- if [ $STATUS -eq 0 ]
- then
- echo " | $STATUS" >> ./build_results.html
- else
- echo " | $STATUS" >> ./build_results.html
- fi
-else
- echo " | Unknown" >> ./build_results.html
- echo " | --" >> ./build_results.html
- echo " | --" >> ./build_results.html
-fi
-echo " |
" >> ./build_results.html
-echo " " >> ./build_results.html
-echo " | Coding - Release 14" >> ./build_results.html
-if [ -f ./archives/enb_usrp/coding.Rel14.txt ]
-then
- STATUS=`egrep -c "Built target coding" ./archives/enb_usrp/coding.Rel14.txt`
- if [ $STATUS -eq 1 ]
- then
- echo " | OK" >> ./build_results.html
- else
- echo " | KO" >> ./build_results.html
- fi
- STATUS=`egrep -c "error:" ./archives/enb_usrp/coding.Rel14.txt`
- if [ $STATUS -eq 0 ]
- then
- echo " | $STATUS" >> ./build_results.html
- else
- echo " | $STATUS" >> ./build_results.html
- fi
- STATUS=`egrep -c "warning:" ./archives/enb_usrp/coding.Rel14.txt`
- if [ $STATUS -eq 0 ]
- then
- echo " | $STATUS" >> ./build_results.html
- else
- echo " | $STATUS" >> ./build_results.html
- fi
-else
- echo " | Unknown" >> ./build_results.html
- echo " | --" >> ./build_results.html
- echo " | --" >> ./build_results.html
-fi
-echo " |
" >> ./build_results.html
-echo " " >> ./build_results.html
-echo " | OAI USRP device if - Release 14" >> ./build_results.html
-if [ -f ./archives/enb_usrp/oai_usrpdevif.Rel14.txt ]
-then
- STATUS=`egrep -c "Built target oai_usrpdevif" ./archives/enb_usrp/oai_usrpdevif.Rel14.txt`
- if [ $STATUS -eq 1 ]
- then
- echo " | OK" >> ./build_results.html
- else
- echo " | KO" >> ./build_results.html
- fi
- STATUS=`egrep -c "error:" ./archives/enb_usrp/oai_usrpdevif.Rel14.txt`
- if [ $STATUS -eq 0 ]
- then
- echo " | $STATUS" >> ./build_results.html
- else
- echo " | $STATUS" >> ./build_results.html
- fi
- STATUS=`egrep -c "warning:" ./archives/enb_usrp/oai_usrpdevif.Rel14.txt`
- if [ $STATUS -eq 0 ]
- then
- echo " | $STATUS" >> ./build_results.html
- else
- echo " | $STATUS" >> ./build_results.html
- fi
-else
- echo " | Unknown" >> ./build_results.html
- echo " | --" >> ./build_results.html
- echo " | --" >> ./build_results.html
-fi
-echo " |
" >> ./build_results.html
-echo " " >> ./build_results.html
-echo " | Parameters Lib Config - Release 14" >> ./build_results.html
-if [ -f ./archives/enb_usrp/params_libconfig.Rel14.txt ]
-then
- STATUS=`egrep -c "Built target params_libconfig" ./archives/enb_usrp/params_libconfig.Rel14.txt`
- if [ $STATUS -eq 1 ]
- then
- echo " | OK" >> ./build_results.html
- else
- echo " | KO" >> ./build_results.html
- fi
- STATUS=`egrep -c "error:" ./archives/enb_usrp/params_libconfig.Rel14.txt`
- if [ $STATUS -eq 0 ]
- then
- echo " | $STATUS" >> ./build_results.html
- else
- echo " | $STATUS" >> ./build_results.html
- fi
- STATUS=`egrep -c "warning:" ./archives/enb_usrp/params_libconfig.Rel14.txt`
- if [ $STATUS -eq 0 ]
- then
- echo " | $STATUS" >> ./build_results.html
- else
- echo " | $STATUS" >> ./build_results.html
- fi
-else
- echo " | Unknown" >> ./build_results.html
- echo " | --" >> ./build_results.html
- echo " | --" >> ./build_results.html
-fi
-echo " |
" >> ./build_results.html
-echo "
" >> ./build_results.html
+echo " " >> ./build_results.html
-echo " " >> ./build_results.html
-echo " | Element | " >> ./build_results.html
-echo " Status | " >> ./build_results.html
-echo " Nb Errors | " >> ./build_results.html
-echo " Nb Warnings | " >> ./build_results.html
-echo "
" >> ./build_results.html
-echo " " >> ./build_results.html
-echo " | Basic Simulator eNb - Release 14" >> ./build_results.html
-if [ -f ./archives/basic_sim/basic_simulator_enb.txt ]
-then
- STATUS=`egrep -c "Built target lte-softmodem" ./archives/basic_sim/basic_simulator_enb.txt`
- if [ $STATUS -eq 1 ]
- then
- echo " | OK" >> ./build_results.html
- else
- echo " | KO" >> ./build_results.html
- fi
- STATUS=`egrep -c "error:" ./archives/basic_sim/basic_simulator_enb.txt`
- if [ $STATUS -eq 0 ]
- then
- echo " | $STATUS" >> ./build_results.html
- else
- echo " | $STATUS" >> ./build_results.html
- fi
- STATUS=`egrep -c "warning:" ./archives/basic_sim/basic_simulator_enb.txt`
- if [ $STATUS -eq 0 ]
- then
- echo " | $STATUS" >> ./build_results.html
- else
- echo " | $STATUS" >> ./build_results.html
- fi
-else
- echo " | Unknown" >> ./build_results.html
- echo " | --" >> ./build_results.html
- echo " | --" >> ./build_results.html
-fi
-echo " |
" >> ./build_results.html
-echo " " >> ./build_results.html
-echo " | Basic Simulator UE - Release 14" >> ./build_results.html
-if [ -f ./archives/basic_sim/basic_simulator_ue.txt ]
-then
- STATUS=`egrep -c "Built target lte-uesoftmodem" ./archives/basic_sim/basic_simulator_ue.txt`
- if [ $STATUS -eq 1 ]
- then
- echo " | OK" >> ./build_results.html
- else
- echo " | KO" >> ./build_results.html
- fi
- STATUS=`egrep -c "error:" ./archives/basic_sim/basic_simulator_ue.txt`
- if [ $STATUS -eq 0 ]
- then
- echo " | $STATUS" >> ./build_results.html
- else
- echo " | $STATUS" >> ./build_results.html
- fi
- STATUS=`egrep -c "warning:" ./archives/basic_sim/basic_simulator_ue.txt`
- if [ $STATUS -eq 0 ]
- then
- echo " | $STATUS" >> ./build_results.html
- else
- echo " | $STATUS" >> ./build_results.html
- fi
-else
- echo " | Unknown" >> ./build_results.html
- echo " | --" >> ./build_results.html
- echo " | --" >> ./build_results.html
-fi
-echo " |
" >> ./build_results.html
-echo " " >> ./build_results.html
-echo " | Conf 2 UE data - Release 14" >> ./build_results.html
-if [ -f ./archives/basic_sim/conf2uedata.Rel14.txt ]
-then
- STATUS=`egrep -c "Built target conf2uedata" ./archives/basic_sim/conf2uedata.Rel14.txt`
- if [ $STATUS -eq 1 ]
- then
- echo " | OK" >> ./build_results.html
- else
- echo " | KO" >> ./build_results.html
- fi
- STATUS=`egrep -c "error:" ./archives/basic_sim/conf2uedata.Rel14.txt`
- if [ $STATUS -eq 0 ]
- then
- echo " | $STATUS" >> ./build_results.html
- else
- echo " | $STATUS" >> ./build_results.html
- fi
- STATUS=`egrep -c "warning:" ./archives/basic_sim/conf2uedata.Rel14.txt`
- if [ $STATUS -eq 0 ]
- then
- echo " | $STATUS" >> ./build_results.html
- else
- echo " | $STATUS" >> ./build_results.html
- fi
-else
- echo " | Unknown" >> ./build_results.html
- echo " | --" >> ./build_results.html
- echo " | --" >> ./build_results.html
-fi
-echo " |
" >> ./build_results.html
-echo "
" >> ./build_results.html
+summary_table_header "OAI Build eNB -- USRP option"
+summary_table_row "LTE SoftModem - Release 14" ./archives/enb_usrp/lte-softmodem.Rel14.txt "Built target lte-softmodem" ./enb_usrp_row1.html
+summary_table_row "Coding - Release 14" ./archives/enb_usrp/coding.Rel14.txt "Built target coding" ./enb_usrp_row2.html
+summary_table_row "OAI USRP device if - Release 14" ./archives/enb_usrp/oai_usrpdevif.Rel14.txt "Built target oai_usrpdevif" ./enb_usrp_row3.html
+summary_table_row "Parameters Lib Config - Release 14" ./archives/enb_usrp/params_libconfig.Rel14.txt "Built target params_libconfig" ./enb_usrp_row4.html
+summary_table_footer
+
+summary_table_header "OAI Build basic simulator option"
+summary_table_row "Basic Simulator eNb - Release 14" ./archives/basic_sim/basic_simulator_enb.txt "Built target lte-softmodem" ./basic_sim_row1.html
+summary_table_row "Basic Simulator UE - Release 14" ./archives/basic_sim/basic_simulator_ue.txt "Built target lte-uesoftmodem" ./basic_sim_row2.html
+summary_table_row "Conf 2 UE data - Release 14" ./archives/basic_sim/conf2uedata.Rel14.txt "Built target conf2uedata" ./basic_sim_row3.html
+summary_table_footer
+
+summary_table_header "OAI Build Physical simulators option"
+summary_table_row "DL Simulator - Release 14" ./archives/phy_sim/dlsim.Rel14.txt "Built target dlsim" ./phy_sim_row1.html
+summary_table_row "UL Simulator - Release 14" ./archives/phy_sim/ulsim.Rel14.txt "Built target ulsim" ./phy_sim_row2.html
+summary_table_row "Coding - Release 14" ./archives/phy_sim/coding.Rel14.txt "Built target coding" ./phy_sim_row3.html
+summary_table_footer
+
+summary_table_header "OAI Build eNB -- ETHERNET transport option"
+summary_table_row "LTE SoftModem w/o S1 - Release 14" ./archives/enb_eth/lte-softmodem-nos1.Rel14.txt "Built target lte-softmodem" ./enb_eth_row1.html
+summary_table_row "Coding - Release 14" ./archives/enb_eth/coding.Rel14.txt "Built target coding" ./enb_eth_row2.html
+summary_table_row "OAI ETHERNET transport - Release 14" ./archives/enb_eth/oai_eth_transpro.Rel14.txt "Built target oai_eth_transpro" ./enb_eth_row3.html
+summary_table_row "Parameters Lib Config - Release 14" ./archives/enb_eth/params_libconfig.Rel14.txt "Built target params_libconfig" ./enb_eth_row4.html
+summary_table_row "RB Tools - Release 14" ./archives/enb_eth/rb_tool.Rel14.txt "Built target rb_tool" ./enb_eth_row5.html
+summary_table_row "NAS Mesh - Release 14" ./archives/enb_eth/nasmesh.Rel14.txt "Built target nasmesh" ./enb_eth_row6.html
+summary_table_footer
+
+summary_table_header "OAI Build UE -- ETHERNET transport option"
+summary_table_row "LTE UE SoftModem w/o S1 - Release 14" ./archives/ue_eth/lte-uesoftmodem-nos1.Rel14.txt "Built target lte-uesoftmodem" ./ue_eth_row1.html
+summary_table_row "Coding - Release 14" ./archives/ue_eth/coding.Rel14.txt "Built target coding" ./ue_eth_row2.html
+summary_table_row "OAI ETHERNET transport - Release 14" ./archives/ue_eth/oai_eth_transpro.Rel14.txt "Built target oai_eth_transpro" ./ue_eth_row3.html
+summary_table_row "Parameters Lib Config - Release 14" ./archives/ue_eth/params_libconfig.Rel14.txt "Built target params_libconfig" ./ue_eth_row4.html
+summary_table_row "RB Tools - Release 14" ./archives/ue_eth/rb_tool.Rel14.txt "Built target rb_tool" ./ue_eth_row5.html
+summary_table_row "NAS Mesh - Release 14" ./archives/ue_eth/nasmesh.Rel14.txt "Built target nasmesh" ./ue_eth_row6.html
+summary_table_footer
+
+echo "