Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LI - Lawful Interception
Trial
Commits
9dd8cf44
Commit
9dd8cf44
authored
Oct 22, 2021
by
canterburym
Browse files
Updating tests
parent
01a3d69a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
testing/check_xsd.py
testing/check_xsd.py
+6
-0
No files found.
testing/check_xsd.py
View file @
9dd8cf44
...
...
@@ -134,6 +134,7 @@ if __name__ == '__main__':
syntaxErrors
=
0
print
(
"============================="
)
print
(
"XSD syntax checks:"
)
print
(
"-----------------------------"
)
for
file
in
includeFileList
:
...
...
@@ -148,9 +149,12 @@ if __name__ == '__main__':
if
(
syntaxErrors
>
0
):
print
(
f
"
{
syntaxErrors
}
syntax errors detected"
)
exit
(
syntaxErrors
)
else
:
print
(
"0 syntax errors detected"
)
results
,
schemaDict
=
ValidateXSDFiles
(
includeFileList
)
print
(
"============================="
)
print
(
"XSD build checks:"
)
print
(
"-----------------------------"
)
errorCount
=
0
...
...
@@ -171,6 +175,7 @@ if __name__ == '__main__':
if
(
errorCount
>
0
):
exit
(
errorCount
)
print
(
"============================="
)
print
(
"Instance document checks"
)
print
(
"-----------------------------"
)
errorCount
=
0
...
...
@@ -184,4 +189,5 @@ if __name__ == '__main__':
errorCount
+=
1
print
(
f
"
{
instanceDoc
}
:
{
str
(
ex
)
}
"
)
print
(
f
"
{
errorCount
}
instance doc errors detected"
)
print
(
"============================="
)
exit
(
errorCount
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment