-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Collin Mulliner
committed
Aug 15, 2019
1 parent
5a77f93
commit b222d0b
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,38 @@ | |||
# Building FwAnalyzer | |||
|
|||
## Requirements | |||
|
|||
- golang + dep + golang-lint | |||
- Python | |||
- filesystem tools such as e2tools, mtools | |||
|
|||
The full list of dependencies is tracked in the [Dockerfile](Dockerfile). | |||
|
|||
## Clone Repository | |||
|
|||
```sh | |||
cd go/src/github.com/cruise-automation/ | |||
git clone git@github.com:cruise-automation/fwanalyzer.git | |||
``` | |||
|
|||
## Building | |||
|
|||
Before building you need to download some third party go libraries, run `make deps` before the first build. | |||
|
|||
```sh | |||
cd go/src/github.com/cruise-automation/fwanalyzer | |||
make deps | |||
make | |||
``` | |||
|
|||
The `fwanalyzer` binary will be in `build/`. | |||
|
|||
# Testing | |||
|
|||
We have two types of tests: unit tests and integration tests, both tests will be triggered by running `make test`. | |||
Tests rely on e2tools, mtools, squashfs-tools, and ubi_reader, as well as Python. | |||
|
|||
```sh | |||
cd go/src/github.com/cruise-automation/fwanalyzer | |||
make test | |||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters