-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #399 from mpsonntag/cl_script_tests
Command line script tests LGTM
- Loading branch information
Showing
15 changed files
with
1,783 additions
and
0 deletions.
There are no files selected for viewing
122 changes: 122 additions & 0 deletions
122
test/resources/scripts/odml_convert/conversion_example_A.xml
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,122 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-stylesheet type="text/xsl" href="odmlTerms.xsl"?> | ||
<?xml-stylesheet type="text/xsl" href="odml.xsl"?> | ||
<odML version="1"> | ||
<section> | ||
<property> | ||
<value>0.0<unit>um</unit></value> | ||
<name>Depth</name> | ||
</property> | ||
<property> | ||
<value>P-unit</value> | ||
<name>CellType</name> | ||
</property> | ||
<property> | ||
<value>Nerve</value> | ||
<name>Structure</name> | ||
</property> | ||
<property> | ||
<value>0.1</value> | ||
<name>CV</name> | ||
</property> | ||
<property> | ||
<value>12.8<unit>Hz</unit></value> | ||
<name>Baseline rate</name> | ||
</property> | ||
<name>Cell</name> | ||
<type>Cell</type> | ||
</section> | ||
<section> | ||
<property> | ||
<value>weak response</value> | ||
<name>Comment</name> | ||
</property> | ||
<property> | ||
<value>2020-06-24-ab</value> | ||
<name>Name</name> | ||
</property> | ||
<property> | ||
<value>Good</value> | ||
<name>Recording quality</name> | ||
</property> | ||
<property> | ||
<value>12.8.7 (20/06/24)</value> | ||
<name>Software version</name> | ||
</property> | ||
<property> | ||
<value>Ex Perimenter</value> | ||
<name>Experimenter</name> | ||
</property> | ||
<property> | ||
<value>Acquisition</value> | ||
<name>Mode</name> | ||
</property> | ||
<property> | ||
<value>conversion_example.xml</value> | ||
<name>File</name> | ||
</property> | ||
<property> | ||
<value>16:35:51</value> | ||
<name>Time</name> | ||
</property> | ||
<property> | ||
<value>2020-06-24</value> | ||
<name>Date</name> | ||
</property> | ||
<property> | ||
<value>100<unit>m</unit></value> | ||
<name>Recording duration</name> | ||
</property> | ||
<property> | ||
<value>./odml_convert</value> | ||
<name>Folder</name> | ||
</property> | ||
<property> | ||
<value>SomeEphysSoftware</value> | ||
<name>Software</name> | ||
</property> | ||
<name>Recording</name> | ||
<type>Recording</type> | ||
</section> | ||
<section> | ||
<property> | ||
<value>12.0<unit>Hz</unit></value> | ||
<name>Firing Rate1</name> | ||
</property> | ||
<property> | ||
<value>12.0<unit>Hz</unit></value> | ||
<name>EOD Frequency</name> | ||
</property> | ||
<property> | ||
<value>0.1</value> | ||
<name>P-Value1</name> | ||
</property> | ||
<name>Cell properties</name> | ||
<type>Cell properties</type> | ||
</section> | ||
<section> | ||
<property> | ||
<value>unknown</value> | ||
<name>Gender</name> | ||
</property> | ||
<property> | ||
<value>Xen Omorph</value> | ||
<name>Species</name> | ||
</property> | ||
<property> | ||
<value>10.0<unit>cm</unit></value> | ||
<name>Size</name> | ||
</property> | ||
<property> | ||
<value>1.0<unit>mV</unit></value> | ||
<name>Transdermal amplitude</name> | ||
</property> | ||
<property> | ||
<value>1.4<unit>Hz</unit></value> | ||
<name>EOD Frequency</name> | ||
</property> | ||
<name>Subject</name> | ||
<type>Subject</type> | ||
</section> | ||
<author>tester</author> | ||
</odML> |
122 changes: 122 additions & 0 deletions
122
test/resources/scripts/odml_convert/conversion_example_B.xml
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,122 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-stylesheet type="text/xsl" href="odmlTerms.xsl"?> | ||
<?xml-stylesheet type="text/xsl" href="odml.xsl"?> | ||
<odML version="1"> | ||
<section> | ||
<property> | ||
<value>0.0<unit>um</unit></value> | ||
<name>Depth</name> | ||
</property> | ||
<property> | ||
<value>P-unit</value> | ||
<name>CellType</name> | ||
</property> | ||
<property> | ||
<value>Nerve</value> | ||
<name>Structure</name> | ||
</property> | ||
<property> | ||
<value>0.1</value> | ||
<name>CV</name> | ||
</property> | ||
<property> | ||
<value>12.8<unit>Hz</unit></value> | ||
<name>Baseline rate</name> | ||
</property> | ||
<name>Cell</name> | ||
<type>Cell</type> | ||
</section> | ||
<section> | ||
<property> | ||
<value>weak response</value> | ||
<name>Comment</name> | ||
</property> | ||
<property> | ||
<value>2020-06-24-ab</value> | ||
<name>Name</name> | ||
</property> | ||
<property> | ||
<value>Good</value> | ||
<name>Recording quality</name> | ||
</property> | ||
<property> | ||
<value>12.8.7 (20/06/24)</value> | ||
<name>Software version</name> | ||
</property> | ||
<property> | ||
<value>Ex Perimenter</value> | ||
<name>Experimenter</name> | ||
</property> | ||
<property> | ||
<value>Acquisition</value> | ||
<name>Mode</name> | ||
</property> | ||
<property> | ||
<value>conversion_example.xml</value> | ||
<name>File</name> | ||
</property> | ||
<property> | ||
<value>16:35:51</value> | ||
<name>Time</name> | ||
</property> | ||
<property> | ||
<value>2020-06-24</value> | ||
<name>Date</name> | ||
</property> | ||
<property> | ||
<value>100<unit>m</unit></value> | ||
<name>Recording duration</name> | ||
</property> | ||
<property> | ||
<value>./odml_convert</value> | ||
<name>Folder</name> | ||
</property> | ||
<property> | ||
<value>SomeEphysSoftware</value> | ||
<name>Software</name> | ||
</property> | ||
<name>Recording</name> | ||
<type>Recording</type> | ||
</section> | ||
<section> | ||
<property> | ||
<value>12.0<unit>Hz</unit></value> | ||
<name>Firing Rate1</name> | ||
</property> | ||
<property> | ||
<value>12.0<unit>Hz</unit></value> | ||
<name>EOD Frequency</name> | ||
</property> | ||
<property> | ||
<value>0.1</value> | ||
<name>P-Value1</name> | ||
</property> | ||
<name>Cell properties</name> | ||
<type>Cell properties</type> | ||
</section> | ||
<section> | ||
<property> | ||
<value>unknown</value> | ||
<name>Gender</name> | ||
</property> | ||
<property> | ||
<value>Xen Omorph</value> | ||
<name>Species</name> | ||
</property> | ||
<property> | ||
<value>10.0<unit>cm</unit></value> | ||
<name>Size</name> | ||
</property> | ||
<property> | ||
<value>1.0<unit>mV</unit></value> | ||
<name>Transdermal amplitude</name> | ||
</property> | ||
<property> | ||
<value>1.4<unit>Hz</unit></value> | ||
<name>EOD Frequency</name> | ||
</property> | ||
<name>Subject</name> | ||
<type>Subject</type> | ||
</section> | ||
<author>tester</author> | ||
</odML> |
Empty file.
13 changes: 13 additions & 0 deletions
13
test/resources/scripts/odml_convert/test_broken/invalid_xml.xml
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,13 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<?xml-stylesheet type="text/xsl" href="odml.xsl" xmlns:odml="http://www.g-node.org/odml"?> | ||
<odML version="1"> | ||
<repository>http://portal.g-node.org/odml/terminologies/v1.0/terminologies.xml</repository> | ||
<section> | ||
<type>Recording</type> | ||
<name>Recording-some-date-ah</name> | ||
<property> | ||
<name>Temperature</name> | ||
<value>24<type>float</type><unit><B0>C</unit></value> | ||
</property> | ||
</section> | ||
</odML> |
30 changes: 30 additions & 0 deletions
30
test/resources/scripts/odml_convert/test_recursive/conversion_example_sub_root.xml
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,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-stylesheet type="text/xsl" href="odmlTerms.xsl"?> | ||
<?xml-stylesheet type="text/xsl" href="odml.xsl"?> | ||
<odML version="1"> | ||
<section> | ||
<property> | ||
<value>0.0<unit>um</unit></value> | ||
<name>Depth</name> | ||
</property> | ||
<property> | ||
<value>P-unit</value> | ||
<name>CellType</name> | ||
</property> | ||
<property> | ||
<value>Nerve</value> | ||
<name>Structure</name> | ||
</property> | ||
<property> | ||
<value>0.1</value> | ||
<name>CV</name> | ||
</property> | ||
<property> | ||
<value>12.8<unit>Hz</unit></value> | ||
<name>Baseline rate</name> | ||
</property> | ||
<name>Cell</name> | ||
<type>Cell</type> | ||
</section> | ||
<author>tester</author> | ||
</odML> |
30 changes: 30 additions & 0 deletions
30
test/resources/scripts/odml_convert/test_recursive/sub/conversion_example_sub_sub.xml
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,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-stylesheet type="text/xsl" href="odmlTerms.xsl"?> | ||
<?xml-stylesheet type="text/xsl" href="odml.xsl"?> | ||
<odML version="1"> | ||
<section> | ||
<property> | ||
<value>0.0<unit>um</unit></value> | ||
<name>Depth</name> | ||
</property> | ||
<property> | ||
<value>P-unit</value> | ||
<name>CellType</name> | ||
</property> | ||
<property> | ||
<value>Nerve</value> | ||
<name>Structure</name> | ||
</property> | ||
<property> | ||
<value>0.1</value> | ||
<name>CV</name> | ||
</property> | ||
<property> | ||
<value>12.8<unit>Hz</unit></value> | ||
<name>Baseline rate</name> | ||
</property> | ||
<name>Cell</name> | ||
<type>Cell</type> | ||
</section> | ||
<author>tester</author> | ||
</odML> |
Oops, something went wrong.