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
bafe7e43
Commit
bafe7e43
authored
Sep 02, 2019
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test runner supports test selection
parent
04de45b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
test/lib/runner.sh
+15
-3
No files found.
test/lib/runner.sh
View file @
bafe7e43
...
@@ -2,10 +2,22 @@
...
@@ -2,10 +2,22 @@
SCRIPT_DIR
=
`
dirname
"
${
BASH_SOURCE
[0]
}
"
`
SCRIPT_DIR
=
`
dirname
"
${
BASH_SOURCE
[0]
}
"
`
tests
=
`
ls
*
.sv | sed
-e
"s_
\.
sv
\\\$
__"
`
if
[
"
$1
"
]
;
then
tests
=
"
$1
"
shift
fi
addTest
()
{
test
=
"
$1
"
eval
"test_
$test
() { runTest
\"
$test
\"
; }"
suite_addTest
"test_
$test
"
}
suite
()
{
suite
()
{
for
test
in
`
ls
*
.sv | sed
-e
"s_
\.
sv
\\\$
__"
`
;
do
for
test
in
$tests
;
do
eval
"test_
$test
() { runTest
\"
$test
\"
; }"
addTest
$test
suite_addTest
"test_
$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