cosmos 3.4.2 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Manifest.txt +69 -11
- data/autohotkey/config/targets/INST/cmd_tlm/inst_tlm.txt +23 -0
- data/autohotkey/tools/TestRunnerAHK5 +17 -0
- data/autohotkey/tools/TestRunnerAHK6 +17 -0
- data/autohotkey/tools/cmd_extractor.ahk +6 -0
- data/autohotkey/tools/data_viewer.ahk +6 -0
- data/autohotkey/tools/limits_monitor.ahk +67 -14
- data/autohotkey/tools/replay.ahk +6 -0
- data/autohotkey/tools/test_runner5.ahk +8 -0
- data/autohotkey/tools/test_runner6.ahk +5 -0
- data/autohotkey/tools/tlm_extractor.ahk +25 -1
- data/autohotkey/tools/tlm_grapher.ahk +6 -0
- data/cosmos.gemspec +19 -19
- data/data/crc.txt +46 -46
- data/data/critical.wav +0 -0
- data/data/information.wav +0 -0
- data/data/input.wav +0 -0
- data/data/message.wav +0 -0
- data/data/question.wav +0 -0
- data/data/warning.wav +0 -0
- data/demo/Gemfile +5 -1
- data/demo/Launcher +5 -4
- data/demo/Launcher.bat +6 -56
- data/demo/config/data/crc.txt +73 -55
- data/demo/config/system/system.txt +1 -0
- data/demo/config/targets/EXAMPLE/cmd_tlm/example_tlm.txt +2 -0
- data/demo/procedures/example_test.rb +17 -16
- data/demo/tools/CmdExtractor +6 -5
- data/demo/tools/CmdExtractor.bat +6 -56
- data/demo/tools/CmdSender +6 -5
- data/demo/tools/CmdSender.bat +6 -56
- data/demo/tools/CmdTlmServer +6 -5
- data/demo/tools/CmdTlmServer.bat +6 -56
- data/demo/tools/DataViewer +6 -5
- data/demo/tools/DataViewer.bat +6 -56
- data/demo/tools/ExampleTarget +6 -5
- data/demo/tools/ExampleTarget.bat +6 -56
- data/demo/tools/HandbookCreator +6 -5
- data/demo/tools/HandbookCreator.bat +6 -58
- data/demo/tools/Launcher +6 -5
- data/demo/tools/Launcher.bat +6 -56
- data/demo/tools/LimitsMonitor +6 -5
- data/demo/tools/LimitsMonitor.bat +6 -56
- data/demo/tools/OpenGLBuilder +6 -5
- data/demo/tools/OpenGLBuilder.bat +6 -56
- data/demo/tools/PacketViewer +6 -5
- data/demo/tools/PacketViewer.bat +6 -56
- data/demo/tools/Replay +6 -5
- data/demo/tools/Replay.bat +6 -56
- data/demo/tools/ScpiTarget +6 -5
- data/demo/tools/ScpiTarget.bat +6 -56
- data/demo/tools/ScriptRunner +6 -5
- data/demo/tools/ScriptRunner.bat +6 -56
- data/demo/tools/TableManager +6 -5
- data/demo/tools/TableManager.bat +6 -56
- data/demo/tools/TestRunner +6 -5
- data/demo/tools/TestRunner.bat +6 -56
- data/demo/tools/TlmExtractor +6 -5
- data/demo/tools/TlmExtractor.bat +6 -56
- data/demo/tools/TlmGrapher +6 -5
- data/demo/tools/TlmGrapher.bat +6 -56
- data/demo/tools/TlmViewer +6 -5
- data/demo/tools/TlmViewer.bat +6 -56
- data/demo/tools/ToolLaunch.bat +63 -0
- data/demo/tools/mac/CmdExtractor.app/Contents/MacOS/CmdExtractor.rb +6 -5
- data/demo/tools/mac/CmdExtractor.app/Contents/MacOS/tool_launch.rb +38 -0
- data/demo/tools/mac/CmdSender.app/Contents/MacOS/CmdSender.rb +6 -5
- data/demo/tools/mac/CmdSender.app/Contents/MacOS/tool_launch.rb +38 -0
- data/demo/tools/mac/CmdTlmServer.app/Contents/MacOS/CmdTlmServer.rb +6 -5
- data/demo/tools/mac/CmdTlmServer.app/Contents/MacOS/tool_launch.rb +38 -0
- data/demo/tools/mac/DataViewer.app/Contents/MacOS/DataViewer.rb +6 -5
- data/demo/tools/mac/DataViewer.app/Contents/MacOS/tool_launch.rb +38 -0
- data/demo/tools/mac/HandbookCreator.app/Contents/MacOS/HandbookCreator.rb +6 -5
- data/demo/tools/mac/HandbookCreator.app/Contents/MacOS/tool_launch.rb +38 -0
- data/demo/tools/mac/Launcher.app/Contents/MacOS/Launcher.rb +6 -5
- data/demo/tools/mac/Launcher.app/Contents/MacOS/tool_launch.rb +38 -0
- data/demo/tools/mac/LimitsMonitor.app/Contents/MacOS/LimitsMonitor.rb +6 -5
- data/demo/tools/mac/LimitsMonitor.app/Contents/MacOS/tool_launch.rb +38 -0
- data/demo/tools/mac/OpenGLBuilder.app/Contents/MacOS/OpenGLBuilder.rb +6 -5
- data/demo/tools/mac/OpenGLBuilder.app/Contents/MacOS/tool_launch.rb +38 -0
- data/demo/tools/mac/PacketViewer.app/Contents/MacOS/PacketViewer.rb +6 -5
- data/demo/tools/mac/PacketViewer.app/Contents/MacOS/tool_launch.rb +38 -0
- data/demo/tools/mac/Replay.app/Contents/MacOS/Replay.rb +6 -5
- data/demo/tools/mac/Replay.app/Contents/MacOS/tool_launch.rb +38 -0
- data/demo/tools/mac/ScriptRunner.app/Contents/MacOS/ScriptRunner.rb +6 -5
- data/demo/tools/mac/ScriptRunner.app/Contents/MacOS/tool_launch.rb +38 -0
- data/demo/tools/mac/TableManager.app/Contents/MacOS/TableManager.rb +6 -5
- data/demo/tools/mac/TableManager.app/Contents/MacOS/tool_launch.rb +38 -0
- data/demo/tools/mac/TestRunner.app/Contents/MacOS/TestRunner.rb +6 -5
- data/demo/tools/mac/TestRunner.app/Contents/MacOS/tool_launch.rb +38 -0
- data/demo/tools/mac/TlmExtractor.app/Contents/MacOS/TlmExtractor.rb +6 -5
- data/demo/tools/mac/TlmExtractor.app/Contents/MacOS/tool_launch.rb +38 -0
- data/demo/tools/mac/TlmGrapher.app/Contents/MacOS/TlmGrapher.rb +6 -5
- data/demo/tools/mac/TlmGrapher.app/Contents/MacOS/tool_launch.rb +38 -0
- data/demo/tools/mac/TlmViewer.app/Contents/MacOS/TlmViewer.rb +6 -5
- data/demo/tools/mac/TlmViewer.app/Contents/MacOS/tool_launch.rb +38 -0
- data/demo/tools/tool_launch.rb +38 -0
- data/install/Gemfile +5 -1
- data/install/Launcher +5 -3
- data/install/Launcher.bat +6 -56
- data/install/config/data/crc.txt +67 -49
- data/install/config/tools/launcher/launcher.txt +1 -0
- data/install/tools/CmdExtractor +6 -5
- data/install/tools/CmdExtractor.bat +6 -56
- data/install/tools/CmdSender +6 -5
- data/install/tools/CmdSender.bat +6 -56
- data/install/tools/CmdTlmServer +6 -5
- data/install/tools/CmdTlmServer.bat +6 -56
- data/install/tools/DataViewer +6 -5
- data/install/tools/DataViewer.bat +6 -56
- data/install/tools/HandbookCreator +6 -5
- data/install/tools/HandbookCreator.bat +6 -58
- data/install/tools/Launcher +6 -5
- data/install/tools/Launcher.bat +6 -56
- data/install/tools/LimitsMonitor +6 -5
- data/install/tools/LimitsMonitor.bat +6 -56
- data/install/tools/OpenGLBuilder +6 -5
- data/install/tools/OpenGLBuilder.bat +6 -56
- data/install/tools/PacketViewer +6 -5
- data/install/tools/PacketViewer.bat +6 -56
- data/install/tools/Replay +6 -5
- data/install/tools/Replay.bat +6 -56
- data/install/tools/ScriptRunner +6 -5
- data/install/tools/ScriptRunner.bat +6 -56
- data/install/tools/TableManager +6 -5
- data/install/tools/TableManager.bat +6 -56
- data/install/tools/TestRunner +6 -5
- data/install/tools/TestRunner.bat +6 -56
- data/install/tools/TlmExtractor +6 -5
- data/install/tools/TlmExtractor.bat +6 -56
- data/install/tools/TlmGrapher +6 -5
- data/install/tools/TlmGrapher.bat +6 -56
- data/install/tools/TlmViewer +6 -5
- data/install/tools/TlmViewer.bat +6 -56
- data/install/tools/ToolLaunch.bat +63 -0
- data/install/tools/mac/CmdExtractor.app/Contents/MacOS/CmdExtractor.rb +6 -5
- data/install/tools/mac/CmdExtractor.app/Contents/MacOS/tool_launch.rb +38 -0
- data/install/tools/mac/CmdSender.app/Contents/MacOS/CmdSender.rb +6 -5
- data/install/tools/mac/CmdSender.app/Contents/MacOS/tool_launch.rb +38 -0
- data/install/tools/mac/CmdTlmServer.app/Contents/MacOS/CmdTlmServer.rb +6 -5
- data/install/tools/mac/CmdTlmServer.app/Contents/MacOS/tool_launch.rb +38 -0
- data/install/tools/mac/DataViewer.app/Contents/MacOS/DataViewer.rb +6 -5
- data/install/tools/mac/DataViewer.app/Contents/MacOS/tool_launch.rb +38 -0
- data/install/tools/mac/HandbookCreator.app/Contents/MacOS/HandbookCreator.rb +6 -5
- data/install/tools/mac/HandbookCreator.app/Contents/MacOS/tool_launch.rb +38 -0
- data/install/tools/mac/Launcher.app/Contents/MacOS/Launcher.rb +6 -5
- data/install/tools/mac/Launcher.app/Contents/MacOS/tool_launch.rb +38 -0
- data/install/tools/mac/LimitsMonitor.app/Contents/MacOS/LimitsMonitor.rb +6 -5
- data/install/tools/mac/LimitsMonitor.app/Contents/MacOS/tool_launch.rb +38 -0
- data/install/tools/mac/OpenGLBuilder.app/Contents/MacOS/OpenGLBuilder.rb +6 -5
- data/install/tools/mac/OpenGLBuilder.app/Contents/MacOS/tool_launch.rb +38 -0
- data/install/tools/mac/PacketViewer.app/Contents/MacOS/PacketViewer.rb +6 -5
- data/install/tools/mac/PacketViewer.app/Contents/MacOS/tool_launch.rb +38 -0
- data/install/tools/mac/Replay.app/Contents/MacOS/Replay.rb +6 -5
- data/install/tools/mac/Replay.app/Contents/MacOS/tool_launch.rb +38 -0
- data/install/tools/mac/ScriptRunner.app/Contents/MacOS/ScriptRunner.rb +6 -5
- data/install/tools/mac/ScriptRunner.app/Contents/MacOS/tool_launch.rb +38 -0
- data/install/tools/mac/TableManager.app/Contents/MacOS/TableManager.rb +6 -5
- data/install/tools/mac/TableManager.app/Contents/MacOS/tool_launch.rb +38 -0
- data/install/tools/mac/TestRunner.app/Contents/MacOS/TestRunner.rb +6 -5
- data/install/tools/mac/TestRunner.app/Contents/MacOS/tool_launch.rb +38 -0
- data/install/tools/mac/TlmExtractor.app/Contents/MacOS/TlmExtractor.rb +6 -5
- data/install/tools/mac/TlmExtractor.app/Contents/MacOS/tool_launch.rb +38 -0
- data/install/tools/mac/TlmGrapher.app/Contents/MacOS/TlmGrapher.rb +6 -5
- data/install/tools/mac/TlmGrapher.app/Contents/MacOS/tool_launch.rb +38 -0
- data/install/tools/mac/TlmViewer.app/Contents/MacOS/TlmViewer.rb +6 -5
- data/install/tools/mac/TlmViewer.app/Contents/MacOS/tool_launch.rb +38 -0
- data/install/tools/tool_launch.rb +38 -0
- data/lib/cosmos/core_ext/string.rb +3 -2
- data/lib/cosmos/gui/dialogs/about_dialog.rb +3 -7
- data/lib/cosmos/gui/dialogs/find_replace_dialog.rb +200 -136
- data/lib/cosmos/gui/opengl/gl_viewer.rb +8 -8
- data/lib/cosmos/gui/qt.rb +56 -27
- data/lib/cosmos/gui/qt_tool.rb +3 -1
- data/lib/cosmos/gui/text/ruby_editor.rb +130 -110
- data/lib/cosmos/gui/utilities/script_module_gui.rb +150 -4
- data/lib/cosmos/io/json_drb.rb +1 -1
- data/lib/cosmos/io/win32_serial_driver.rb +2 -4
- data/lib/cosmos/packet_logs/ccsds_log_reader.rb +1 -0
- data/lib/cosmos/packet_logs/packet_log_reader.rb +13 -4
- data/lib/cosmos/packets/limits.rb +6 -3
- data/lib/cosmos/packets/telemetry.rb +34 -3
- data/lib/cosmos/processors/new_packet_log_processor.rb +1 -1
- data/lib/cosmos/script/commands.rb +20 -2
- data/lib/cosmos/script/extract.rb +11 -3
- data/lib/cosmos/script/limits.rb +6 -0
- data/lib/cosmos/script/scripting.rb +17 -9
- data/lib/cosmos/system/system.rb +73 -17
- data/lib/cosmos/system/target.rb +10 -5
- data/lib/cosmos/tools/cmd_extractor/cmd_extractor.rb +1 -0
- data/lib/cosmos/tools/cmd_tlm_server/api.rb +95 -0
- data/lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server.rb +8 -4
- data/lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_gui.rb +55 -0
- data/lib/cosmos/tools/data_viewer/data_viewer.rb +5 -12
- data/lib/cosmos/tools/data_viewer/data_viewer_component.rb +14 -48
- data/lib/cosmos/tools/handbook_creator/handbook_creator_config.rb +1 -5
- data/lib/cosmos/tools/launcher/launcher.rb +4 -0
- data/lib/cosmos/tools/launcher/launcher_config.rb +50 -0
- data/lib/cosmos/tools/launcher/launcher_tool.rb +21 -9
- data/lib/cosmos/tools/limits_monitor/limits_monitor.rb +607 -566
- data/lib/cosmos/tools/replay/replay.rb +51 -45
- data/lib/cosmos/tools/script_runner/script_runner.rb +13 -5
- data/lib/cosmos/tools/script_runner/script_runner_frame.rb +8 -109
- data/lib/cosmos/tools/test_runner/test.rb +65 -6
- data/lib/cosmos/tools/test_runner/test_runner.rb +4 -4
- data/lib/cosmos/tools/tlm_extractor/tlm_extractor.rb +5 -0
- data/lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_logfile_thread.rb +3 -0
- data/lib/cosmos/tools/tlm_viewer/tlm_viewer.rb +3 -2
- data/lib/cosmos/tools/tlm_viewer/tlm_viewer_config.rb +9 -6
- data/lib/cosmos/tools/tlm_viewer/widgets/array_widget.rb +1 -5
- data/lib/cosmos/tools/tlm_viewer/widgets/block_widget.rb +1 -5
- data/lib/cosmos/top_level.rb +86 -3
- data/lib/cosmos/version.rb +5 -5
- data/lib/cosmos/win32/win32_main.rb +7 -1
- data/spec/packet_logs/packet_log_reader_spec.rb +67 -7
- data/spec/packets/limits_spec.rb +19 -1
- data/spec/packets/telemetry_spec.rb +44 -1
- data/spec/script/commands_spec.rb +14 -0
- data/spec/script/scripting_spec.rb +5 -1
- data/spec/script/telemetry_spec.rb +38 -3
- data/spec/system/system_spec.rb +24 -4
- data/spec/tools/cmd_tlm_server/api_spec.rb +30 -0
- data/test/benchmarks/gsub_benchmark.rb +42 -4
- data/test/benchmarks/is_a_benchmark.rb +34 -0
- data/test/performance/config/data/crc.txt +161 -171
- data/test/performance/config/system/system_packets.txt +10 -10
- data/test/performance/config/system/system_threads.txt +30 -30
- data/test/performance/config/targets/COSMOS/cmd_tlm/cosmos_server_cmds.txt +7 -2
- data/test/performance/config/targets/PACKET/cmd_tlm/packet_cmds.txt +20 -0
- data/test/performance/config/targets/PACKET/cmd_tlm/packet_tlm.txt +98 -0
- data/test/performance/config/targets/{EXAMPLE → PACKET}/cmd_tlm_server.txt +2 -2
- data/test/performance/config/targets/PACKET/lib/packet_interface.rb +22 -0
- data/test/performance/config/targets/PACKET/lib/packet_limits_response.rb +24 -0
- data/test/performance/config/targets/PACKET/screens/status.txt +25 -0
- data/test/performance/config/targets/PACKET/target.txt +28 -0
- data/test/performance/config/targets/{EXAMPLE/cmd_tlm/example_cmds.txt → THREAD/cmd_tlm/thread_cmds.txt} +1 -1
- data/test/performance/config/targets/{EXAMPLE/cmd_tlm/example_tlm.txt → THREAD/cmd_tlm/thread_tlm.txt} +1 -1
- data/test/performance/config/targets/THREAD/cmd_tlm_server.txt +6 -0
- data/test/performance/config/targets/{EXAMPLE/lib/example_interface.rb → THREAD/lib/thread_interface.rb} +1 -1
- data/test/performance/config/targets/THREAD/screens/status.txt +25 -0
- data/test/performance/config/targets/{EXAMPLE → THREAD}/target.txt +0 -0
- data/test/performance/config/tools/cmd_tlm_server/cmd_tlm_server_packets.txt +24 -30
- data/test/performance/config/tools/cmd_tlm_server/cmd_tlm_server_threads.txt +31 -31
- data/test/performance/config/tools/launcher/launcher_packets.txt +16 -11
- data/test/performance/config/tools/launcher/launcher_threads.txt +41 -35
- data/test/performance/config/tools/tlm_grapher/tlm_grapher.txt +204 -0
- data/test/performance/config/tools/tlm_viewer/tlm_viewer.txt +10 -38
- data/test/performance/lib/packet_target.rb +126 -0
- data/test/performance/lib/{example_target.rb → thread_target.rb} +9 -9
- data/test/performance/tools/CmdTlmServerMemProf +1 -1
- data/test/performance/tools/{ExampleTarget → PacketTarget} +2 -2
- data/test/performance/tools/{ExampleTarget.bat → PacketTarget.bat} +0 -0
- data/test/performance/tools/ThreadTarget +14 -0
- data/test/performance/tools/ThreadTarget.bat +59 -0
- data/test/performance/tools/TlmGrapherMemProf +1 -1
- data/test/performance/tools/TlmViewerMemProf +19 -0
- data/{autohotkey/tools/Replay.bat → test/performance/tools/TlmViewerMemProf.bat} +1 -1
- metadata +107 -55
- data/test/performance/lib/example_background_task.rb +0 -57
- data/test/performance/lib/scpi_target.rb +0 -74
data/demo/config/data/crc.txt
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
"config/data/position.bin" 0x6EB90F11
|
20
20
|
"config/data/hselecton.gif" 0xA824E4FC
|
21
21
|
"config/system/system2.txt" 0xC75EBA65
|
22
|
-
"config/system/system.txt"
|
22
|
+
"config/system/system.txt" 0xFA24EDAA
|
23
23
|
"config/targets/SYSTEM/cmd_tlm/override.txt" 0x8FE016FF
|
24
24
|
"config/targets/SYSTEM/cmd_tlm/limits_groups.txt" 0x16AF4BA3
|
25
25
|
"config/targets/SYSTEM/screens/status.txt" 0x89B616E5
|
@@ -43,7 +43,7 @@
|
|
43
43
|
"config/targets/META/cmd_tlm/meta_cmd.txt" 0x674D6D66
|
44
44
|
"config/targets/META/cmd_tlm/meta_tlm.txt" 0x5FC12229
|
45
45
|
"config/targets/EXAMPLE/cmd_tlm/example_cmds.txt" 0xB1A6D401
|
46
|
-
"config/targets/EXAMPLE/cmd_tlm/example_tlm.txt"
|
46
|
+
"config/targets/EXAMPLE/cmd_tlm/example_tlm.txt" 0x65BF425A
|
47
47
|
"config/targets/EXAMPLE/cmd_tlm_server.txt" 0x6139204A
|
48
48
|
"config/targets/EXAMPLE/target.txt" 0x4ED5B5BC
|
49
49
|
"config/targets/EXAMPLE/lib/example_interface.rb" 0x126C4586
|
@@ -94,112 +94,130 @@
|
|
94
94
|
"config/tools/handbook_creator/templates/pdf_footer.html.erb" 0xF0D3EB77
|
95
95
|
"config/tools/handbook_creator/templates/overview.html.erb" 0xDC4DD2B8
|
96
96
|
"config/tools/tlm_viewer/tlm_viewer.txt" 0x825AF31C
|
97
|
-
"tools/TlmGrapher"
|
98
|
-
"tools/TestRunner.bat"
|
99
|
-
"tools/ExampleTarget.bat"
|
100
|
-
"tools/PacketViewer.bat"
|
101
|
-
"tools/TlmViewer.bat"
|
102
|
-
"tools/TlmExtractor"
|
103
|
-
"tools/
|
104
|
-
"tools/
|
105
|
-
"tools/
|
106
|
-
"tools/
|
107
|
-
"tools/
|
108
|
-
"tools/
|
109
|
-
"tools/
|
110
|
-
"tools/
|
111
|
-
"tools/
|
112
|
-
"tools/
|
113
|
-
"tools/
|
114
|
-
"tools/
|
97
|
+
"tools/TlmGrapher" 0x9464F502
|
98
|
+
"tools/TestRunner.bat" 0x09A34857
|
99
|
+
"tools/ExampleTarget.bat" 0x251F2D88
|
100
|
+
"tools/PacketViewer.bat" 0x09A34857
|
101
|
+
"tools/TlmViewer.bat" 0x09A34857
|
102
|
+
"tools/TlmExtractor" 0x1EC4639A
|
103
|
+
"tools/ToolLaunch.bat" 0x1A936987
|
104
|
+
"tools/CmdTlmServer.bat" 0x09A34857
|
105
|
+
"tools/OpenGLBuilder" 0x585EA691
|
106
|
+
"tools/Replay" 0xAC00D2AD
|
107
|
+
"tools/CmdSender" 0x10346CF4
|
108
|
+
"tools/PacketViewer" 0xF23A40BB
|
109
|
+
"tools/TableManager.bat" 0x09A34857
|
110
|
+
"tools/TlmExtractor.bat" 0x09A34857
|
111
|
+
"tools/HandbookCreator.bat" 0x09A34857
|
112
|
+
"tools/Launcher.bat" 0x09A34857
|
113
|
+
"tools/TestRunner" 0x0B0E0B8B
|
114
|
+
"tools/CmdSender.bat" 0x09A34857
|
115
|
+
"tools/LimitsMonitor.bat" 0x09A34857
|
115
116
|
"tools/mac/CmdExtractor.app/Contents/Resources/appIcon.icns" 0x39862FA7
|
116
|
-
"tools/mac/CmdExtractor.app/Contents/MacOS/CmdExtractor.rb"
|
117
|
+
"tools/mac/CmdExtractor.app/Contents/MacOS/CmdExtractor.rb" 0x96E82AC3
|
117
118
|
"tools/mac/CmdExtractor.app/Contents/MacOS/main.sh" 0x52DD5B34
|
119
|
+
"tools/mac/CmdExtractor.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
|
118
120
|
"tools/mac/CmdExtractor.app/Contents/Info.plist" 0x0E89084D
|
119
121
|
"tools/mac/TestRunner.app/Contents/Resources/appIcon.icns" 0xC8D32D55
|
120
|
-
"tools/mac/TestRunner.app/Contents/MacOS/TestRunner.rb"
|
122
|
+
"tools/mac/TestRunner.app/Contents/MacOS/TestRunner.rb" 0x0B0E0B8B
|
121
123
|
"tools/mac/TestRunner.app/Contents/MacOS/main.sh" 0xD486D22B
|
124
|
+
"tools/mac/TestRunner.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
|
122
125
|
"tools/mac/TestRunner.app/Contents/Info.plist" 0x482B3BA5
|
123
126
|
"tools/mac/TlmGrapher.app/Contents/Resources/appIcon.icns" 0xCA324F50
|
124
127
|
"tools/mac/TlmGrapher.app/Contents/MacOS/main.sh" 0x427E2ECF
|
125
|
-
"tools/mac/TlmGrapher.app/Contents/MacOS/TlmGrapher.rb"
|
128
|
+
"tools/mac/TlmGrapher.app/Contents/MacOS/TlmGrapher.rb" 0x9464F502
|
129
|
+
"tools/mac/TlmGrapher.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
|
126
130
|
"tools/mac/TlmGrapher.app/Contents/Info.plist" 0x3623B978
|
127
131
|
"tools/mac/Launcher.app/Contents/Resources/appIcon.icns" 0x8857CD2B
|
128
|
-
"tools/mac/Launcher.app/Contents/MacOS/Launcher.rb"
|
132
|
+
"tools/mac/Launcher.app/Contents/MacOS/Launcher.rb" 0xFD4E356C
|
129
133
|
"tools/mac/Launcher.app/Contents/MacOS/main.sh" 0xB47BE66F
|
134
|
+
"tools/mac/Launcher.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
|
130
135
|
"tools/mac/Launcher.app/Contents/Info.plist" 0x32A1EF14
|
131
136
|
"tools/mac/OpenGLBuilder.app/Contents/Resources/appIcon.icns" 0x8DDBD837
|
132
|
-
"tools/mac/OpenGLBuilder.app/Contents/MacOS/OpenGLBuilder.rb"
|
137
|
+
"tools/mac/OpenGLBuilder.app/Contents/MacOS/OpenGLBuilder.rb" 0x585EA691
|
133
138
|
"tools/mac/OpenGLBuilder.app/Contents/MacOS/main.sh" 0x5EF4D8E2
|
139
|
+
"tools/mac/OpenGLBuilder.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
|
134
140
|
"tools/mac/OpenGLBuilder.app/Contents/Info.plist" 0x3C2E542D
|
135
141
|
"tools/mac/HandbookCreator.app/Contents/Resources/appIcon.icns" 0xCEA7C465
|
136
142
|
"tools/mac/HandbookCreator.app/Contents/MacOS/main.sh" 0xD6BC144D
|
137
|
-
"tools/mac/HandbookCreator.app/Contents/MacOS/HandbookCreator.rb"
|
143
|
+
"tools/mac/HandbookCreator.app/Contents/MacOS/HandbookCreator.rb" 0xD927814C
|
144
|
+
"tools/mac/HandbookCreator.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
|
138
145
|
"tools/mac/HandbookCreator.app/Contents/Info.plist" 0x7591A548
|
139
146
|
"tools/mac/TableManager.app/Contents/Resources/appIcon.icns" 0xEBF5074E
|
140
147
|
"tools/mac/TableManager.app/Contents/MacOS/main.sh" 0x98E69D10
|
141
|
-
"tools/mac/TableManager.app/Contents/MacOS/TableManager.rb"
|
148
|
+
"tools/mac/TableManager.app/Contents/MacOS/TableManager.rb" 0x71F21C88
|
149
|
+
"tools/mac/TableManager.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
|
142
150
|
"tools/mac/TableManager.app/Contents/Info.plist" 0xF6A5877F
|
143
151
|
"tools/mac/TlmViewer.app/Contents/Resources/appIcon.icns" 0x1CBA8EB3
|
144
|
-
"tools/mac/TlmViewer.app/Contents/MacOS/TlmViewer.rb"
|
152
|
+
"tools/mac/TlmViewer.app/Contents/MacOS/TlmViewer.rb" 0xFE723189
|
145
153
|
"tools/mac/TlmViewer.app/Contents/MacOS/main.sh" 0x99FD781B
|
154
|
+
"tools/mac/TlmViewer.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
|
146
155
|
"tools/mac/TlmViewer.app/Contents/Info.plist" 0x821041E0
|
147
156
|
"tools/mac/LimitsMonitor.app/Contents/Resources/appIcon.icns" 0xC98BF799
|
148
157
|
"tools/mac/LimitsMonitor.app/Contents/MacOS/main.sh" 0xCC934478
|
149
|
-
"tools/mac/LimitsMonitor.app/Contents/MacOS/
|
158
|
+
"tools/mac/LimitsMonitor.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
|
159
|
+
"tools/mac/LimitsMonitor.app/Contents/MacOS/LimitsMonitor.rb" 0x04FD96D8
|
150
160
|
"tools/mac/LimitsMonitor.app/Contents/Info.plist" 0xAF650287
|
151
161
|
"tools/mac/TlmExtractor.app/Contents/Resources/appIcon.icns" 0x0AC88876
|
152
|
-
"tools/mac/TlmExtractor.app/Contents/MacOS/TlmExtractor.rb"
|
162
|
+
"tools/mac/TlmExtractor.app/Contents/MacOS/TlmExtractor.rb" 0x1EC4639A
|
153
163
|
"tools/mac/TlmExtractor.app/Contents/MacOS/main.sh" 0x4210EF0D
|
164
|
+
"tools/mac/TlmExtractor.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
|
154
165
|
"tools/mac/TlmExtractor.app/Contents/Info.plist" 0x343784F4
|
155
166
|
"tools/mac/DataViewer.app/Contents/Resources/appIcon.icns" 0x3EC9B207
|
156
|
-
"tools/mac/DataViewer.app/Contents/MacOS/DataViewer.rb"
|
167
|
+
"tools/mac/DataViewer.app/Contents/MacOS/DataViewer.rb" 0x9D20734C
|
157
168
|
"tools/mac/DataViewer.app/Contents/MacOS/main.sh" 0xC7AC5AC6
|
169
|
+
"tools/mac/DataViewer.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
|
158
170
|
"tools/mac/DataViewer.app/Contents/Info.plist" 0xB79CA16B
|
159
171
|
"tools/mac/CmdTlmServer.app/Contents/Resources/appIcon.icns" 0x972CDCC6
|
160
|
-
"tools/mac/CmdTlmServer.app/Contents/MacOS/CmdTlmServer.rb"
|
172
|
+
"tools/mac/CmdTlmServer.app/Contents/MacOS/CmdTlmServer.rb" 0x4C7A4FCB
|
161
173
|
"tools/mac/CmdTlmServer.app/Contents/MacOS/main.sh" 0xB8D1BE6E
|
174
|
+
"tools/mac/CmdTlmServer.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
|
162
175
|
"tools/mac/CmdTlmServer.app/Contents/Info.plist" 0x97E53674
|
163
176
|
"tools/mac/CmdSender.app/Contents/Resources/appIcon.icns" 0xEC403A52
|
164
|
-
"tools/mac/CmdSender.app/Contents/MacOS/CmdSender.rb"
|
177
|
+
"tools/mac/CmdSender.app/Contents/MacOS/CmdSender.rb" 0x10346CF4
|
165
178
|
"tools/mac/CmdSender.app/Contents/MacOS/main.sh" 0x995D6C7D
|
179
|
+
"tools/mac/CmdSender.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
|
166
180
|
"tools/mac/CmdSender.app/Contents/Info.plist" 0x87039019
|
167
181
|
"tools/mac/ScriptRunner.app/Contents/Resources/appIcon.icns" 0x9246743E
|
168
182
|
"tools/mac/ScriptRunner.app/Contents/MacOS/main.sh" 0xE3274772
|
169
|
-
"tools/mac/ScriptRunner.app/Contents/MacOS/
|
183
|
+
"tools/mac/ScriptRunner.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
|
184
|
+
"tools/mac/ScriptRunner.app/Contents/MacOS/ScriptRunner.rb" 0x20F38758
|
170
185
|
"tools/mac/ScriptRunner.app/Contents/Info.plist" 0x1BC8C5E9
|
171
186
|
"tools/mac/Replay.app/Contents/Resources/appIcon.icns" 0x0E6B32E5
|
172
|
-
"tools/mac/Replay.app/Contents/MacOS/Replay.rb"
|
187
|
+
"tools/mac/Replay.app/Contents/MacOS/Replay.rb" 0xAC00D2AD
|
173
188
|
"tools/mac/Replay.app/Contents/MacOS/main.sh" 0x211D29BB
|
189
|
+
"tools/mac/Replay.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
|
174
190
|
"tools/mac/Replay.app/Contents/Info.plist" 0x894AC4CF
|
175
191
|
"tools/mac/PacketViewer.app/Contents/Resources/appIcon.icns" 0xDF373DAE
|
176
192
|
"tools/mac/PacketViewer.app/Contents/MacOS/main.sh" 0x0D28EF08
|
177
|
-
"tools/mac/PacketViewer.app/Contents/MacOS/
|
193
|
+
"tools/mac/PacketViewer.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
|
194
|
+
"tools/mac/PacketViewer.app/Contents/MacOS/PacketViewer.rb" 0xF23A40BB
|
178
195
|
"tools/mac/PacketViewer.app/Contents/Info.plist" 0x6934BF89
|
179
|
-
"tools/LimitsMonitor"
|
180
|
-
"tools/HandbookCreator"
|
181
|
-
"tools/Replay.bat"
|
182
|
-
"tools/Launcher"
|
183
|
-
"tools/CmdExtractor.bat"
|
184
|
-
"tools/OpenGLBuilder.bat"
|
185
|
-
"tools/ScriptRunner.bat"
|
186
|
-
"tools/ScpiTarget"
|
187
|
-
"tools/
|
188
|
-
"tools/
|
189
|
-
"tools/
|
190
|
-
"tools/
|
191
|
-
"tools/
|
192
|
-
"tools/
|
193
|
-
"tools/
|
194
|
-
"tools/
|
195
|
-
"tools/
|
196
|
-
"tools/
|
196
|
+
"tools/LimitsMonitor" 0x04FD96D8
|
197
|
+
"tools/HandbookCreator" 0xD927814C
|
198
|
+
"tools/Replay.bat" 0x09A34857
|
199
|
+
"tools/Launcher" 0xFD4E356C
|
200
|
+
"tools/CmdExtractor.bat" 0x09A34857
|
201
|
+
"tools/OpenGLBuilder.bat" 0x09A34857
|
202
|
+
"tools/ScriptRunner.bat" 0x09A34857
|
203
|
+
"tools/ScpiTarget" 0x48836AD3
|
204
|
+
"tools/tool_launch.rb" 0x0BDB6696
|
205
|
+
"tools/TableManager" 0x71F21C88
|
206
|
+
"tools/TlmViewer" 0xFE723189
|
207
|
+
"tools/CmdExtractor" 0x96E82AC3
|
208
|
+
"tools/DataViewer.bat" 0x09A34857
|
209
|
+
"tools/ExampleTarget" 0xD04B51CD
|
210
|
+
"tools/CmdTlmServer" 0x4C7A4FCB
|
211
|
+
"tools/ScriptRunner" 0x20F38758
|
212
|
+
"tools/DataViewer" 0x9D20734C
|
213
|
+
"tools/TlmGrapher.bat" 0x09A34857
|
214
|
+
"tools/ScpiTarget.bat" 0x251F2D88
|
197
215
|
"procedures/disconnect.rb" 0x5F3A18E5
|
198
216
|
"procedures/plot_test.rb" 0x0C2972E4
|
199
217
|
"procedures/collect_util.rb" 0x3952EB08
|
200
218
|
"procedures/run_example_test.rb" 0x0F244140
|
201
219
|
"procedures/clear_util.rb" 0x5B3C1279
|
202
|
-
"procedures/example_test.rb"
|
220
|
+
"procedures/example_test.rb" 0x7E46BD48
|
203
221
|
"procedures/cosmos_api_test.rb" 0x54B5DC56
|
204
222
|
"procedures/test.rb" 0xCE4DA55A
|
205
223
|
"procedures/checks.rb" 0x34EEF3E2
|
@@ -7,20 +7,20 @@ load 'cosmos/tools/test_runner/test.rb'
|
|
7
7
|
class ExampleTest < Cosmos::Test
|
8
8
|
# Setup the test case by doing stuff
|
9
9
|
def setup
|
10
|
-
puts "Running
|
10
|
+
puts "Running #{Cosmos::Test.current_test_suite}:#{Cosmos::Test.current_test}:#{Cosmos::Test.current_test_case}"
|
11
11
|
wait(2)
|
12
12
|
end
|
13
13
|
|
14
14
|
# test_1 verifies requirement 1
|
15
15
|
def test_case_with_long_name_1
|
16
|
-
puts "Running
|
16
|
+
puts "Running #{Cosmos::Test.current_test_suite}:#{Cosmos::Test.current_test}:#{Cosmos::Test.current_test_case}"
|
17
17
|
Cosmos::Test.puts "This test verifies requirement 1"
|
18
18
|
wait(2)
|
19
19
|
end
|
20
20
|
|
21
21
|
# test_2 verifies requirement 2
|
22
22
|
def test_2
|
23
|
-
puts "Running
|
23
|
+
puts "Running #{Cosmos::Test.current_test_suite}:#{Cosmos::Test.current_test}:#{Cosmos::Test.current_test_case}"
|
24
24
|
Cosmos::Test.puts "This test verifies requirement 2"
|
25
25
|
if $manual
|
26
26
|
answer = ask "Are you sure?"
|
@@ -31,12 +31,13 @@ class ExampleTest < Cosmos::Test
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def test_3xx
|
34
|
+
puts "Running #{Cosmos::Test.current_test_suite}:#{Cosmos::Test.current_test}:#{Cosmos::Test.current_test_case}"
|
34
35
|
wait 1
|
35
36
|
end
|
36
37
|
|
37
38
|
# Teardown the test case by doing other stuff
|
38
39
|
def teardown
|
39
|
-
puts "Running
|
40
|
+
puts "Running #{Cosmos::Test.current_test_suite}:#{Cosmos::Test.current_test}:#{Cosmos::Test.current_test_case}"
|
40
41
|
wait(2)
|
41
42
|
end
|
42
43
|
|
@@ -56,26 +57,26 @@ end
|
|
56
57
|
# ExampleTest2 runs test_3 and test_4.
|
57
58
|
class ExampleTest2 < Cosmos::Test
|
58
59
|
def setup
|
59
|
-
puts "Running
|
60
|
+
puts "Running #{Cosmos::Test.current_test_suite}:#{Cosmos::Test.current_test}:#{Cosmos::Test.current_test_case}"
|
60
61
|
wait(2)
|
61
62
|
end
|
62
63
|
|
63
64
|
# ExampleTest2::test_2 is different from ExampleTest::test_2
|
64
65
|
def test_2
|
65
|
-
puts "
|
66
|
+
puts "Running #{Cosmos::Test.current_test_suite}:#{Cosmos::Test.current_test}:#{Cosmos::Test.current_test_case}"
|
66
67
|
raise "BAD"
|
67
68
|
puts "continuing past the exception"
|
68
69
|
wait 2
|
69
70
|
end
|
70
71
|
|
71
72
|
def test_3
|
72
|
-
puts "Running
|
73
|
+
puts "Running #{Cosmos::Test.current_test_suite}:#{Cosmos::Test.current_test}:#{Cosmos::Test.current_test_case}"
|
73
74
|
raise SkipTestCase, "test_3 unimplemented"
|
74
75
|
wait(2)
|
75
76
|
end
|
76
77
|
|
77
78
|
def test_4
|
78
|
-
puts "Running
|
79
|
+
puts "Running #{Cosmos::Test.current_test_suite}:#{Cosmos::Test.current_test}:#{Cosmos::Test.current_test_case}"
|
79
80
|
if non_existent
|
80
81
|
puts "can't get here"
|
81
82
|
else
|
@@ -85,7 +86,7 @@ class ExampleTest2 < Cosmos::Test
|
|
85
86
|
end
|
86
87
|
|
87
88
|
def teardown
|
88
|
-
puts "Running
|
89
|
+
puts "Running #{Cosmos::Test.current_test_suite}:#{Cosmos::Test.current_test}:#{Cosmos::Test.current_test_case}"
|
89
90
|
wait(2)
|
90
91
|
end
|
91
92
|
end
|
@@ -100,7 +101,7 @@ end
|
|
100
101
|
class ExampleTestSuite3 < Cosmos::TestSuite
|
101
102
|
# This setup applies to the entire test suite
|
102
103
|
def setup
|
103
|
-
puts "Running
|
104
|
+
puts "Running #{Cosmos::Test.current_test_suite}:#{Cosmos::Test.current_test}:#{Cosmos::Test.current_test_case}"
|
104
105
|
wait(2)
|
105
106
|
end
|
106
107
|
|
@@ -118,21 +119,21 @@ class ExampleTestSuite3 < Cosmos::TestSuite
|
|
118
119
|
|
119
120
|
# This teardown applies to the entire test suite
|
120
121
|
def teardown
|
121
|
-
puts "Running
|
122
|
+
puts "Running #{Cosmos::Test.current_test_suite}:#{Cosmos::Test.current_test}:#{Cosmos::Test.current_test_case}"
|
122
123
|
wait(2)
|
123
124
|
end
|
124
125
|
end
|
125
126
|
|
126
127
|
class ExampleTest3 < Cosmos::Test
|
127
128
|
def test_5
|
128
|
-
puts "Running
|
129
|
+
puts "Running #{Cosmos::Test.current_test_suite}:#{Cosmos::Test.current_test}:#{Cosmos::Test.current_test_case}"
|
129
130
|
puts "\000\001\002"
|
130
131
|
check_expression("false == true")
|
131
132
|
wait(2)
|
132
133
|
end
|
133
134
|
|
134
135
|
def test_6
|
135
|
-
puts "Running
|
136
|
+
puts "Running #{Cosmos::Test.current_test_suite}:#{Cosmos::Test.current_test}:#{Cosmos::Test.current_test_case}"
|
136
137
|
wait(2)
|
137
138
|
end
|
138
139
|
end
|
@@ -140,7 +141,7 @@ end
|
|
140
141
|
class ExampleTestSuite4 < Cosmos::TestSuite
|
141
142
|
# This setup applies to the entire test suite
|
142
143
|
def setup
|
143
|
-
puts "Running
|
144
|
+
puts "Running #{Cosmos::Test.current_test_suite}:#{Cosmos::Test.current_test}:#{Cosmos::Test.current_test_case}"
|
144
145
|
wait(2)
|
145
146
|
end
|
146
147
|
|
@@ -154,7 +155,7 @@ class ExampleTestSuite4 < Cosmos::TestSuite
|
|
154
155
|
|
155
156
|
# This teardown applies to the entire test suite
|
156
157
|
def teardown
|
157
|
-
puts "Running
|
158
|
+
puts "Running #{Cosmos::Test.current_test_suite}:#{Cosmos::Test.current_test}:#{Cosmos::Test.current_test_case}"
|
158
159
|
wait(2)
|
159
160
|
end
|
160
161
|
end
|
@@ -167,7 +168,7 @@ class ExampleTestSuite5 < Cosmos::TestSuite
|
|
167
168
|
|
168
169
|
# This teardown applies to the entire test suite
|
169
170
|
def teardown
|
170
|
-
puts "Running
|
171
|
+
puts "Running #{Cosmos::Test.current_test_suite}:#{Cosmos::Test.current_test}:#{Cosmos::Test.current_test_case}"
|
171
172
|
wait(2)
|
172
173
|
end
|
173
174
|
end
|
data/demo/tools/CmdExtractor
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: ascii-8bit
|
3
3
|
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2015 Ball Aerospace & Technologies Corp.
|
5
5
|
# All Rights Reserved.
|
6
6
|
#
|
7
7
|
# This program is free software; you can modify and/or redistribute it
|
@@ -9,7 +9,8 @@
|
|
9
9
|
# as published by the Free Software Foundation; version 3 with
|
10
10
|
# attribution addendums as found in the LICENSE.txt
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
require 'cosmos/tools/cmd_extractor/cmd_extractor'
|
15
|
-
Cosmos::CmdExtractor.run
|
12
|
+
require_relative 'tool_launch'
|
13
|
+
tool_launch do
|
14
|
+
require 'cosmos/tools/cmd_extractor/cmd_extractor'
|
15
|
+
Cosmos::CmdExtractor.run
|
16
|
+
end
|
data/demo/tools/CmdExtractor.bat
CHANGED
@@ -1,59 +1,9 @@
|
|
1
1
|
@ECHO OFF
|
2
2
|
|
3
|
-
|
3
|
+
IF NOT EXIST %~dp0ToolLaunch.bat (
|
4
|
+
echo %~dp0ToolLaunch.bat does not exist
|
5
|
+
pause
|
6
|
+
exit /b
|
7
|
+
)
|
4
8
|
|
5
|
-
|
6
|
-
IF EXIST "%DESTINATION_DIR%Vendor\Ruby" GOTO DIREND
|
7
|
-
IF "%COSMOS_DIR%" == "" GOTO DIREND
|
8
|
-
SET "DESTINATION_DIR=%COSMOS_DIR%\"
|
9
|
-
:DIREND
|
10
|
-
|
11
|
-
IF NOT EXIST "%DESTINATION_DIR%Vendor\Ruby" GOTO SYSTEMRUBY
|
12
|
-
|
13
|
-
REM Save some variables we're going to change so we can restore them later
|
14
|
-
SET "COSMOS_GEM_HOME_SAVED=%GEM_HOME%"
|
15
|
-
SET "COSMOS_GEM_PATH_SAVED=%GEM_PATH%"
|
16
|
-
SET "COSMOS_GEMRC_SAVED=%GEMRC%"
|
17
|
-
SET "COSMOS_PATH_SAVED=%PATH%"
|
18
|
-
SET "COSMOS_RUBYOPT_SAVED=%RUBYOPT%"
|
19
|
-
SET "COSMOS_RUBYLIB_SAVED=%RUBYLIB%"
|
20
|
-
SET "COSMOS_RI_DEVKIT_SAVED=%RI_DEVKIT%"
|
21
|
-
|
22
|
-
REM Set environmental variables
|
23
|
-
|
24
|
-
IF EXIST "%DESTINATION_DIR%Vendor\Ruby\lib\ruby\gems\1.8" SET "GEM_HOME=%DESTINATION_DIR%Vendor\Ruby\lib\ruby\gems\1.8"
|
25
|
-
IF EXIST "%DESTINATION_DIR%Vendor\Ruby\lib\ruby\gems\1.9.1" SET "GEM_HOME=%DESTINATION_DIR%Vendor\Ruby\lib\ruby\gems\1.9.1"
|
26
|
-
IF EXIST "%DESTINATION_DIR%Vendor\Ruby\lib\ruby\gems\2.0.0" SET "GEM_HOME=%DESTINATION_DIR%Vendor\Ruby\lib\ruby\gems\2.0.0"
|
27
|
-
SET "GEM_PATH=%GEM_HOME%"
|
28
|
-
SET "GEMRC=%DESTINATION_DIR%Vendor\Ruby\lib\ruby\gems\etc\gemrc"
|
29
|
-
|
30
|
-
REM Prepend embedded bin to PATH so we prefer those binaries
|
31
|
-
SET "RI_DEVKIT=%DESTINATION_DIR%Vendor\Devkit\"
|
32
|
-
SET "PATH=%DESTINATION_DIR%Vendor\Ruby\bin;%RI_DEVKIT%bin;%RI_DEVKIT%mingw\bin;%DESTINATION_DIR%Vendor\wkhtmltopdf;%PATH%"
|
33
|
-
|
34
|
-
REM Remove RUBYOPT and RUBYLIB, which can cause serious problems.
|
35
|
-
SET RUBYOPT=
|
36
|
-
SET RUBYLIB=
|
37
|
-
|
38
|
-
REM Run tool using Installer Ruby
|
39
|
-
ECHO Starting tool using installer ruby in %DESTINATION_DIR%
|
40
|
-
START "COSMOS" "%DESTINATION_DIR%Vendor\Ruby\bin\%RUBYEXE%" "%~dp0%~n0" %*
|
41
|
-
|
42
|
-
REM Restore some environmental variables we changed
|
43
|
-
SET "GEM_HOME=%COSMOS_GEM_HOME_SAVED%"
|
44
|
-
SET "GEM_PATH=%COSMOS_GEM_PATH_SAVED%"
|
45
|
-
SET "GEMRC=%COSMOS_GEMRC_SAVED%"
|
46
|
-
SET "PATH=%COSMOS_PATH_SAVED%"
|
47
|
-
SET "RUBYOPT=%COSMOS_RUBYOPT_SAVED%"
|
48
|
-
SET "RUBYLIB=%COSMOS_RUBYLIB_SAVED%"
|
49
|
-
SET "RI_DEVKIT=%COSMOS_RI_DEVKIT_SAVED%"
|
50
|
-
|
51
|
-
GOTO END
|
52
|
-
:SYSTEMRUBY
|
53
|
-
|
54
|
-
REM Use System Ruby and Environment
|
55
|
-
ECHO Starting tool using system ruby and environment
|
56
|
-
START "COSMOS" "%RUBYEXE%" "%~dp0%~n0" %*
|
57
|
-
|
58
|
-
GOTO END
|
59
|
-
:END
|
9
|
+
call %~dp0ToolLaunch.bat rubyw.exe %~n0 %*
|
data/demo/tools/CmdSender
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: ascii-8bit
|
3
3
|
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2015 Ball Aerospace & Technologies Corp.
|
5
5
|
# All Rights Reserved.
|
6
6
|
#
|
7
7
|
# This program is free software; you can modify and/or redistribute it
|
@@ -9,7 +9,8 @@
|
|
9
9
|
# as published by the Free Software Foundation; version 3 with
|
10
10
|
# attribution addendums as found in the LICENSE.txt
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
require 'cosmos/tools/cmd_sender/cmd_sender'
|
15
|
-
Cosmos::CmdSender.run
|
12
|
+
require_relative 'tool_launch'
|
13
|
+
tool_launch do
|
14
|
+
require 'cosmos/tools/cmd_sender/cmd_sender'
|
15
|
+
Cosmos::CmdSender.run
|
16
|
+
end
|