diff --git a/tests/visual/VisualTesting.Jenkinsfile b/tests/visual/VisualTesting.Jenkinsfile new file mode 100644 index 0000000000..7dbdbe6056 --- /dev/null +++ b/tests/visual/VisualTesting.Jenkinsfile @@ -0,0 +1,88 @@ +import groovy.io.FileType + +library('sharedSpace'); // jenkins-pipeline-lib + +def url = 'https://github.com/OpenSpace/OpenSpace'; +//def branch = env.BRANCH_NAME; +def branch = "feature/visual-testing-try2" + +@NonCPS +def readDir() { + def dirsl = []; + new File("${workspace}").eachDir() { + dirs -> println dirs.getName() + if (!dirs.getName().startsWith('.')) { + dirsl.add(dirs.getName()); + } + } + return dirs; +} + +def moduleCMakeFlags() { + def modules = []; + // using new File doesn't work as it is not allowed in the sandbox + + if (isUnix()) { + modules = sh(returnStdout: true, script: 'ls -d modules/*').trim().split('\n'); + }; + else { + modules = bat(returnStdout: true, script: '@dir modules /b /ad /on').trim().split('\r\n'); + } + + def flags = ''; + for (module in modules) { + flags += "-DOPENSPACE_MODULE_${module.toUpperCase()}=ON " + } + return flags; +} + +// +// Pipeline start +// +//hi micah +parallel linux_gcc_make: { + if (env.USE_BUILD_OS_LINUX == 'true') { + node('linux-visual' && 'gcc') { + stage('linux-gcc-make/scm') { + deleteDir(); + gitHelper.checkoutGit(url, branch); + } + stage('linux-gcc-make/build') { + def cmakeCompileOptions = moduleCMakeFlags(); + cmakeCompileOptions += ' -DMAKE_BUILD_TYPE=Release'; + // Not sure why the linking of OpenSpaceTest takes so long + compileHelper.build(compileHelper.Make(), compileHelper.Gcc(), cmakeCompileOptions, 'OpenSpace', 'build-make'); + compileHelper.recordCompileIssues(compileHelper.Gcc()); + } + stage('linux-gcc-make/test') { + // testHelper.runUnitTests('build/OpenSpaceTest'); + // testHelper.runUnitTests('bin/codegentest') + } + cleanWs() + } // node('linux') + } +}, +windows_msvc: { + if (env.USE_BUILD_OS_WINDOWS == 'true') { + node('windows-visual') { + stage('windows-msvc/scm') { + deleteDir(); + gitHelper.checkoutGit(url, branch); + } + stage('windows-msvc/build') { + compileHelper.build(compileHelper.VisualStudio(), compileHelper.VisualStudio(), moduleCMakeFlags(), '', 'build-msvc'); + compileHelper.recordCompileIssues(compileHelper.VisualStudio()); + } + stage('windows/visual-tests') { + dir('OpenSpace') { + testHelper.linkFolder(env.OPENSPACE_FILES + "\\sync_full", "sync", ); + testHelper.linkFolder(env.OPENSPACE_FILES + "\\cache_gdal", "cache_gdal"); + } + testHelper.startTestRunner(); + testHelper.runUiTests() + //commit new test images + //copy test results to static dir + } + } + } +} diff --git a/tests/visual/apollo/11landing.ostest b/tests/visual/apollo/11landing.ostest new file mode 100644 index 0000000000..6b4d8d9e99 --- /dev/null +++ b/tests/visual/apollo/11landing.ostest @@ -0,0 +1,14 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "keys", + "value": "F11"}, + { "type": "time", + "value": "1969-07-20T20:15:50.00"}, + { "type": "navigationstate", + "value": "{Anchor='Apollo11LemPosition',Pitch=0.979095E-1,Position={-2.457687E0,2.504798E1,3.804939E0},ReferenceFrame='Root',Up={-0.682505E0,0.438584E-1,-0.729564E0},Yaw=0.435056E-1}"}, + { "type": "wait", + "value": "30"}, + { "type": "screenshot", + "value": ""} +] \ No newline at end of file diff --git a/tests/visual/apollo/11landingsite.ostest b/tests/visual/apollo/11landingsite.ostest new file mode 100644 index 0000000000..8c0d09495c --- /dev/null +++ b/tests/visual/apollo/11landingsite.ostest @@ -0,0 +1,16 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "keys", + "value": "F11"}, + { "type": "navigationstate", + "value": "{Anchor='Apollo11LemPosition',Pitch=-0.275871E-1,Position={-3.291966E2,7.262499E2,-7.671269E2},ReferenceFrame='Root',Up={-0.833341E0,-0.532887E0,-0.146881E0},Yaw=-0.141130E-3}"}, + { "type": "wait", + "value": "10"}, + { "type": "navigationstate", + "value": "{Anchor='Apollo11LemPosition',Pitch=-0.275880E-1,Position={6.249130E0,2.576497E1,-1.435499E1},ReferenceFrame='Root',Up={-0.860897E0,-0.718231E-1,-0.503684E0},Yaw=-0.141143E-3}"}, + { "type": "wait", + "value": "20"}, + { "type": "screenshot", + "value": "11landingsite"} +] diff --git a/tests/visual/apollo/11orbits.ostest b/tests/visual/apollo/11orbits.ostest new file mode 100644 index 0000000000..d9467dc754 --- /dev/null +++ b/tests/visual/apollo/11orbits.ostest @@ -0,0 +1,14 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "keys", + "value": "F11"}, + { "type": "navigationstate", + "value": "{Anchor='Apollo11LemPosition',Pitch=0.776040E-2,Position={-7.113493E5,2.688364E6,5.393341E5},ReferenceFrame='Root',Up={-0.382741E0,0.833124E-1,-0.920091E0},Yaw=0.288877E-2}"}, + { "type": "wait", + "value": "30"}, + { "type": "screenshot", + "value": "11orbits"} +] + + diff --git a/tests/visual/apollo/17landingsite.ostest b/tests/visual/apollo/17landingsite.ostest new file mode 100644 index 0000000000..7f8b07213a --- /dev/null +++ b/tests/visual/apollo/17landingsite.ostest @@ -0,0 +1,18 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "keys", + "value": "F7"}, + { "type": "navigationstate", + "value": "{Anchor='Moon',Pitch=0.191313E0,Position={1.403983E6,8.358961E5,6.005625E5},Up={-0.316846E0,-0.141630E0,0.937843E0},Yaw=-0.143901E0}"}, + { "type": "wait", + "value": "10"}, + { "type": "navigationstate", + "value": "{Anchor='Moon',Pitch=0.953555E0,Position={1.399797E6,8.334161E5,5.988283E5},Up={-0.381687E0,-0.228442E-1,0.924009E0},Yaw=-0.789410E-1}"}, + { "type": "wait", + "value": "20"}, + { "type": "screenshot", + "value": "17landingsite"} +] + + diff --git a/tests/visual/apollo/preearthrise.ostest b/tests/visual/apollo/preearthrise.ostest new file mode 100644 index 0000000000..48acd5fff4 --- /dev/null +++ b/tests/visual/apollo/preearthrise.ostest @@ -0,0 +1,10 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "keys", + "value": "e"}, + { "type": "wait", + "value": "60"}, + { "type": "screenshot", + "value": ""} +] \ No newline at end of file diff --git a/tests/visual/default/DefaultEarth.ostest b/tests/visual/default/DefaultEarth.ostest new file mode 100644 index 0000000000..5372543010 --- /dev/null +++ b/tests/visual/default/DefaultEarth.ostest @@ -0,0 +1,8 @@ +[ + { "type": "time", + "value": "2019-01-01T05:00:00.00"}, + { "type": "wait", + "value": "20"}, + { "type": "screenshot", + "value": "Earth"} +] diff --git a/tests/visual/default/DefaultSolarSystem.ostest b/tests/visual/default/DefaultSolarSystem.ostest new file mode 100644 index 0000000000..8607fd5d16 --- /dev/null +++ b/tests/visual/default/DefaultSolarSystem.ostest @@ -0,0 +1,10 @@ +[ + { "type": "time", + "value": "2019-01-01T00:00:00.00"}, + { "type": "recording", + "value": "RecordingDefaultSolarSystem"}, + { "type": "wait", + "value": "2"}, + { "type": "screenshot", + "value": "SolarSystem"} +] diff --git a/tests/visual/default/MarsHiRISE.ostest b/tests/visual/default/MarsHiRISE.ostest new file mode 100644 index 0000000000..fefb5f4042 --- /dev/null +++ b/tests/visual/default/MarsHiRISE.ostest @@ -0,0 +1,26 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2019-01-01T05:00:00.00"}, + { "type": "keys", + "value": "h"}, + { "type": "navigationstate", + "value": "{Anchor='Mars',Pitch=1.327145E0,Position={7.622104E5,-3.288462E6,-3.857782E5},Up={-0.485709E-1,-0.127474E0,0.990652E0},Yaw=0.224817E-1}"}, + { "type": "script", + "value": "openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.HeightLayers.HiRISE-LS-DEM.Enabled', true)"}, + { "type": "script", + "value": "openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.HiRISE-PSP.Enabled', true)"}, + { "type": "script", + "value": "openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.CTX_blended_01.Enabled', true)"}, + { "type": "wait", + "value": "30"}, + { "type": "navigationstate", + "value": "{Anchor='Mars',Pitch=1.347758E0,Position={7.635264E5,-3.287992E6,-3.854482E5},Up={-0.470953E-1,-0.127084E0,0.990773E0},Yaw=0.463204E-1}"}, + { "type": "wait", + "value": "120"}, + { "type": "screenshot", + "value": "MarsHiRISE"} +] + + diff --git a/tests/visual/default/MoonSurface.ostest b/tests/visual/default/MoonSurface.ostest new file mode 100644 index 0000000000..7b4806b1d1 --- /dev/null +++ b/tests/visual/default/MoonSurface.ostest @@ -0,0 +1,14 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2019-01-01T00:00:00.00"}, + { "type": "navigationstate", + "value": "{Anchor='Moon',Pitch=0.698796E0,Position={-1.440875E5,-1.669880E6,-7.359455E5},Up={0.664779E0,0.252496E0,-0.703075E0},Yaw=0.321787E-1}"}, + { "type": "wait", + "value": "40"}, + { "type": "screenshot", + "value": "MoonSurface"} +] + + diff --git a/tests/visual/default/RecordingDefaultSolarSystem.osrecording b/tests/visual/default/RecordingDefaultSolarSystem.osrecording new file mode 100644 index 0000000000..458b5c5901 Binary files /dev/null and b/tests/visual/default/RecordingDefaultSolarSystem.osrecording differ diff --git a/tests/visual/gaia/gaiadefaultstart.ostest b/tests/visual/gaia/gaiadefaultstart.ostest new file mode 100644 index 0000000000..5daed0b449 --- /dev/null +++ b/tests/visual/gaia/gaiadefaultstart.ostest @@ -0,0 +1,12 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2000-01-01T12:00:00.00"}, + { "type": "navigationstate", + "value": "{Anchor='Earth',Position={1.584558E11,1.679926E12,-3.908214E11},ReferenceFrame='Root',Up={-0.364428E0,0.243481E0,0.898838E0}}"}, + { "type": "wait", + "value": "2"}, + { "type": "screenshot", + "value": ""} +] \ No newline at end of file diff --git a/tests/visual/gaia/gaiamilkyway.ostest b/tests/visual/gaia/gaiamilkyway.ostest new file mode 100644 index 0000000000..f876f37262 --- /dev/null +++ b/tests/visual/gaia/gaiamilkyway.ostest @@ -0,0 +1,14 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2000-01-01T12:00:00.00"}, + { "type": "navigationstate", + "value": "{Anchor='MilkyWayVolume',Pitch=-0.155824E0,Position={-6.225812E19,-5.819011E20,-3.598294E20},ReferenceFrame='Root',Up={0.140140E0,0.509858E0,-0.848767E0},Yaw=-0.304706E-1}"}, + { "type": "script", + "value": "openspace.setPropertyValueSingle('Scene.GaiaStars.Renderable.LuminosityMultiplier', 100.000000)"}, + { "type": "wait", + "value": "2"}, + { "type": "screenshot", + "value": ""} +] diff --git a/tests/visual/gaia/gaiatime10000000000000.ostest b/tests/visual/gaia/gaiatime10000000000000.ostest new file mode 100644 index 0000000000..4adb7bd5b5 --- /dev/null +++ b/tests/visual/gaia/gaiatime10000000000000.ostest @@ -0,0 +1,14 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "script", + "value": "openspace.time.setTime(10000000000000)"}, + { "type": "navigationstate", + "value": "{Anchor='GaiaStars',Pitch=-0.205159E-1,Position={2.272225E19,-1.940065E19,1.124299E17},ReferenceFrame='Root',Up={0.261695E0,0.301186E0,-0.916953E0},Yaw=-0.104809E-1}"}, + { "type": "script", + "value": "openspace.setPropertyValueSingle('Scene.GaiaStars.Renderable.LuminosityMultiplier', 100.000000)"}, + { "type": "wait", + "value": "2"}, + { "type": "screenshot", + "value": ""} +] diff --git a/tests/visual/gaia/gaiatime100000000000000.ostest b/tests/visual/gaia/gaiatime100000000000000.ostest new file mode 100644 index 0000000000..ca23ecdff3 --- /dev/null +++ b/tests/visual/gaia/gaiatime100000000000000.ostest @@ -0,0 +1,14 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "script", + "value": "openspace.time.setTime(100000000000000)"}, + { "type": "navigationstate", + "value": "{Anchor='GaiaStars',Pitch=-0.205159E-1,Position={2.272225E19,-1.940065E19,1.124299E17},ReferenceFrame='Root',Up={0.261695E0,0.301186E0,-0.916953E0},Yaw=-0.104809E-1}"}, + { "type": "script", + "value": "openspace.setPropertyValueSingle('Scene.GaiaStars.Renderable.LuminosityMultiplier', 100.000000)"}, + { "type": "wait", + "value": "2"}, + { "type": "screenshot", + "value": ""} +] diff --git a/tests/visual/gaia/gaiazoom.ostest b/tests/visual/gaia/gaiazoom.ostest new file mode 100644 index 0000000000..75a4ae2515 --- /dev/null +++ b/tests/visual/gaia/gaiazoom.ostest @@ -0,0 +1,12 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2000-01-01T12:00:00.00"}, + { "type": "navigationstate", + "value": "{Anchor='Earth',Position={8.104243E18,8.839172E18,-5.076751E18},ReferenceFrame='Root',Up={-0.201743E0,0.620307E0,0.757970E0}}"}, + { "type": "wait", + "value": "2"}, + { "type": "screenshot", + "value": ""} +] diff --git a/tests/visual/gaia/gaiazoombright.ostest b/tests/visual/gaia/gaiazoombright.ostest new file mode 100644 index 0000000000..1eab6f8521 --- /dev/null +++ b/tests/visual/gaia/gaiazoombright.ostest @@ -0,0 +1,14 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2000-01-01T12:00:00.00"}, + { "type": "navigationstate", + "value": "{Anchor='Earth',Position={8.104243E18,8.839172E18,-5.076751E18},ReferenceFrame='Root',Up={-0.201743E0,0.620307E0,0.757970E0}}"}, + { "type": "script", + "value": "openspace.setPropertyValueSingle('Scene.GaiaStars.Renderable.LuminosityMultiplier', 100.000000)"}, + { "type": "wait", + "value": "2"}, + { "type": "screenshot", + "value": ""} +] diff --git a/tests/visual/juno/junomodel.ostest b/tests/visual/juno/junomodel.ostest new file mode 100644 index 0000000000..2e11c7dfc4 --- /dev/null +++ b/tests/visual/juno/junomodel.ostest @@ -0,0 +1,12 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2016-07-01T00:00:00.00"}, + { "type": "navigationstate", + "value": "{Anchor='Juno',Pitch=-0.165756E-1,Position={-2.249081E1,1.191533E0,2.635740E1},Up={0.288083E-1,0.999373E0,-0.205962E-1},Yaw=0.152454E0}"}, + { "type": "wait", + "value": "2"}, + { "type": "screenshot", + "value": ""} +] \ No newline at end of file diff --git a/tests/visual/juno/junotrailfull.ostest b/tests/visual/juno/junotrailfull.ostest new file mode 100644 index 0000000000..95b3b93b51 --- /dev/null +++ b/tests/visual/juno/junotrailfull.ostest @@ -0,0 +1,16 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2016-07-01T00:00:00.00"}, + { "type": "navigationstate", + "value": "{Anchor='Jupiter',Pitch=-0.884063E-1,Position={-2.734747E8,7.875195E9,-4.723682E9},ReferenceFrame='Root',Up={-0.318598E-1,0.513306E0,0.857614E0},Yaw=-0.311906E0}"}, + { "type": "script", + "value": "openspace.setPropertyValueSingle('Scene.JunoTrail.Renderable.ShowFullTrail', true)"}, + { "type": "script", + "value": "openspace.setPropertyValueSingle('Scene.JunoTrail.Renderable.Appearance.EnableFade', false)"}, + { "type": "wait", + "value": "2"}, + { "type": "screenshot", + "value": ""} +] \ No newline at end of file diff --git a/tests/visual/mars/insightinsideatmosphere.ostest b/tests/visual/mars/insightinsideatmosphere.ostest new file mode 100644 index 0000000000..cd531442a8 --- /dev/null +++ b/tests/visual/mars/insightinsideatmosphere.ostest @@ -0,0 +1,12 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2018-11-26T19:41:00.00"}, + { "type": "navigationstate", + "value": "{Anchor='Insight',Pitch=0.114752E-4,Position={5.481552E0,-1.165030E1,1.829742E0},ReferenceFrame='Root',Up={0.599736E0,0.391764E0,0.697738E0},Yaw=-0.107029E-4}"}, + { "type": "wait", + "value": "30"}, + { "type": "screenshot", + "value": ""} +] \ No newline at end of file diff --git a/tests/visual/mars/insightlanded.ostest b/tests/visual/mars/insightlanded.ostest new file mode 100644 index 0000000000..15242f44a0 --- /dev/null +++ b/tests/visual/mars/insightlanded.ostest @@ -0,0 +1,16 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2018-11-26T19:46:00.00"}, + { "type": "navigationstate", + "value": "{Anchor='Insight',Pitch=-0.100135E0,Position={9.763474E0,-1.377502E0,1.668823E0},ReferenceFrame='Root',Up={-0.910753E-1,0.437979E0,0.894360E0},Yaw=0.939157E-1}"}, + { "type": "keys", + "value": "h"}, + { "type": "script", + "value": "openspace.setPropertyValueSingle('Scene.InsightTrail.Renderable.Enabled', false)"}, + { "type": "wait", + "value": "30"}, + { "type": "screenshot", + "value": ""} +] \ No newline at end of file diff --git a/tests/visual/mars/insightousideatmosphere.ostest b/tests/visual/mars/insightousideatmosphere.ostest new file mode 100644 index 0000000000..94da72c058 --- /dev/null +++ b/tests/visual/mars/insightousideatmosphere.ostest @@ -0,0 +1,12 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2018-11-26T19:40:00.00"}, + { "type": "navigationstate", + "value": "{Anchor='Insight',Pitch=0.129072E-4,Position={5.481552E0,-1.165030E1,1.829742E0},ReferenceFrame='Root',Up={0.494653E0,0.357174E0,0.792304E0},Yaw=-0.892388E-5}"}, + { "type": "wait", + "value": "30"}, + { "type": "screenshot", + "value": ""} +] \ No newline at end of file diff --git a/tests/visual/mars/insightparachute.ostest b/tests/visual/mars/insightparachute.ostest new file mode 100644 index 0000000000..1f9b5158d2 --- /dev/null +++ b/tests/visual/mars/insightparachute.ostest @@ -0,0 +1,16 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2018-11-26T19:44:00.00"}, + { "type": "navigationstate", + "value": "{Anchor='Insight',Pitch=-0.101682E0,Position={-4.087723E0,-4.039124E0,-8.183899E0},ReferenceFrame='Root',Up={0.827895E0,0.213243E0,-0.518765E0},Yaw=-0.398734E0}"}, + { "type": "keys", + "value": "h"}, + { "type": "script", + "value": "openspace.setPropertyValueSingle('Scene.InsightTrail.Renderable.Enabled', false)"}, + { "type": "wait", + "value": "30"}, + { "type": "screenshot", + "value": ""} +] \ No newline at end of file diff --git a/tests/visual/newhorizons/NewHorizonsModel.ostest b/tests/visual/newhorizons/NewHorizonsModel.ostest new file mode 100644 index 0000000000..2bda36b21f --- /dev/null +++ b/tests/visual/newhorizons/NewHorizonsModel.ostest @@ -0,0 +1,10 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "navigationstate", + "value": "{Anchor='NewHorizons',Pitch=0.444246E-1,Position={3.319494E1,-1.500620E0,-8.950034E0},Up={0.469986E-1,0.998872E0,0.683673E-2},Yaw=0.146484E0}"}, + { "type": "wait", + "value": "5"}, + { "type": "screenshot", + "value": "NewHorizionsModel"} +] diff --git a/tests/visual/newhorizons/NewHorizonsPlutoProjection.ostest b/tests/visual/newhorizons/NewHorizonsPlutoProjection.ostest new file mode 100644 index 0000000000..2797d47c17 --- /dev/null +++ b/tests/visual/newhorizons/NewHorizonsPlutoProjection.ostest @@ -0,0 +1,22 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2015-07-14T08:14:30.00"}, + { "type": "script", + "value": "openspace.setPropertyValueSingle('Scene.PlutoProjection.Renderable.ColorTexturePaths', 1.000000)"}, + { "type": "navigationstate", + "value": "{Anchor='Pluto',Pitch=-0.566951E-1,Position={-2.300324E6,2.259246E6,3.521214E6},Up={0.862771E0,0.403378E0,0.304816E0},Yaw=-0.119485E0}"}, + { "type": "script", + "value": "openspace.time.interpolateDeltaTime(10)"}, + { "type": "pause", + "value": "false"}, + { "type": "wait", + "value": "120"}, + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2015-07-14T08:31:00.00"}, + { "type": "screenshot", + "value": ""} +] \ No newline at end of file diff --git a/tests/visual/newhorizons/RecordingNewHorizionsModel.osrecording b/tests/visual/newhorizons/RecordingNewHorizionsModel.osrecording new file mode 100644 index 0000000000..2fb1c85013 Binary files /dev/null and b/tests/visual/newhorizons/RecordingNewHorizionsModel.osrecording differ diff --git a/tests/visual/osirisrex/osirisrexmodel.ostest b/tests/visual/osirisrex/osirisrexmodel.ostest new file mode 100644 index 0000000000..76ed110161 --- /dev/null +++ b/tests/visual/osirisrex/osirisrexmodel.ostest @@ -0,0 +1,16 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2018-10-30T23:00:00.00"}, + { "type": "navigationstate", + "value": "{Anchor='OsirisRex',Pitch=-0.274542E-5,Position={-3.894924E0,-9.051193E0,5.720444E0},ReferenceFrame='Root',Up={-0.911098E0,0.149229E0,-0.384228E0},Yaw=0.270290E-4}"}, + { "type": "keys", + "value": "h"}, + { "type": "script", + "value": "openspace.setPropertyValueSingle('Scene.OsirisRexTrailBennu.Renderable.Enabled', false)"}, + { "type": "wait", + "value": "2"}, + { "type": "screenshot", + "value": ""} +] \ No newline at end of file diff --git a/tests/visual/osirisrex/osirisrexprojection.ostest b/tests/visual/osirisrex/osirisrexprojection.ostest new file mode 100644 index 0000000000..3357a7d3fd --- /dev/null +++ b/tests/visual/osirisrex/osirisrexprojection.ostest @@ -0,0 +1,26 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2019-01-13T19:18:20.00"}, + { "type": "navigationstate", + "value": "{Anchor='BennuBarycenter',Pitch=-0.249726E-1,Position={6.343195E2,-7.381825E1,-2.105395E2},ReferenceFrame='Root',Up={0.260217E0,-0.340701E0,0.903444E0},Yaw=0.593456E-1}"}, + { "type": "keys", + "value": "h"}, + { "type": "script", + "value": "openspace.setPropertyValueSingle('Scene.POLYCAM FOV.Renderable.Enabled', false)"}, + { "type": "script", + "value": "openspace.setPropertyValueSingle('Scene.OsirisRexTrailBennu.Renderable.Enabled', false)"}, + { "type": "pause", + "value": "false"}, + { "type": "wait", + "value": "80"}, + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2019-01-13T19:25:00.00"}, + { "type": "wait", + "value": "2"}, + { "type": "screenshot", + "value": ""} +] \ No newline at end of file diff --git a/tests/visual/rosetta/rosettamodel.ostest b/tests/visual/rosetta/rosettamodel.ostest new file mode 100644 index 0000000000..67614f5318 --- /dev/null +++ b/tests/visual/rosetta/rosettamodel.ostest @@ -0,0 +1,16 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2014-08-01T00:00:00.00"}, + { "type": "navigationstate", + "value": "{Anchor='Rosetta',Pitch=-0.741904E-1,Position={-1.384875E1,-5.509888E0,1.692047E0},ReferenceFrame='Root',Up={0.377490E0,-0.812217E0,0.444752E0},Yaw=-0.388182E-1}"}, + { "type": "keys", + "value": "h"}, + { "type": "script", + "value": "openspace.setPropertyValueSingle('Scene.NAVCAM_FOV.Renderable.Enabled', false)"}, + { "type": "wait", + "value": "2"}, + { "type": "screenshot", + "value": ""} +] \ No newline at end of file diff --git a/tests/visual/rosetta/rosettaprojection.ostest b/tests/visual/rosetta/rosettaprojection.ostest new file mode 100644 index 0000000000..28552a6439 --- /dev/null +++ b/tests/visual/rosetta/rosettaprojection.ostest @@ -0,0 +1,22 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2014-08-06T23:07:00.00"}, + { "type": "navigationstate", + "value": "{Anchor='67P',Pitch=-0.608276E-2,Position={1.035920E3,1.090395E4,6.708170E3},Up={-0.972426E0,0.182052E0,-0.145753E0},Yaw=0.475854E-2}"}, + { "type": "keys", + "value": "h"}, + { "type": "script", + "value": "openspace.setPropertyValueSingle('Scene.NAVCAM_FOV.Renderable.Enabled', false)"}, + { "type": "pause", + "value": "false"}, + { "type": "wait", + "value": "30"}, + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2014-08-06T23:07:30.00"}, + { "type": "screenshot", + "value": ""} +] \ No newline at end of file diff --git a/tests/visual/voyager/voyager1model.ostest b/tests/visual/voyager/voyager1model.ostest new file mode 100644 index 0000000000..98bbbfb594 --- /dev/null +++ b/tests/visual/voyager/voyager1model.ostest @@ -0,0 +1,16 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "1977-09-10T12:00:00.00"}, + { "type": "navigationstate", + "value": "{Anchor='Voyager_1',Pitch=0.289491E-1,Position={9.291557E0,3.604126E0,0.823166E0},ReferenceFrame='Root',Up={0.130390E0,-0.527836E0,0.839278E0},Yaw=-0.997966E-2}"}, + { "type": "keys", + "value": "h"}, + { "type": "script", + "value": "openspace.setPropertyValue('Scene.Voyager_*_Trail_*.Enabled',false);"}, + { "type": "wait", + "value": "2"}, + { "type": "screenshot", + "value": ""} +] diff --git a/tests/visual/voyager/voyagers2020.ostest b/tests/visual/voyager/voyagers2020.ostest new file mode 100644 index 0000000000..609a178fa0 --- /dev/null +++ b/tests/visual/voyager/voyagers2020.ostest @@ -0,0 +1,14 @@ +[ + { "type": "pause", + "value": "true"}, + { "type": "time", + "value": "2020-01-01T00:00:00.00"}, + { "type": "navigationstate", + "value": "{Anchor='Sun',Pitch=-0.296905E-2,Position={-5.701493E12,2.431929E13,-4.495678E13},ReferenceFrame='Root',Up={-0.117936E0,0.867082E0,0.484003E0},Yaw=-0.189846E-1}"}, + { "type": "keys", + "value": "h"}, + { "type": "wait", + "value": "2"}, + { "type": "screenshot", + "value": ""} +]