Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
NanoSoC Tech
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SoCLabs
NanoSoC Tech
Commits
c9bb26a8
Commit
c9bb26a8
authored
1 year ago
by
dam1n19
Browse files
Options
Downloads
Patches
Plain Diff
Added Timeout to regression simulations
parent
b62e5bdf
No related branches found
No related tags found
1 merge request
!1
changed imem to rom to allow initial program loading, updated bootloader code...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
makefile
+6
-3
6 additions, 3 deletions
makefile
with
6 additions
and
3 deletions
makefile
+
6
−
3
View file @
c9bb26a8
...
@@ -167,6 +167,9 @@ SW_MAKE_OPTIONS = CPU_PRODUCT=$(CPU_PRODUCT) TOOL_CHAIN=$(TOOL_CHAIN)
...
@@ -167,6 +167,9 @@ SW_MAKE_OPTIONS = CPU_PRODUCT=$(CPU_PRODUCT) TOOL_CHAIN=$(TOOL_CHAIN)
# How many tests to Run In Parallel in a Regression
# How many tests to Run In Parallel in a Regression
PARALLEL_TESTS
=
4
PARALLEL_TESTS
=
4
# Regression Simulation Timeout
TIMEOUT
=
30m
# Create a Directory to Run a Regression in
# Create a Directory to Run a Regression in
$(
eval
REGRESSION_NAME
=
$(
shell
date
+%Y_%m_%d_%H_%M_%S
))
$(
eval
REGRESSION_NAME
=
$(
shell
date
+%Y_%m_%d_%H_%M_%S
))
$(
eval
REGRESSION_DIR
=
$(
SIM_TOP_DIR
)
/regression_
$(
REGRESSION_NAME
))
$(
eval
REGRESSION_DIR
=
$(
SIM_TOP_DIR
)
/regression_
$(
REGRESSION_NAME
))
...
@@ -181,7 +184,7 @@ define mti_template
...
@@ -181,7 +184,7 @@ define mti_template
.PHONY
:
$(1)
.PHONY
:
$(1)
mti_$(1)
:
mti_$(1)
:
@
echo
Running
test
$(
1
)
@
echo
Running
test
$(
1
)
@$(
MAKE
)
-j1
run_mti
TESTNAME
=
$(
1
)
>
$$(
REGRESSION
)
/
$(
1
)
.log
@
timeout
$(
TIMEOUT
)
$(
MAKE
)
-j1
run_mti
TESTNAME
=
$(
1
)
>
$$(
REGRESSION
)
/
$(
1
)
.log
@
if
cat
$$(
REGRESSION
)
/
$(
1
)
.log |
grep
-i
"Test Passed"
;
then
echo
"
$(
1
)
: PASSED"
>>
$$(
REGRESSION
)
/RESULTS.log
;
else
echo
"
$(
1
)
: FAILED"
>>
$$(
REGRESSION
)
/RESULTS.log
;
fi
>
/dev/null
@
if
cat
$$(
REGRESSION
)
/
$(
1
)
.log |
grep
-i
"Test Passed"
;
then
echo
"
$(
1
)
: PASSED"
>>
$$(
REGRESSION
)
/RESULTS.log
;
else
echo
"
$(
1
)
: FAILED"
>>
$$(
REGRESSION
)
/RESULTS.log
;
fi
>
/dev/null
endef
endef
...
@@ -189,7 +192,7 @@ define xm_template
...
@@ -189,7 +192,7 @@ define xm_template
.PHONY
:
$(1)
.PHONY
:
$(1)
xm_$(1)
:
xm_$(1)
:
@
echo
Running
test
$(
1
)
@
echo
Running
test
$(
1
)
@$(
MAKE
)
-j1
run_xm
TESTNAME
=
$(
1
)
>
$$(
REGRESSION
)
/
$(
1
)
.log
@
timeout
$(
TIMEOUT
)
@
$(
MAKE
)
-j1
run_xm
TESTNAME
=
$(
1
)
>
$$(
REGRESSION
)
/
$(
1
)
.log
@
if
cat
$$(
REGRESSION
)
/
$(
1
)
.log |
grep
-i
"Test Passed"
;
then
echo
"
$(
1
)
: PASSED"
>>
$$(
REGRESSION
)
/RESULTS.log
;
else
echo
"
$(
1
)
: FAILED"
>>
$$(
REGRESSION
)
/RESULTS.log
;
fi
>
/dev/null
@
if
cat
$$(
REGRESSION
)
/
$(
1
)
.log |
grep
-i
"Test Passed"
;
then
echo
"
$(
1
)
: PASSED"
>>
$$(
REGRESSION
)
/RESULTS.log
;
else
echo
"
$(
1
)
: FAILED"
>>
$$(
REGRESSION
)
/RESULTS.log
;
fi
>
/dev/null
endef
endef
...
@@ -197,7 +200,7 @@ define vcs_template
...
@@ -197,7 +200,7 @@ define vcs_template
.PHONY
:
$(1)
.PHONY
:
$(1)
vcs_$(1)
:
vcs_$(1)
:
@
echo
Running
test
$(
1
)
@
echo
Running
test
$(
1
)
@$(
MAKE
)
-j1
run_vcs
TESTNAME
=
$(
1
)
>
$$(
REGRESSION
)
/
$(
1
)
.log
@
timeout
$(
TIMEOUT
)
@
$(
MAKE
)
-j1
run_vcs
TESTNAME
=
$(
1
)
>
$$(
REGRESSION
)
/
$(
1
)
.log
@
if
cat
$$(
REGRESSION
)
/
$(
1
)
.log |
grep
-i
"Test Passed"
;
then
echo
"
$(
1
)
: PASSED"
>>
$$(
REGRESSION
)
/RESULTS.log
;
else
echo
"
$(
1
)
: FAILED"
>>
$$(
REGRESSION
)
/RESULTS.log
;
fi
>
/dev/null
@
if
cat
$$(
REGRESSION
)
/
$(
1
)
.log |
grep
-i
"Test Passed"
;
then
echo
"
$(
1
)
: PASSED"
>>
$$(
REGRESSION
)
/RESULTS.log
;
else
echo
"
$(
1
)
: FAILED"
>>
$$(
REGRESSION
)
/RESULTS.log
;
fi
>
/dev/null
endef
endef
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment