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
704764db
Commit
704764db
authored
Oct 25, 2019
by
Miodrag Milanovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generate mk file so no editing needed
parent
13009106
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
0 deletions
+50
-0
regression/.gitignore
+1
-0
regression/Makefile
+0
-0
regression/issue_00774/heavy_test
+0
-0
regression/run-test.sh
+49
-0
No files found.
regression/.gitignore
View file @
704764db
*/work_*/
*/work_*/
/.stamp
/.stamp
/run-test.mk
regression/Makefile
View file @
704764db
This diff is collapsed.
Click to expand it.
regression/issue_00774/heavy_test
0 → 100644
View file @
704764db
regression/run-test.sh
0 → 100755
View file @
704764db
#!/usr/bin/env bash
set
-e
{
for
x
in
*
;
do
if
[
-d
"
$x
"
]
;
then
if
[
-f
"
$x
/
$x
.ys"
]
;
then
# Running test expected to pass
echo
"all::
$x
/work_
$x
/.stamp"
echo
"
$x
/work_
$x
/.stamp:"
if
[
-f
"
$x
/heavy_test"
]
;
then
if
[
-z
"
$ENABLE_HEAVY_TESTS
"
]
||
[
"
$ENABLE_HEAVY_TESTS
"
-ne
"1"
]
;
then
echo
" @echo 'Skipping heavy test
$x
..'"
break
fi
echo
" @echo 'Running heavy test
$x
..'"
else
echo
" @echo 'Running
$x
..'"
fi
echo
" @./run.sh
$x
$x
"
echo
"clean::"
echo
" @echo 'Cleaning
$x
..'"
echo
" @rm -rf
$x
/work_
$x
"
elif
[
-f
"
$x
/
$x
""_fail.ys"
]
;
then
# Running test expected to fail
echo
"all::
$x
/work_
$x
""_fail/.stamp"
echo
"
$x
/work_
$x
""_fail/.stamp:"
if
[
-f
"
$x
/heavy_test"
]
;
then
if
[
-z
"
$ENABLE_HEAVY_TESTS
"
]
||
[
"
$ENABLE_HEAVY_TESTS
"
-ne
"1"
]
;
then
echo
" @echo 'Skipping heavy test
$x
..'"
break
fi
echo
" @echo 'Running heavy test
$x
..'"
else
echo
" @echo 'Running
$x
..'"
fi
echo
" @./run.sh
$x
$x
""_fail"
echo
"clean::"
echo
" @echo 'Cleaning
$x
..'"
echo
" @rm -rf
$x
/work_
$x
""_fail"
else
# In case there is no script fail makefile
echo
"all:: run-
$x
"
echo
"run-
$x
:"
echo
"
\$
(error 'No scripts in
$x
..')"
fi
fi
done
echo
".PHONY: all clean"
}
>
run-test.mk
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