Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yosys-tests
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yosys-tests
Commits
8d699879
Commit
8d699879
authored
May 01, 2019
by
Miodrag Milanovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Take care of execution time
parent
4178321f
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
22 additions
and
3 deletions
+22
-3
architecture/run.sh
+2
-0
backends/run.sh
+2
-0
bigsim/run.sh
+1
-0
equiv/run.sh
+2
-0
frontends/run.sh
+2
-0
misc/run.sh
+2
-0
regression/run.sh
+1
-0
report.py
+8
-3
simple/run.sh
+2
-0
No files found.
architecture/run.sh
View file @
8d699879
...
@@ -8,6 +8,8 @@ rm -rf $1/work_$2
...
@@ -8,6 +8,8 @@ rm -rf $1/work_$2
mkdir
$1
/work_
$2
mkdir
$1
/work_
$2
cd
$1
/work_
$2
cd
$1
/work_
$2
touch .start
yosys
-ql
yosys.log ../../scripts/
$2
.ys
yosys
-ql
yosys.log ../../scripts/
$2
.ys
if
[
$?
!=
0
]
;
then
if
[
$?
!=
0
]
;
then
echo
FAIL
>
${
1
}
_
${
2
}
.status
echo
FAIL
>
${
1
}
_
${
2
}
.status
...
...
backends/run.sh
View file @
8d699879
...
@@ -8,6 +8,8 @@ rm -rf $1/work_$2
...
@@ -8,6 +8,8 @@ rm -rf $1/work_$2
mkdir
$1
/work_
$2
mkdir
$1
/work_
$2
cd
$1
/work_
$2
cd
$1
/work_
$2
touch .start
yosys
-ql
yosys.log ../../scripts/
$2
.ys
yosys
-ql
yosys.log ../../scripts/
$2
.ys
if
[
$?
!=
0
]
;
then
if
[
$?
!=
0
]
;
then
echo
FAIL
>
${
1
}
_
${
2
}
.status
echo
FAIL
>
${
1
}
_
${
2
}
.status
...
...
bigsim/run.sh
View file @
8d699879
...
@@ -14,6 +14,7 @@ done
...
@@ -14,6 +14,7 @@ done
case
"
$2
"
in
case
"
$2
"
in
sim
)
sim
)
touch ../../.start
iverilog_cmd
=
"
$iverilog_cmd
$rtl_files
"
iverilog_cmd
=
"
$iverilog_cmd
$rtl_files
"
;;
;;
falsify
)
falsify
)
...
...
equiv/run.sh
View file @
8d699879
...
@@ -8,6 +8,8 @@ rm -rf $1/work_$2
...
@@ -8,6 +8,8 @@ rm -rf $1/work_$2
mkdir
$1
/work_
$2
mkdir
$1
/work_
$2
cd
$1
/work_
$2
cd
$1
/work_
$2
touch .start
yosys
-ql
yosys.log ../../scripts/
$2
.ys
yosys
-ql
yosys.log ../../scripts/
$2
.ys
if
[
$?
!=
0
]
;
then
if
[
$?
!=
0
]
;
then
echo
FAIL
>
${
1
}
_
${
2
}
.status
echo
FAIL
>
${
1
}
_
${
2
}
.status
...
...
frontends/run.sh
View file @
8d699879
...
@@ -8,6 +8,8 @@ rm -rf $1/work_$2
...
@@ -8,6 +8,8 @@ rm -rf $1/work_$2
mkdir
$1
/work_
$2
mkdir
$1
/work_
$2
cd
$1
/work_
$2
cd
$1
/work_
$2
touch .start
yosys
-ql
yosys.log ../../scripts/
$2
.ys
yosys
-ql
yosys.log ../../scripts/
$2
.ys
if
[
$?
!=
0
]
;
then
if
[
$?
!=
0
]
;
then
echo
FAIL
>
${
1
}
_
${
2
}
.status
echo
FAIL
>
${
1
}
_
${
2
}
.status
...
...
misc/run.sh
View file @
8d699879
...
@@ -8,6 +8,8 @@ rm -rf $1/work_$2
...
@@ -8,6 +8,8 @@ rm -rf $1/work_$2
mkdir
$1
/work_
$2
mkdir
$1
/work_
$2
cd
$1
/work_
$2
cd
$1
/work_
$2
touch .start
yosys
-ql
yosys.log ../../scripts/
$2
.ys
yosys
-ql
yosys.log ../../scripts/
$2
.ys
if
[
$?
!=
0
]
;
then
if
[
$?
!=
0
]
;
then
echo
FAIL
>
${
1
}
_
${
2
}
.status
echo
FAIL
>
${
1
}
_
${
2
}
.status
...
...
regression/run.sh
View file @
8d699879
...
@@ -8,6 +8,7 @@ rm -rf $1/work_$2
...
@@ -8,6 +8,7 @@ rm -rf $1/work_$2
mkdir
$1
/work_
$2
mkdir
$1
/work_
$2
cd
$1
/work_
$2
cd
$1
/work_
$2
touch .start
# cases where 'syntax error' or other errors are expected
# cases where 'syntax error' or other errors are expected
if
[
"
$1
"
=
"issue_00089"
]
||
\
if
[
"
$1
"
=
"issue_00089"
]
||
\
...
...
report.py
View file @
8d699879
#!/usr/bin/env python3
#!/usr/bin/env python3
import
os
import
os
,
time
from
pathlib
import
Path
from
pathlib
import
Path
def
getListOfFiles
(
dirName
):
def
getListOfFiles
(
dirName
):
...
@@ -26,6 +26,8 @@ def main():
...
@@ -26,6 +26,8 @@ def main():
failures
=
dict
()
failures
=
dict
()
total_errors
=
0
total_errors
=
0
total_failures
=
0
total_failures
=
0
min_start_time
=
time
.
time
()
max_end_time
=
0
for
elem
in
listOfFiles
:
for
elem
in
listOfFiles
:
st
=
elem
.
split
(
'/'
)
st
=
elem
.
split
(
'/'
)
testsuit
=
st
[
1
]
testsuit
=
st
[
1
]
...
@@ -37,6 +39,8 @@ def main():
...
@@ -37,6 +39,8 @@ def main():
failures
[
testsuit
]
=
0
failures
[
testsuit
]
=
0
casenumber
[
testsuit
]
+=
1
casenumber
[
testsuit
]
+=
1
status
=
open
(
elem
,
'r'
)
.
read
()
.
strip
()
status
=
open
(
elem
,
'r'
)
.
read
()
.
strip
()
min_start_time
=
min
(
min_start_time
,
os
.
path
.
getmtime
(
os
.
path
.
join
(
os
.
path
.
dirname
(
elem
),
'.start'
)))
max_end_time
=
max
(
max_end_time
,
os
.
path
.
getmtime
(
os
.
path
.
join
(
os
.
path
.
dirname
(
elem
),
'.stamp'
)))
if
(
status
==
'ERROR'
):
if
(
status
==
'ERROR'
):
errors
[
testsuit
]
+=
1
errors
[
testsuit
]
+=
1
total_errors
+=
1
total_errors
+=
1
...
@@ -46,7 +50,7 @@ def main():
...
@@ -46,7 +50,7 @@ def main():
# Creating report
# Creating report
with
open
(
"report.xml"
,
"w"
)
as
f
:
with
open
(
"report.xml"
,
"w"
)
as
f
:
print
(
'<?xml version="1.0" encoding="UTF-8"?>'
,
file
=
f
)
print
(
'<?xml version="1.0" encoding="UTF-8"?>'
,
file
=
f
)
print
(
'<testsuites disabled="0" errors="
%
d" failures="
%
d" tests="
%
d" time="
%
d">'
%
(
total_errors
,
total_failures
,
len
(
listOfFiles
),
0
),
file
=
f
)
print
(
'<testsuites disabled="0" errors="
%
d" failures="
%
d" tests="
%
d" time="
%
d">'
%
(
total_errors
,
total_failures
,
len
(
listOfFiles
),
max_end_time
-
min_start_time
),
file
=
f
)
for
suite
in
testsuits
:
for
suite
in
testsuits
:
print
(
' <testsuite disabled="0" errors="
%
d" failures="
%
d" name="
%
s" skipped="0" tests="
%
d" time="
%
d">'
%
(
errors
[
suite
],
failures
[
suite
],
suite
,
casenumber
[
suite
],
0
),
file
=
f
)
print
(
' <testsuite disabled="0" errors="
%
d" failures="
%
d" name="
%
s" skipped="0" tests="
%
d" time="
%
d">'
%
(
errors
[
suite
],
failures
[
suite
],
suite
,
casenumber
[
suite
],
0
),
file
=
f
)
for
elem
in
listOfFiles
:
for
elem
in
listOfFiles
:
...
@@ -57,7 +61,8 @@ def main():
...
@@ -57,7 +61,8 @@ def main():
testcase
=
st
[
-
1
]
.
replace
(
'.status'
,
''
)
testcase
=
st
[
-
1
]
.
replace
(
'.status'
,
''
)
casenumber
[
testsuit
]
+=
1
casenumber
[
testsuit
]
+=
1
status
=
open
(
elem
,
'r'
)
.
read
()
.
strip
()
status
=
open
(
elem
,
'r'
)
.
read
()
.
strip
()
print
(
' <testcase classname="
%
s.
%
s" name="
%
s" status="
%
s" time="
%
d">'
%
(
testsuit
,
st
[
2
]
.
replace
(
'.status'
,
''
),
testcase
,
status
,
0
),
file
=
f
)
print
(
' <testcase classname="
%
s.
%
s" name="
%
s" status="
%
s" time="
%
d">'
%
(
testsuit
,
st
[
2
]
.
replace
(
'.status'
,
''
),
testcase
,
status
,
os
.
path
.
getmtime
(
os
.
path
.
join
(
os
.
path
.
dirname
(
elem
),
'.stamp'
))
-
os
.
path
.
getmtime
(
os
.
path
.
join
(
os
.
path
.
dirname
(
elem
),
'.start'
))),
file
=
f
)
if
(
status
==
'ERROR'
):
if
(
status
==
'ERROR'
):
print
(
' <error message="
%
s" type="
%
s"/>'
%
(
status
,
status
),
file
=
f
)
print
(
' <error message="
%
s" type="
%
s"/>'
%
(
status
,
status
),
file
=
f
)
if
(
status
==
'FAIL'
):
if
(
status
==
'FAIL'
):
...
...
simple/run.sh
View file @
8d699879
...
@@ -11,6 +11,8 @@ rm -rf $1/work_$2
...
@@ -11,6 +11,8 @@ rm -rf $1/work_$2
mkdir
$1
/work_
$2
mkdir
$1
/work_
$2
cd
$1
/work_
$2
cd
$1
/work_
$2
touch .start
if
[
"
$2
"
=
"verify"
]
;
then
if
[
"
$2
"
=
"verify"
]
;
then
iverilog
-o
testbench ../testbench.v ../../common.v ../top.v
iverilog
-o
testbench ../testbench.v ../../common.v ../top.v
if
[
$?
!=
0
]
;
then
if
[
$?
!=
0
]
;
then
...
...
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