Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing basics for Binary unit support #6

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

erikbosch
Copy link
Collaborator

With this change I can run

erik@debian6:~/vss-tools/tests/vspec/test_structs$ vspec export binary --types VehicleDataTypes.vspec -u ../test_units.yaml -q ../test_quantities.yaml --vspec test.vspec --output hej.binary
[12:01:40] INFO     Loaded 'VSSQuantity', file=/home/erik/vss-tools/tests/vspec/test_structs/../test_quantities.yaml, elements=6           units_quantities.py:34
           INFO     Loaded 'VSSUnit', file=/home/erik/vss-tools/tests/vspec/test_structs/../test_units.yaml, elements=7                    units_quantities.py:34
           INFO     VSpecs (Types) loaded, amount=2                                                                                                  vspec.py:122
           INFO     Dynamic datatypes added=2                                                                                                         main.py:130
           INFO     VSpecs loaded, amount=1                                                                                                          vspec.py:122
           INFO     Generating binary output...                                                                                                     binary.py:150
           INFO     Binary output generated in hej.binary                                                                                           binary.py:153
erik@debian6:~/vss-tools/tests/vspec/test_structs$ 

For comparision, similar command works for yaml

erik@debian6:~/vss-tools/tests/vspec/test_structs$ vspec export yaml --types VehicleDataTypes.vspec -u ../test_units.yaml -q ../test_quantities.yaml --vspec test.vspec --output hej.yaml
[12:02:39] INFO     Loaded 'VSSQuantity', file=/home/erik/vss-tools/tests/vspec/test_structs/../test_quantities.yaml, elements=6           units_quantities.py:34
           INFO     Loaded 'VSSUnit', file=/home/erik/vss-tools/tests/vspec/test_structs/../test_units.yaml, elements=7                    units_quantities.py:34
           INFO     VSpecs (Types) loaded, amount=2                                                                                                  vspec.py:122
           INFO     Dynamic datatypes added=2                                                                                                         main.py:130
           INFO     VSpecs loaded, amount=1                                                                                                          vspec.py:122
           INFO     Generating YAML output...                                                                                                          yaml.py:97
           INFO     Adding custom data types to signal dictionary                                                                                     yaml.py:103
erik@debian6:~/vss-tools/tests/vspec/test_structs$ 

To verify that you work on expected commit, check git log

erik@debian6:~/vss-tools/tests/vspec/test_structs$ git log -2
commit d3ada0efe4888e5ed54a5d8ac0049ecaa8f5f8ea (HEAD -> erik_bin, origin/erik_bin)
Author: Erik Jaegervall <[email protected]>
Date:   Wed Oct 23 11:58:47 2024 +0200

    Testing basics for Binary unit support
    
    Signed-off-by: Erik Jaegervall <[email protected]>

commit 92d4873e38ec691b09de861fd40e62e68bb5f288 (upstream/master, origin/master, origin/HEAD)
Author: Sebastian Schleemilch <[email protected]>
Date:   Mon Oct 14 13:58:18 2024 +0200

    Tidy directory and file names
    
    Signed-off-by: Sebastian Schleemilch <[email protected]>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant