-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from MrKevinWeiss/pr/philiphelp
Apply fixes and small improvements
- Loading branch information
Showing
15 changed files
with
67 additions
and
48 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
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,30 @@ | ||
This example show the bare minimum data needed to run the generator. | ||
It also includes the output of the map as well as C tests. | ||
This is an example of the bare minimum map requirements. | ||
It contains the map, the map c_file outputs, and a simple C program to ensure that the c_file outputs can be used. | ||
|
||
Note that the `CMake.txt` and `tests` have been manually created. | ||
Also remember that the [schema](../../memory_map_manager/data/mm_map_cfg.json) states that unassigned default values of the maps will be 0. | ||
|
||
# Usage | ||
|
||
Regenerate the files with: | ||
``` | ||
mmm-gen | ||
``` | ||
|
||
Build the binaries (assuming CMake is setup): | ||
``` | ||
cmake -S . -B build | ||
cmake --build build/ | ||
``` | ||
|
||
Test the binaries: | ||
``` | ||
cd build | ||
ctest | ||
cd .. | ||
``` | ||
|
||
Verify the output manually: | ||
``` | ||
./build/tests/test_0 | ||
``` |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
files: | ||
- my_minimal_map.yaml | ||
|
||
base_dir: "." | ||
|
||
c_dir: c_files | ||
|
||
csv_dir: /tmp/gen/csv_files | ||
|
||
cfg_dir: /tmp/gen/config |
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
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
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 | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,3 @@ files: | |
base_dir: "." | ||
|
||
c_dir: c_files | ||
|
||
csv_dir: /tmp/gen/csv_files | ||
|
||
cfg_dir: /tmp/gen/config |
This file was deleted.
Oops, something went wrong.
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
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
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
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
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pytest==7.2.0 | ||
pytest-cov==4.0.0 | ||
py # Needed for broken pytest-regtest | ||
pytest-regtest==1.5.0 | ||
pytest-console-scripts==1.3.1 |
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
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
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