Skip to content

Commit

Permalink
STL2STLXML: add doc/tests for -a/-u params
Browse files Browse the repository at this point in the history
Fixes zzhd/scf#116.
  • Loading branch information
spoeschel committed Jul 24, 2020
1 parent fa99405 commit 6623082
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 0 deletions.
Binary file modified modules/STL2STLXML/documentation/requirements_stl2stlxml.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
33 changes: 33 additions & 0 deletions modules/STL2STLXML/tests/schema/requirement-0461-001.sch
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2014 Institut für Rundfunktechnik GmbH, Munich, Germany
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License
at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, the subject work
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<schema xmlns="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt" schemaVersion="ISO19757-3">
<title>Testing of "-a" parameter that clears the UDA field of the GSI block.</title>
<p>-a</p><!-- while the p element usually is used for text paragraphs, we use it to propagate parameters to the STL2STLXML call -->
<pattern id="ClearUDA">
<rule context="/">
<assert test="StlXml/HEAD/GSI/UDA">
The UDA element must be present.
</assert>
</rule>
<rule context="StlXml/HEAD/GSI/UDA">
<assert test="normalize-space(.) = ''">
Expected value: "" Value from test: "<value-of select="normalize-space(.)"/>"
</assert>
</rule>
</pattern>
</schema>
33 changes: 33 additions & 0 deletions modules/STL2STLXML/tests/schema/requirement-0462-001.sch
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2014 Institut für Rundfunktechnik GmbH, Munich, Germany
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License
at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, the subject work
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<schema xmlns="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt" schemaVersion="ISO19757-3">
<title>Testing of "-u" parameter that discards all TTI blocks with User Data.</title>
<p>-u</p><!-- while the p element usually is used for text paragraphs, we use it to propagate parameters to the STL2STLXML call -->
<pattern id="DiscardUserDataTTI">
<rule context="/">
<assert test="StlXml/BODY/TTICONTAINER/TTI/EBN">
The EBN element must be present.
</assert>
</rule>
<rule context="StlXml/BODY/TTICONTAINER/TTI/EBN">
<assert test="normalize-space(.) != 'fe'">
User Data was found!
</assert>
</rule>
</pattern>
</schema>

0 comments on commit 6623082

Please sign in to comment.