Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv2v
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
sv2v
Commits
29b51365
Commit
29b51365
authored
Feb 15, 2020
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test runner supports explicit list of tests
parent
799141af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
test/lib/runner.sh
+8
-6
No files found.
test/lib/runner.sh
View file @
29b51365
...
@@ -2,15 +2,17 @@
...
@@ -2,15 +2,17 @@
SCRIPT_DIR
=
`
dirname
"
${
BASH_SOURCE
[0]
}
"
`
SCRIPT_DIR
=
`
dirname
"
${
BASH_SOURCE
[0]
}
"
`
tests
=
`
ls
*
.sv | sed
-e
"s_
\.
sv
\\\$
__"
`
tests
=
(
`
ls
*
.sv | sed
-e
"s_
\.
sv
\\\$
__"
`
)
if
[
$1
]
;
then
if
[
$1
]
;
then
tests
=
$1
tests
=(
"
$@
"
)
shift
shift
${#
tests
[@]
}
if
[
!
-f
$tests
.sv
]
;
then
for
test
in
$tests
;
do
echo
"Could not find
$tests
.sv"
if
[
!
-f
$test
.sv
]
;
then
echo
"Could not find
$test
.sv"
exit
1
exit
1
fi
fi
done
fi
fi
addTest
()
{
addTest
()
{
...
@@ -20,7 +22,7 @@ addTest() {
...
@@ -20,7 +22,7 @@ addTest() {
}
}
suite
()
{
suite
()
{
for
test
in
$tests
;
do
for
test
in
"
${
tests
[@]
}
"
;
do
addTest
$test
addTest
$test
done
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