-
Notifications
You must be signed in to change notification settings - Fork 48
ogma-cli: Tests are missing auxiliary files #216
Copy link
Copy link
Closed
Labels
CR:Status:ClosedAdmin only: Change request that has been completedAdmin only: Change request that has been completedCR:Type:BugAdmin only: Change request pertaining to error detectedAdmin only: Change request pertaining to error detected
Milestone
Description
Description
The cabal file for ogma-cli is not including all the files needed for the tests, causing the tests to fail when the packages are grabbed from hackage rather than the git repo.
Type
- Bug: Files missing in package.
Additional context
None.
Requester
- Ivan Perez.
Method to check presence of bug
Installing from the cabal package archive, such as when one installs from hackage, prints an error message;:
$ RUN cabal v1-install ogma-core ogma-cli --run-tests \
--constraint="ogma-cli==1.6.0" \
--constraint="ogma-core==1.6.0" \
--constraint="ogma-language-smv==1.6.0" \
--constraint="ogma-language-copilot==1.6.0" \
--constraint="ogma-language-cocospec==1.6.0" \
--constraint="ogma-language-c==1.6.0" \
--constraint="ogma-language-jsonspec==1.6.0" \
--constraint="ogma-language-xmlspec==1.6.0" \
--constraint="ogma-extra==1.6.0" \
--constraint="ogma-spec==1.6.0" \
--constraint="aeson>=2.0.3.0"
[...]
Running 1 test suites...
Test suite test-ogma: RUNNING...
cli-main-ok: [OK]
cli-main-fail: [OK]
cli-cmd-structs: [OK]
cli-cmd-structs-fail: [OK]
cli-cmd-handlers: [OK]
cli-cmd-handlers-fail: [OK]
cli-cmd-cfs: [OK]
cli-cmd-cfs-fail: [OK]
cli-cmd-standalone: [OK]
cli-cmd-standalone-fail: [OK]
cli-cmd-standalone-fcs: [Failed]
Parsing file examples/fcs-2.json result unexpected.
cli-cmd-standalone-file-not-found: [OK]
cli-cmd-standalone-parse-fail-1: [OK]
cli-cmd-standalone-parse-fail-2: [OK]
cli-cmd-standalone-parse-fail-3: [OK]
cli-cmd-standalone-fdb: [Failed]
Parsing file tests/fdb-example1.json failed
structs-parse-ok: [Failed]
Result of processing file tests/reduced_geofence_msgs.h failed
structs-parse-fail-1: [OK]
Test Cases Total
Passed 15 15
Failed 3 3
Total 18 18
Test suite test-ogma: FAIL
Test suite logged to:
dist/dist-sandbox-637d1a74/test/ogma-cli-1.6.0-test-ogma.log
0 of 1 test suites (0 of 1 test cases) passed.
cabal: Leaving directory '/tmp/cabal-tmp-7/ogma-cli-1.6.0'
Expected result
Installation from the package archives completes successfully.
Desired result
Installation from the package archives completes successfully.
Proposed solution
Add any auxiliary files needed for tests to the cabal package declaration of ogma-cli.
Further notes
None.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
CR:Status:ClosedAdmin only: Change request that has been completedAdmin only: Change request that has been completedCR:Type:BugAdmin only: Change request pertaining to error detectedAdmin only: Change request pertaining to error detected