-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'multithreading' into 'master'
Implement Event-based Multithreading Closes #8, #4, #5, #7, #184, #203, #166, and #107 See merge request allpix-squared/allpix-squared!231
- Loading branch information
Showing
230 changed files
with
5,525 additions
and
2,615 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | ||
<xsl:output method="xml" indent="yes" /> | ||
<xsl:template match="/"> | ||
<testsuites> | ||
<xsl:variable name="buildName" select="//Site/@BuildName"/> | ||
<xsl:variable name="numberOfTests" select="count(//Site/Testing/Test)"/> | ||
<xsl:variable name="numberOfFailures" select="count(//Site/Testing/Test[@Status!='passed'])" /> | ||
<testsuite name="CTest" | ||
tests="{$numberOfTests}" time="0" | ||
failures="{$numberOfFailures}" errors="0" | ||
skipped="0"> | ||
<xsl:for-each select="//Site/Testing/Test"> | ||
<xsl:variable name="testName" select="translate(Name, '-', '_')"/> | ||
<xsl:variable name="duration" select="Results/NamedMeasurement[@name='Execution Time']/Value"/> | ||
<xsl:variable name="status" select="@Status"/> | ||
<xsl:variable name="output" select="Results/Measurement/Value"/> | ||
<xsl:variable name="className" select="translate(Path, '/.', '.')"/> | ||
<testcase classname="projectroot{$className}" | ||
name="{$testName}" | ||
time="{$duration}"> | ||
<xsl:if test="@Status!='passed'"> | ||
<failure> | ||
<xsl:value-of select="$output" /> | ||
</failure> | ||
</xsl:if> | ||
<system-out> | ||
<xsl:value-of select="$output" /> | ||
</system-out> | ||
</testcase> | ||
</xsl:for-each> | ||
</testsuite> | ||
</testsuites> | ||
</xsl:template> | ||
</xsl:stylesheet> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env python | ||
|
||
import sys | ||
import lxml.etree as et | ||
|
||
# Check if we got token: | ||
if len(sys.argv) != 4: | ||
sys.exit(1) | ||
|
||
input_xml = sys.argv[1] | ||
input_xsl = sys.argv[2] | ||
output_xml = sys.argv[3] | ||
|
||
print("Reading XML input file") | ||
dom = et.parse(input_xml) | ||
|
||
print("Reading XSLT file") | ||
xslt = et.parse(input_xsl) | ||
|
||
print("Transforming DOM") | ||
transform = et.XSLT(xslt) | ||
newdom = transform(dom) | ||
|
||
print("Writing XML output file") | ||
newdom.write(output_xml, pretty_print=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.