Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Ocarina
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
TASTE
Ocarina
Commits
bf1b75b9
Commit
bf1b75b9
authored
Jun 27, 2015
by
yoogx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Use correct package name for import
parent
67036c85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
resources/runtime/python/test/metrics.py
resources/runtime/python/test/metrics.py
+5
-5
No files found.
resources/runtime/python/test/metrics.py
100644 → 100755
View file @
bf1b75b9
...
...
@@ -11,11 +11,11 @@ def printError(source, messages):
def
main
(
argv
):
'''Test function'''
import
OcarinaPython
as
ocarina
import
ocarina
;
aadlFiles
=
''
root
=
''
try
:
opts
,
args
=
getopt
.
getopt
(
argv
,
"ha:r:"
,[
"aadlFiles="
,
"root="
])
except
getopt
.
GetoptError
:
...
...
@@ -40,13 +40,13 @@ def main(argv):
print
'At least one aadl file shall be loaded. Usage is:'
print
'metrics.py -a <aadlfile>[,<aadlfile>]* -r <root object>'
sys
.
exit
(
2
)
for
aadlFile
in
aadlFiles
:
err
=
ocarina
.
load
(
aadlFile
)
if
err
[
3
]
!=
[]:
printError
(
'ocarina.load('
+
aadlFile
+
')'
,
err
[
3
])
sys
.
exit
(
2
)
err
=
ocarina
.
analyze
()
err
=
ocarina
.
analyze
()
if
err
[
3
]
!=
[]:
printError
(
'ocarina.analyze()'
,
err
[
3
])
sys
.
exit
(
2
)
...
...
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