Kaydet (Commit) a44a97eb authored tarafından Lars Langhans's avatar Lars Langhans

perftest12:#163613# cleanups for O3 usage

üst 1c74de73
...@@ -254,8 +254,15 @@ private void callEntry(String _sEntry, ParameterHelper _aParam) ...@@ -254,8 +254,15 @@ private void callEntry(String _sEntry, ParameterHelper _aParam)
for (int i=0;i<aList.size();i++) for (int i=0;i<aList.size();i++)
{ {
String sEntry = aList.get(i); String sEntry = aList.get(i);
callEntry(sEntry, _aParam); try
{
callEntry(sEntry, _aParam);
}
catch (AssureException e)
{
// we only need to catch the assure()
// nOkStatus += 2;
}
// we want to know the current status of the run through // we want to know the current status of the run through
// if the status is greater (more bad) then the current, // if the status is greater (more bad) then the current,
// we will remember this. Only the very bad status will // we will remember this. Only the very bad status will
...@@ -469,9 +476,13 @@ private void callEntry(String _sEntry, ParameterHelper _aParam) ...@@ -469,9 +476,13 @@ private void callEntry(String _sEntry, ParameterHelper _aParam)
{ {
String sPSFile = aList.get(i); String sPSFile = aList.get(i);
// TODO: this information has to come out of the ini files // Read information out of the ini files
String sStatusRunThrough = ""; String sIndexFile2 = FileHelper.appendPath(sPath, sPSFile + ".ini");
String sStatusMessage = ""; IniFile aIniFile2 = new IniFile(sIndexFile2);
String sStatusRunThrough = aIniFile2.getValue("global", "state");
String sStatusMessage = ""; // aIniFile2.getValue("global", "info");
aIniFile2.close();
String sHTMLFile = sPSFile + ".html"; String sHTMLFile = sPSFile + ".html";
aOutputter.indexLine(sHTMLFile, sPSFile, sStatusRunThrough, sStatusMessage); aOutputter.indexLine(sHTMLFile, sPSFile, sStatusRunThrough, sStatusMessage);
......
...@@ -51,6 +51,8 @@ public class JPEGEvaluator extends EnhancedComplexTestCase ...@@ -51,6 +51,8 @@ public class JPEGEvaluator extends EnhancedComplexTestCase
GlobalLogWriter.set(log); GlobalLogWriter.set(log);
ParameterHelper aParam = new ParameterHelper(param); ParameterHelper aParam = new ParameterHelper(param);
// aParam.getTestParameters().put("current_ok_status", -1);
// run through all documents found in Inputpath // run through all documents found in Inputpath
foreachResultCreateHTML(aParam); foreachResultCreateHTML(aParam);
} }
......
...@@ -48,6 +48,7 @@ public class Office implements IOffice ...@@ -48,6 +48,7 @@ public class Office implements IOffice
m_sResult = _sResult; m_sResult = _sResult;
if (_aParam.getReferenceType().toLowerCase().equals("ooo") || if (_aParam.getReferenceType().toLowerCase().equals("ooo") ||
_aParam.getReferenceType().toLowerCase().equals("o3") ||
_aParam.getReferenceType().toLowerCase().equals("ps") || _aParam.getReferenceType().toLowerCase().equals("ps") ||
_aParam.getReferenceType().toLowerCase().equals("pdf")) _aParam.getReferenceType().toLowerCase().equals("pdf"))
{ {
......
...@@ -102,6 +102,7 @@ public class OpenOfficePostscriptCreator implements IOffice ...@@ -102,6 +102,7 @@ public class OpenOfficePostscriptCreator implements IOffice
{ {
String sDocumentName = FileHelper.appendPath(m_sOutputURL, m_sBasename); String sDocumentName = FileHelper.appendPath(m_sOutputURL, m_sBasename);
if (m_aParameterHelper.getReferenceType().toLowerCase().equals("ooo") || if (m_aParameterHelper.getReferenceType().toLowerCase().equals("ooo") ||
m_aParameterHelper.getReferenceType().toLowerCase().equals("o3") ||
m_aParameterHelper.getReferenceType().toLowerCase().equals("ps") ) m_aParameterHelper.getReferenceType().toLowerCase().equals("ps") )
{ {
String sPrintURL = sDocumentName + ".ps"; String sPrintURL = sDocumentName + ".ps";
......
...@@ -267,7 +267,8 @@ public class ParameterHelper ...@@ -267,7 +267,8 @@ public class ParameterHelper
// check if MultiServiceFactory is given // check if MultiServiceFactory is given
if (getReferenceType().toLowerCase().equals("pdf") || if (getReferenceType().toLowerCase().equals("pdf") ||
getReferenceType().toLowerCase().equals("ps") || getReferenceType().toLowerCase().equals("ps") ||
getReferenceType().toLowerCase().equals("ooo")) getReferenceType().toLowerCase().equals("ooo") ||
getReferenceType().toLowerCase().equals("o3") )
{ {
if (xMSF == null) if (xMSF == null)
{ {
......
...@@ -184,7 +184,7 @@ public class Runner ...@@ -184,7 +184,7 @@ public class Runner
public static boolean run(String... args) public static boolean run(String... args)
{ {
System.out.println("OOoRunner Main() version from 20100913 (yyyymmdd)"); System.out.println("OOoRunner Main() version from 20100922 (yyyymmdd)");
setStartTime(getTime()); setStartTime(getTime());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment