Skip to content

Commit

Permalink
Merge pull request anikau31#34 from zhuanhao-wu/port-integration-with…
Browse files Browse the repository at this point in the history
…-matchers

Port integration with matchers
  • Loading branch information
rseac committed Jan 17, 2020
2 parents 964e590 + 2b7ac1c commit 03b87b4
Show file tree
Hide file tree
Showing 20 changed files with 1,225 additions and 640 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "tests/data/verilog-conversion"]
path = tests/data/verilog-conversion
url = git@github.com:zhuanhao-wu/systemc-clang-verilog-conversion.git
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@ It parses RTL constructs and some TLM 2.0 constructs.

### Python Tests for Verilog conversion

1. To enable the python tests, run cmake with the `-DENABLE_PYTHON_TESTS=on` flag. Note that `python 3` should be installed.
2. To install necessary packages listed in `requirements.txt`, run `pip -r requirements.txt` in the **repo** directory.
3. To run the python tests, switch to the `$SYSTEMC_CLANG_BUILD_DIR` build directory and run `ctest -R python --output` after the build completes.
1. In the **repo_** directory, use `git submodule update` to pull the Verilog conversion data.
2. To enable the python tests, run cmake with the `-DENABLE_PYTHON_TESTS=on` flag. Note that `python 3` should be installed.
3. To install necessary packages listed in `requirements.txt`, run `pip install -r requirements.txt` in the **repo** directory.
4. To run the python tests, switch to the `$SYSTEMC_CLANG_BUILD_DIR` build directory and run `ctest -R python --output` after the build completes.

#### Details
- To observe the failing tests, one can run the tests in `tests/verilog-conversion/` by running `pytest -s -v -q --tool-output`.
The `-s` option captures the standard output for the test, `-v` enables verbose mode, and `-q --tool-output` captures the output of the binary.

## Contact

Expand Down
Loading

0 comments on commit 03b87b4

Please sign in to comment.