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
91dd1441
Commit
91dd1441
authored
Apr 25, 2019
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check for multi-dim arrays and SV types in test runner
parent
3fde36d9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
test/lib/runner.sh
+7
-2
No files found.
test/lib/runner.sh
View file @
91dd1441
...
@@ -53,9 +53,14 @@ assertConverts() {
...
@@ -53,9 +53,14 @@ assertConverts() {
assertTrue
"3rd conversion of
$ac_file
failed"
$?
assertTrue
"3rd conversion of
$ac_file
failed"
$?
diff
"
$ac_tmpb
"
"
$ac_tmpc
"
>
/dev/null
diff
"
$ac_tmpb
"
"
$ac_tmpc
"
>
/dev/null
assertTrue
"conversion of
$ac_file
not stable after the second iteration"
$?
assertTrue
"conversion of
$ac_file
not stable after the second iteration"
$?
# using sed to remove quoted strings because "$bits" may be printed
# using sed to remove quoted strings
sed
-E
's/"([^"]|\")+"//g'
"
$ac_tmpa
"
|
grep
"
\$
bits"
>
/dev/null
filtered
=
`
sed
-E
's/"([^"]|\")+"//g'
"
$ac_tmpa
"
`
echo
"
$filtered
"
|
grep
"
\$
bits"
>
/dev/null
assertFalse
"conversion of
$ac_file
still contains
\$
bits"
$?
assertFalse
"conversion of
$ac_file
still contains
\$
bits"
$?
echo
"
$filtered
"
|
grep
"
\]\[
"
>
/dev/null
assertFalse
"conversion of
$ac_file
still contains multi-dim arrays"
$?
echo
"
$filtered
"
| egrep
"
\s
(int
\|
bit
\|
logic
\|
byte
\|
struct
\|
enum
\|
longint
\|
shortint)
\s
"
assertFalse
"conversion of
$ac_file
still contains SV types"
$?
}
}
simpleTest
()
{
simpleTest
()
{
...
...
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