-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare v1.0.0-rc.1 release candidate (#66)
Signed-off-by: hoangtungdinh <11166240+hoangtungdinh@users.noreply.github.com> Co-authored-by: hoangtungdinh <11166240+hoangtungdinh@users.noreply.github.com>
- Loading branch information
1 parent
465afee
commit 3c526eb
Showing
10 changed files
with
118 additions
and
16 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
BUNDLE_NAME = "xoscBundle" | ||
BUNDLE_VERSION = "0.1.0" | ||
BUNDLE_VERSION = "v1.0.0-rc.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
46 changes: 46 additions & 0 deletions
46
tests/data/non_existing_road_network_file/non_existing_road_network_file.xosc
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,46 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<OpenSCENARIO xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../Schema/OpenSCENARIO.xsd"> | ||
<FileHeader author="ASAM e.V." date="2021-02-05T18:50:17" description="Simple Overtaker example" revMajor="1" revMinor="3" /> | ||
<ParameterDeclarations /> | ||
<CatalogLocations /> | ||
<RoadNetwork> | ||
<LogicFile filepath="non_existing_file.xodr" /> | ||
</RoadNetwork> | ||
<Entities> | ||
<ScenarioObject name="Vehicle 1"> | ||
<Vehicle name="Vehicle 1" vehicleCategory="car"> | ||
<BoundingBox> | ||
<Center x="1.3" y="0.0" z="0.75" /> | ||
<Dimensions width="1.8" length="4.5" height="1.5" /> | ||
</BoundingBox> | ||
<Performance maxSpeed="200.0" maxDeceleration="30.0" maxAcceleration="200.0" /> | ||
<Axles> | ||
<FrontAxle positionZ="0.4" trackWidth="1.68" positionX="2.98" maxSteering="0.5235987756" wheelDiameter="0.8" /> | ||
<RearAxle positionZ="0.4" trackWidth="1.68" positionX="0.0" maxSteering="0.5235987756" wheelDiameter="0.8" /> | ||
</Axles> | ||
</Vehicle> | ||
</ScenarioObject> | ||
</Entities> | ||
<Storyboard> | ||
<Init> | ||
<Actions> | ||
<GlobalAction> | ||
<InfrastructureAction> | ||
<TrafficSignalAction> | ||
<TrafficSignalStateAction name="12345" state="on;off;off" /> | ||
</TrafficSignalAction> | ||
</InfrastructureAction> | ||
</GlobalAction> | ||
<Private entityRef="Vehicle 1"> | ||
<PrivateAction> | ||
<TeleportAction> | ||
<Position> | ||
<WorldPosition x="0.0" y="0.0" /> | ||
</Position> | ||
</TeleportAction> | ||
</PrivateAction> | ||
</Private> | ||
</Actions> | ||
</Init> | ||
</Storyboard> | ||
</OpenSCENARIO> |
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,21 @@ | ||
import os | ||
import pytest | ||
import test_utils | ||
from qc_baselib import Result, IssueSeverity, StatusType | ||
from qc_openscenario.checks import basic_checker | ||
|
||
|
||
def test_non_existing_road_network_file( | ||
monkeypatch, | ||
) -> None: | ||
base_path = "tests/data/non_existing_road_network_file/" | ||
target_file_name = f"non_existing_road_network_file.xosc" | ||
target_file_path = os.path.join(base_path, target_file_name) | ||
|
||
test_utils.create_test_config(target_file_path) | ||
|
||
test_utils.launch_main(monkeypatch) | ||
|
||
# Should have no exception | ||
assert True | ||
test_utils.cleanup_files() |