Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Mock Turtle
Commits
74703150
Commit
74703150
authored
Dec 21, 2022
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hdl: remove obsolete testbench makefile
parent
35fb7dd8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
141 deletions
+0
-141
Makefile
hdl/testbench/Makefile
+0
-141
No files found.
hdl/testbench/Makefile
deleted
100644 → 0
View file @
35fb7dd8
# SPDX-License-Identifier: CERN-OHL-W-2.0+
#
# SPDX-FileCopyrightText: 2019 CERN
# This Makefile can be called by the Continuous Integration (CI) tool to execute all
# testbenches added for CI
#
# Author: Adam Wujek, CERN 2017
TB_DIRS
=
mock_turtle_core svec_mt_demo spec_mt_demo mt_eth_ep
#TB_DIRS+=spec_ref_design-verification
test_results_xml
=
test_results.xml
.PHONY
:
$(TB_DIRS)
all
:
$(TB_DIRS) summary summary_total summary_xml
MT_VERF_RT_BIN
=
../../tests/firmware/sim-verif/sim-verif.bin
MT_DEMO_RT_BIN
=
../../demos/hello_world/firmware/fw-01/fw-hello.bin
MT_ETH_RT_BIN
=
../../tests/firmware/rmq-udp-send/fw-rmq-udp-send.bin
mock_turtle_core
:
$(MT_VERF_RT_BIN)
svec_mt_demo
:
$(MT_DEMO_RT_BIN)
spec_mt_demo
:
$(MT_DEMO_RT_BIN)
mt_eth_ep
:
$(MT_ETH_RT_BIN)
$(MT_DEMO_RT_BIN) $(MT_VERF_RT_BIN) $(MT_ETH_RT_BIN)
:
$(MAKE)
-C
$
(
@D
)
defconfig
$(MAKE)
-C
$
(
@D
)
$(TB_DIRS)
:
@
echo
$@
@
echo
"Run HDL-MAKE"
cd
"
$@
"
;
\
$(HDLMAKE_PATH)
/hdl-make 2>&1
@echo
"Run make"
$(MAKE)
-C
$@
$(TARGET)
-j
1
@echo
"Run vsim"
cd
"$@"
;\
vsim
-c
-do
"run_ci.do"
-l
transcript.
"$@"
.txt;\
echo
"vsim returned $$?"
summary
:
$(TB_DIRS)
@
echo
"-------------------------------------------------------------------"
@
echo
"Summary:"
@
for
d
in
$(TB_DIRS)
;
do
\
if
[
-f
$$
d/transcript.
"
$$
d"
.txt
]
;
then
\
echo
"Warnings for
$$
d:"
;
\
cat
$$
d/transcript.
"
$$
d"
.txt |
grep
Warning
;
\
if
[
$$
?
-eq
1
]
;
then
echo
"None"
;
fi
;
\
echo
"Errors for
$$
d:"
;
\
cat
$$
d/transcript.
"
$$
d"
.txt |
grep
Error
;
\
if
[
$$
?
-eq
1
]
;
then
echo
"None"
;
fi
;
\
echo
"Fatals for
$$
d:"
;
\
cat
$$
d/transcript.
"
$$
d"
.txt |
grep
Fatal
;
\
if
[
$$
?
-eq
1
]
;
then
echo
"None"
;
fi
;
\
else
\
echo
"No transcript file for
$$
d"
;
\
fi
\
done
# Run tasks all before summary_total, because if there is a failure summary_total breaks the make execution
summary_total
:
summary summary_xml
@
echo
"-------------------------------------------------------------------"
@
echo
""
@
echo
"Summary total:"
@
echo
"+---------------------------------------------------+----------+----------+----------+"
@
echo
"| Test bench | Warnings | Errors | Fatals |"
@
echo
"+---------------------------------------------------+----------+----------+----------+"
@
is_error
=
0
;
\
for
d
in
$(TB_DIRS)
;
do
\
if
[
-f
$$
d/transcript.
"
$$
d"
.txt
]
;
then
\
printf
"| %-50s"
$$
d
;
\
printf
"| %8d "
`
cat
$$
d/transcript.
"
$$
d"
.txt |
grep
Warning |
wc
-l
`
;
\
error_n
=
`
cat
$$
d/transcript.
"
$$
d"
.txt |
grep
Error |
wc
-l
`
;
\
printf
"| %8d "
$$
error_n
;
\
if
[
$$
error_n
-gt
0
]
;
then
is_error
=
1
;
fi
;
\
fatal_n
=
`
cat
$$
d/transcript.
"
$$
d"
.txt |
grep
Fatal |
wc
-l
`
;
\
printf
"| %8d |
\n
"
$$
fatal_n
;
\
if
[
$$
fatal_n
-gt
0
]
;
then
is_error
=
1
;
fi
;
\
else
\
printf
"| %-30s"
$$
d
;
\
echo
"| No transcript file! |"
;
is_error
=
1
;
\
fi
\
done
;
\
echo
"+---------------------------------------------------+----------+----------+----------+"
;
\
if
[
$$
is_error
-gt
0
]
;
then
exit
1
;
fi
;
summary_xml
:
summary
@
echo
'<?xml version="1.0" encoding="UTF-8"?>'
>
$(test_results_xml)
@
echo
'<testsuites tests="0" failures="0" disabled="0" errors="0" time="0" name="AllTests">'
>>
$(test_results_xml)
@
for
d
in
$(TB_DIRS)
;
do
\
is_test_error
=
0
;
\
error_n
=
0
;
\
fatal_n
=
0
;
\
echo
-n
" <testsuite name=
\"
"
$$
d
"
\"
tests=
\"
1
\"
failures=
\"
"
>>
$(test_results_xml)
;
\
if
[
-f
$$
d/transcript.
"
$$
d"
.txt
]
;
then
\
error_n
=
`
cat
$$
d/transcript.
"
$$
d"
.txt |
grep
Error |
wc
-l
`
;
\
fatal_n
=
`
cat
$$
d/transcript.
"
$$
d"
.txt |
grep
Fatal |
wc
-l
`
;
\
if
[
$$
error_n
-gt
0
]
||
[
$$
fatal_n
-gt
0
]
;
then
is_test_error
=
1
;
fi
;
\
echo
-n
$$
is_test_error
>>
$(test_results_xml)
;
\
else
\
is_test_error
=
2
;
\
echo
-n
"1"
>>
$(test_results_xml)
;
\
fi
;
\
echo
"
\"
disabled=
\"
0
\"
errors=
\"
0
\"
time=
\"
0
\"
>"
>>
$(test_results_xml)
;
\
echo
" <testcase name=
\"
"
$$
d
"
\"
status=
\"
run
\"
time=
\"
0
\"
classname=
\"
"
Testbench
"
\"
>"
>>
$(test_results_xml)
;
\
if
[
$$
is_test_error
-eq
1
]
;
then
\
if
[
$$
error_n
-gt
0
]
;
then
\
echo
" <failure message=
\"
Errors
\"
type=
\"\"
><![CDATA["
>>
$(test_results_xml)
;
\
cat
$$
d/transcript.
"
$$
d"
.txt |
grep
Error
>>
$(test_results_xml)
;
\
echo
" ]]></failure>"
>>
$(test_results_xml)
;
\
fi
;
\
if
[
$$
fatal_n
-gt
0
]
;
then
\
echo
" <failure message=
\"
Fatals
\"
type=
\"\"
><![CDATA["
>>
$(test_results_xml)
;
\
cat
$$
d/transcript.
"
$$
d"
.txt |
grep
Fatal
>>
$(test_results_xml)
;
\
echo
" ]]></failure>"
>>
$(test_results_xml)
;
\
fi
;
\
fi
;
\
if
[
$$
is_test_error
-eq
2
]
;
then
\
echo
" <failure message=
\"
Output file not found
\"
type=
\"\"
>"
>>
$(test_results_xml)
;
\
echo
"<![CDATA[Output file not found. Testbench didnt run.]]>"
>>
$(test_results_xml)
;
\
echo
" </failure>"
>>
$(test_results_xml)
;
\
fi
;
\
echo
" </testcase>"
>>
$(test_results_xml)
;
\
echo
" </testsuite>"
>>
$(test_results_xml)
;
\
done
;
\
echo
"</testsuites>"
>>
$(test_results_xml)
clean
:
@
for
d
in
$(TB_DIRS)
;
do
\
if
[
-f
$$
d/Makefile
]
;
then
\
$(MAKE)
-C
$$
d
$@
;
\
rm
-f
$$
d/Makefile
;
\
fi
\
done
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