refactor: move templates from root to share/spack

- This complies with the unix directory hierarchy standard (which Spack
  attempts to follow)
- Also unclutters the repo root directory.
This commit is contained in:
Todd Gamblin
2018-03-23 23:16:37 -07:00
parent 6517dabbce
commit c4c1d37fcd
12 changed files with 17 additions and 16 deletions

View File

@@ -0,0 +1,27 @@
<Build>
<StartBuildTime>{{ build.starttime }}</StartBuildTime>
<BuildCommand>{{ install_command }}</BuildCommand>
{% for warning in build.warnings %}
<Warning>
<BuildLogLine>{{ warning.line_no }}</BuildLogLine>
<Text>{{ warning.text }}</Text>
<SourceFile>{{ warning.source_file }}</SourceFile>
<SourceLineNumber>{{ warning.source_line_no }}</SourceLineNumber>
<PreContext>{{ warning.pre_context }}</PreContext>
<PostContext>{{ warning.post_context }}</PostContext>
</Warning>
{% endfor %}
{% for error in build.errors %}
<Error>
<BuildLogLine>{{ error.line_no }}</BuildLogLine>
<Text>{{ error.text }}</Text>
<SourceFile>{{ error.source_file }}</SourceFile>
<SourceLineNumber>{{ error.source_line_no }}</SourceLineNumber>
<PreContext>{{ error.pre_context }}</PreContext>
<PostContext>{{ error.post_context }}</PostContext>
</Error>
{% endfor %}
<EndBuildTime>{{ build.endtime }}</EndBuildTime>
<ElapsedMinutes>0</ElapsedMinutes>
</Build>
</Site>

View File

@@ -0,0 +1,8 @@
<Configure>
<StartConfigureTime>{{ configure.starttime }}</StartConfigureTime>
<ConfigureCommand>{{ install_command }}</ConfigureCommand>
<Log>{{ configure.log }}</Log>
<ConfigureStatus>{{ configure.status }}</ConfigureStatus>
<EndConfigureTime>{{ configure.endtime }}</EndConfigureTime>
</Configure>
</Site>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Site BuildName="{{ install_command }}"
BuildStamp="{{ buildstamp }}"
Name="{{ hostname }}"
OSName="{{ osname }}"
>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<Update>
<Site>{{ hostname }}</Site>
<BuildName>{{ install_command }}</BuildName>
<BuildStamp>{{ buildstamp }}</BuildStamp>
<StartTime>{{ starttime }}</StartTime>
<EndTime>{{ endtime }}</EndTime>
{% if msg %}
<UpdateReturnStatus>{{ msg }}</UpdateReturnStatus>
{% endif %}
</Update>

View File

@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file has been modeled after the basic
specifications at this url:
http://help.catchsoftware.com/display/ET/JUnit+Format
-->
<testsuites>
{% for spec in specs %}
<testsuite name="{{ spec.name }}"
errors="{{ spec.nerrors }}"
tests="{{ spec.npackages }}"
failures="{{ spec.nfailures }}"
time="{{ spec.time }}"
timestamp="{{ spec.timestamp }}" >
<properties>
{% for property in spec.properties %}
<property name="{{ property.name }}" value="{{ property.value }}" />
{% endfor %}
</properties>
{% for package in spec.packages %}
<testcase classname="{{ package.name }}"
name="{{ package.id }}"
time="{{ package.elapsed_time }}">
{% if package.result == 'failure' %}
<failure message="{{ package.message }}">
{{ package.exception }}
</failure>
{% elif package.result == 'error' %}
<error message="{{ package.message }}">
{{ package.exception }}
</error>
{% elif package.result == 'skipped' %}
<skipped />
{% endif %}
{% if package.stdout %}
<system-out>
{{ package.stdout }}
</system-out>
{% endif %}
{% if package.stderr %}
<system-err>
{{ package.stderr }}
</system-err>
{% endif %}
</testcase>
{% endfor %}
{# Add an error tag? #}
</testsuite>
{% endfor %}
</testsuites>