+++ /dev/null
-// ---------------------------------------------------------------------
-// $Id: compile.cc 30508 2013-08-27 17:01:42Z turcksin $
-//
-// Copyright (C) 2010 - 2013 by the deal.II authors
-//
-// This file is part of the deal.II library.
-//
-// The deal.II library is free software; you can use it, redistribute
-// it, and/or modify it under the terms of the GNU Lesser General
-// Public License as published by the Free Software Foundation; either
-// version 2.1 of the License, or (at your option) any later version.
-// The full text of the license can be found in the file LICENSE at
-// the top level of the deal.II distribution.
-//
-// ---------------------------------------------------------------------
-
-
-
-// test the testsuite framework. this test is supposed to compile
-// successfully but not link
-
-#include "../tests.h"
-#include <deal.II/base/logstream.h>
-#include <fstream>
-#include <cstdlib>
-
-void function_that_does_not_exist ();
-
-
-int main ()
-{
- std::ofstream logfile("output");
- deallog.attach(logfile);
- deallog.depth_console(0);
-
- function_that_does_not_exist ();
-
- deallog << "OK" << std::endl;
-}
-
tests={}
for test in testing.findall("Test"):
- status = test.attrib['Status']
- fail=False
- if status=="failed": fail=True
name = test.find('Name').text
group = name.split('/')[0]
if group=="all-headers":
name = group + "/" + "-".join(name.split('/')[1:])
- status = 4
- if fail:
- text = test.find('Results').find('Measurement').find('Value').text
- if text == None: text=""
- failtext = text.encode('utf-8')
- failtextlines = failtext.replace('"','').split('\n')
- failstatustxt = failtextlines[0].split(' ')[-1]
- statuslist=['CONFIGURE','BUILD','RUN','DIFF']
- if failstatustxt in statuslist:
- status = statuslist.index(failstatustxt)
- else:
- for meas in test.find('Results').findall('NamedMeasurement'):
- if (meas.attrib["name"]=="Exit Code" and meas.find('Value').text=="Timeout"):
- status=3
-
- if status==4:
+ text = test.find('Results').find('Measurement').find('Value').text
+ if text == None: text=""
+ failtext = text.encode('utf-8')
+ failtextlines = failtext.replace('"','').split('\n')
+ failstatustxt = failtextlines[0].split(' ')[-1]
+
+ statuslist=['CONFIGURE','BUILD','RUN','DIFF','PASSED']
+ if failstatustxt in statuslist:
+ status = statuslist.index(failstatustxt)
+ else:
+ for meas in test.find('Results').findall('NamedMeasurement'):
+ if (meas.attrib["name"]=="Exit Code" and meas.find('Value').text=="Timeout"):
+ status=3
+ else:
print >>sys.stderr, "unknown status '%s' in test %s "% (failstatustxt,name)
status=0