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

Add profile information to the visual test files #3270

Merged
merged 6 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/engine/openspaceengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ void OpenSpaceEngine::initialize() {
}

// Load the profile
LINFO(std::format("Loading profile '{}'", profile));
*global::profile = Profile(profile);

// Set up asset loader
Expand Down
88 changes: 0 additions & 88 deletions tests/visual/VisualTesting.Jenkinsfile

This file was deleted.

20 changes: 20 additions & 0 deletions tests/visual/apollo/11/landing.ostest
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"profile": "apollo",
"commands": [
{ "type": "action", "value": "os.apollo11.setup.LandingSite" },
{ "type": "wait", "value": 10 },
{ "type": "time", "value": "1969-07-20T20:15:50.00" },
{
"type": "navigationstate",
"value": {
"anchor": "Apollo11LemPosition",
"pitch": 0.979095E-1,
"position": [ -2.457687, 25.04798, 3.804939 ],
"up": [ -0.682505, 0.0438584, -0.729564 ],
"yaw": 0.0435056
}
},
{ "type": "wait", "value": 45 },
{ "type": "screenshot" }
]
}
30 changes: 30 additions & 0 deletions tests/visual/apollo/11/landingsite.ostest
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"profile": "apollo",
"commands": [
{ "type": "action", "value": "os.apollo11.setup.LandingSite" },
{ "type": "wait", "value": 10 },
{
"type": "navigationstate",
"value": {
"anchor": "Apollo11LemPosition",
"pitch": -0.275871E-1,
"position": [ -329.1966, 726.2499, -767.1269 ],
"referenceFrame": "Root",
"up": [ -0.833341, -0.532887, -0.146881 ],
"yaw": -0.000141130
}
},
{ "type": "wait", "value": 10 },
{
"type": "navigationstate",
"value": {
"anchor": "Apollo11LemPosition",
"position": [ 6.249130, 25.76497, -14.35499 ],
"up": [ -0.860897, -0.0718231, -0.503684 ],
"yaw": -0.000141143
}
},
{ "type": "wait", "value": 45 },
{ "type": "screenshot" }
]
}
19 changes: 19 additions & 0 deletions tests/visual/apollo/11/orbits.ostest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"profile": "apollo",
"commands": [
{ "type": "action", "value": "os.apollo11.setup.LandingSite" },
{ "type": "wait", "value": 10 },
{
"type": "navigationstate",
"value": {
"anchor": "Apollo11LemPosition",
"pitch": 0.00776040,
"position": [ -711349.3, 2688364, 539334.1 ],
"up": [ -0.382741, 0.0833124, -0.920091 ],
"yaw": 0.00288877
}
},
{ "type": "wait", "value": 30 },
{ "type": "screenshot" }
]
}
16 changes: 0 additions & 16 deletions tests/visual/apollo/11landing.ostest

This file was deleted.

18 changes: 0 additions & 18 deletions tests/visual/apollo/11landingsite.ostest

This file was deleted.

16 changes: 0 additions & 16 deletions tests/visual/apollo/11orbits.ostest

This file was deleted.

29 changes: 29 additions & 0 deletions tests/visual/apollo/17/landingsite.ostest
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"profile": "apollo",
"commands": [
{ "type": "action", "value": "os.apollo17.setup.LandingSite" },
{
"type": "navigationstate",
"value": {
"anchor": "Moon",
"pitch": 0.191313,
"position": [ 1403983, 835896.1, 600562.5 ],
"up": [ -0.316846, -0.141630, 0.937843 ],
"yaw": -0.143901
}
},
{ "type": "wait", "value": 10 },
{
"type": "navigationstate",
"value": {
"anchor": "Moon",
"pitch": 0.953555,
"position": [ 1399797, 833416.1, 598828.3 ],
"up": [ -0.381687, -0.0228442, 0.924009 ],
"yaw": -0.0789410
}
},
{ "type": "wait", "value": 45 },
{ "type": "screenshot" }
]
}
18 changes: 0 additions & 18 deletions tests/visual/apollo/17landingsite.ostest

This file was deleted.

8 changes: 8 additions & 0 deletions tests/visual/apollo/8/pre-earthrise.ostest
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"profile": "apollo",
"commands": [
{ "type": "action", "value": "os.apollo8.SetupEarthrise" },
{ "type": "wait", "value": 60 },
{ "type": "screenshot" }
]
}
10 changes: 0 additions & 10 deletions tests/visual/apollo/preearthrise.ostest

This file was deleted.

10 changes: 0 additions & 10 deletions tests/visual/default/DefaultEarth.ostest

This file was deleted.

10 changes: 0 additions & 10 deletions tests/visual/default/DefaultSolarSystem.ostest

This file was deleted.

32 changes: 0 additions & 32 deletions tests/visual/default/MarsHiRISE.ostest

This file was deleted.

14 changes: 0 additions & 14 deletions tests/visual/default/MoonSurface.ostest

This file was deleted.

12 changes: 12 additions & 0 deletions tests/visual/default/earth.ostest
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"profile": "default",
"commands": [
{ "type": "time", "value": "2019-01-01T05:00:00.00" },
{
"type": "property",
"value": { "property": "Scene.ISS_trail.Renderable.Enabled", "value": false }
},
{ "type": "wait", "value": 30 },
{ "type": "screenshot" }
]
}
Loading