blob: 0b0756d0bb2f3f95355691ce7b7e3b569353a0ee [file] [log] [blame]
#!/bin/bash
#///////////////////////////////////////////////////////////////////////////////
#// Copyright (c) 2000-2017 Ericsson Telecom AB //
#// //
#// All rights reserved. This program and the accompanying materials //
#// are made available under the terms of the Eclipse Public License v1.0 //
#// which accompanies this distribution, and is available at //
#// http://www.eclipse.org/legal/epl-v10.html //
#///////////////////////////////////////////////////////////////////////////////
# Add this to the CFG file:
#
#[EXTERNAL_COMMANDS]
#EndTestCase := "storePerformanceResults.sh"
#
CURRENT_TIME=`date '+%Y-%m-%d %H:%M:%S'`
TESTREPORTFILE=`eval "ls -1t tc_EPTF_Scheduler_PerfTest*.xml | awk '// {print; exit;}'"`
echo "TESTREPORTFILE: $TESTREPORTFILE"
if [ -f "$TESTREPORTFILE" ]
then
#only write header at the first run
if [ ! -f "SchedulerPerfTest.log" ]
then
echo "<h3>Scheduler Performance Test Report</h3>" >> temp1.txt
echo "Test report was generated at: $CURRENT_TIME<br>" >> temp1.txt
fi
touch SchedulerPerfTest.log
echo "<div class=\"Scheduler_PerfTestResults\">" >> temp1.txt
echo "<h4>TestCase $1:</h4>" >> temp1.txt
testresultsXML2HTML.sh $TESTREPORTFILE >> temp1.txt
echo "</div>" >> temp1.txt
\rm $TESTREPORTFILE
fi