Skip to content

Commit

Permalink
Fix and bump the compliance suite
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@16482 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jun 25, 2013
1 parent a96f4b9 commit 98624ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Examples/ComplianceSuite.mos
Expand Up @@ -19,18 +19,18 @@ commands:={"ulimit -t 120 && omc +d=nogen " + OpenModelica.Scripting.typeNameStr
echo(true);
String(size(allClasses,1)) + " number of classes";

min(writeFile(typeNameString(cl)+".mos","
writeFile(\""+typeNameString(cl)+".res\",\"<testcase name=\\\""+last(OpenModelica.Scripting.typeNameStrings(cl))+"\\\"><error type=\\\"killed\\\"/></testcase>\");
min(OpenModelica.Scripting.writeFile(typeNameString(cl)+".mos","
OpenModelica.Scripting.writeFile(\""+typeNameString(cl)+".res\",\"<testcase name=\\\""+OpenModelica.Scripting.escapeXML(last(OpenModelica.Scripting.typeNameStrings(cl)))+"\\\"><error type=\\\"killed\\\"/></testcase>\");
loadModel(ModelicaCompliance);getErrorString();
deleteClass(ModelicaCompliance.Components.Declarations.DoubleDeclarationComps);getErrorString();
deleteClass(ModelicaCompliance.Components.Declarations.DoubleDeclarationMixed);getErrorString();
deleteClass(ModelicaCompliance.Components.Declarations.TypeNameAsComponentName);getErrorString();
rec:=simulate("+OpenModelica.Scripting.typeNameString(cl)+");getErrorString();
resultFile := rec.resultFile;
messages := rec.messages;
messages := escapeXML(messages);
messages := OpenModelica.Scripting.escapeXML(messages);
success := resultFile "+(if OpenModelica.Scripting.getBooleanClassAnnotation(cl,__ModelicaAssociation.TestCase.shouldPass) then"<>"else"==")+" \"\";
writeFile(\""+typeNameString(cl)+".res\",\"<testcase name=\\\""+last(OpenModelica.Scripting.typeNameStrings(cl))+"\\\">\"+(if not success then \"<error type=\\\""+(if OpenModelica.Scripting.getBooleanClassAnnotation(cl,__ModelicaAssociation.TestCase.shouldPass) then "expected failure" else "failed")+"\\\" message=\\\"\"+messages+\"\\\"/>\" else \"\")+\"</testcase>\");
writeFile(\""+typeNameString(cl)+".res\",\"<testcase name=\\\""+OpenModelica.Scripting.escapeXML(last(OpenModelica.Scripting.typeNameStrings(cl)))+"\\\">\"+(if not success then \"<error type=\\\""+(if OpenModelica.Scripting.getBooleanClassAnnotation(cl,__ModelicaAssociation.TestCase.shouldPass) then "expected failure" else "failed")+"\\\" message=\\\"\"+messages+\"\\\"/>\" else \"\")+\"</testcase>\");
") for cl in allClasses);
getErrorString();
system_parallel(commands);getErrorString();
Expand Down

0 comments on commit 98624ff

Please sign in to comment.