init
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
|
||||
### Do not enable the commented out sikuli tests unless you
|
||||
### or your lab commits to keep them passing in the long term.
|
||||
|
||||
# The results of this particular test have been somewhat random in CI.
|
||||
# Do not enable unless you've tracked the reason and fixed the situation.
|
||||
|
||||
#FIND_PROGRAM(SIKULI NAMES sikuli-ide)
|
||||
#IF(SIKULI)
|
||||
# IF(UNIX)
|
||||
# ADD_TEST(sikuli_ogre_context "${SIKULI}" -t testOgreContext.UNIX.sikuli)
|
||||
# ENDIF(UNIX)
|
||||
#ENDIF(SIKULI)
|
||||
|
||||
|
||||
|
||||
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 47 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 414 B |
+94
@@ -0,0 +1,94 @@
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
.sikuli-code {
|
||||
font-size: 20px;
|
||||
font-family: "Osaka-mono", Monospace;
|
||||
line-height: 1.5em;
|
||||
display:table-cell;
|
||||
white-space: pre-wrap; /* css-3 */
|
||||
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
|
||||
white-space: -pre-wrap; /* Opera 4-6 */
|
||||
white-space: -o-pre-wrap; /* Opera 7 */
|
||||
word-wrap: break-word; /* Internet Explorer 5.5+ */
|
||||
width: 99%; /* remove horizontal scroll-bar when viewing in IE7 */
|
||||
}
|
||||
.sikuli-code img {
|
||||
vertical-align: middle;
|
||||
margin: 2px;
|
||||
border: 1px solid #ccc;
|
||||
padding: 2px;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-box-shadow: 1px 1px 1px gray;
|
||||
-webkit-box-shadow: 1px 1px 2px gray;
|
||||
}
|
||||
.kw {
|
||||
color: blue;
|
||||
}
|
||||
.skw {
|
||||
color: rgb(63, 127, 127);
|
||||
}
|
||||
|
||||
.str {
|
||||
color: rgb(128, 0, 0);
|
||||
}
|
||||
|
||||
.dig {
|
||||
color: rgb(128, 64, 0);
|
||||
}
|
||||
|
||||
.cmt {
|
||||
color: rgb(200, 0, 200);
|
||||
}
|
||||
|
||||
h2 {
|
||||
display: inline;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.info {
|
||||
border-bottom: 1px solid #ddd;
|
||||
padding-bottom: 5px;
|
||||
margin-bottom: 20px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #9D2900;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Trebuchet MS", Arial, Sans-Serif;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="info">
|
||||
<h2>testOgreContext.UNIX.sikuli</h2> <a href="testOgreContext.UNIX.zip">(Download this script)</a>
|
||||
</div>
|
||||
<pre class="sikuli-code">
|
||||
<span class="kw">def</span> setUp(self):
|
||||
<span class="kw">import</span> os
|
||||
ov_binany_path=os.environ[<span class="str">'OV_BINARY_PATH'</span>]
|
||||
self.terminal = App.open(<span class="str">"xterm -e "</span> + ov_binany_path +<span class="str">"/openvibe-designer.sh --no-session-management --open testOgreContext.xml"</span>)
|
||||
<span class="kw">while</span> <span class="kw">not</span> self.terminal.window():
|
||||
<span class="skw">wait</span>(<span class="dig">1</span>)
|
||||
<span class="skw">wait</span>(<img src="designerScreen.png" />,<span class="dig">10</span>)
|
||||
<span class="kw">def</span> testRunOgreVisual(self):
|
||||
<span class="skw">click</span>(<img src="play.png" />)
|
||||
mouseMove(Location(<span class="dig">0</span>,<span class="dig">0</span>))
|
||||
|
||||
<span class="skw">wait</span>(<img src="Simple3Dview.png" />,<span class="dig">10</span>)
|
||||
waitVanish(<img src="Simple3Dview.png" />,<span class="dig">10</span>)
|
||||
<span class="kw">assert</span>(exists(<img src="designerScreen.png" />))
|
||||
<span class="kw">def</span> tearDown(self):
|
||||
mouseMove(Location(<span class="dig">0</span>,<span class="dig">0</span>))
|
||||
<span class="kw">if</span> self.terminal.window():
|
||||
App.close(self.terminal)
|
||||
self.terminal= None
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
def setUp(self):
|
||||
import os
|
||||
ov_binany_path=os.environ['OV_BINARY_PATH']
|
||||
self.terminal = App.open("xterm -e " + ov_binany_path +"/openvibe-designer.sh --no-session-management --open testOgreContext.xml")
|
||||
while not self.terminal.window():
|
||||
wait(1)
|
||||
wait("designerScreen.png",10)
|
||||
def testRunOgreVisual(self):
|
||||
click("play.png")
|
||||
mouseMove(Location(0,0))
|
||||
|
||||
wait("Simple3Dview.png",10)
|
||||
waitVanish("Simple3Dview.png",10)
|
||||
assert(exists("designerScreen.png"))
|
||||
def tearDown(self):
|
||||
mouseMove(Location(0,0))
|
||||
if self.terminal.window():
|
||||
App.close(self.terminal)
|
||||
self.terminal= None
|
||||
|
||||
+215
@@ -0,0 +1,215 @@
|
||||
<OpenViBE-Scenario>
|
||||
<FormatVersion>1</FormatVersion>
|
||||
<Creator>openvibe</Creator>
|
||||
<CreatorVersion>2.0</CreatorVersion>
|
||||
<Boxes>
|
||||
<Box>
|
||||
<Identifier>(0x1833aa75, 0x135b1bc4)</Identifier>
|
||||
<Name>Simple 3D viewer</Name>
|
||||
<AlgorithmClassIdentifier>(0x31a00483, 0x35924e6b)</AlgorithmClassIdentifier>
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa7a38f, 0x54edbe0b)</Identifier>
|
||||
<Value>80.000000</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa963f5, 0x1a638cd4)</Identifier>
|
||||
<Value>27</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x207c9054, 0x3c841b63)</Identifier>
|
||||
<Value>96.000000</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x4e7b798a, 0x183beafb)</Identifier>
|
||||
<Value>(0xffffffff, 0xffffffff)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
|
||||
<Value>124</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc46b3d00, 0x3e0454e1)</Identifier>
|
||||
<Value>(0x00000000, 0x04e6f2f2)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc73e83ec, 0xf855c5bc)</Identifier>
|
||||
<Value>false</Value>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Box>
|
||||
<Box>
|
||||
<Identifier>(0x2907751f, 0x5707c877)</Identifier>
|
||||
<Name>Clock stimulator</Name>
|
||||
<AlgorithmClassIdentifier>(0x4f756d3f, 0x29ff0b96)</AlgorithmClassIdentifier>
|
||||
<Outputs>
|
||||
<Output>
|
||||
<TypeIdentifier>(0x6f752dd0, 0x082a321e)</TypeIdentifier>
|
||||
<Name>Generated stimulations</Name>
|
||||
</Output>
|
||||
</Outputs>
|
||||
<Settings>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x512a166f, 0x5c3ef83f)</TypeIdentifier>
|
||||
<Name>Interstimulation interval (in sec)</Name>
|
||||
<DefaultValue>1.0</DefaultValue>
|
||||
<Value>1.0</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
|
||||
<Name>Stimulation</Name>
|
||||
<DefaultValue>OVTK_StimulationId_Label_00</DefaultValue>
|
||||
<Value>OVTK_StimulationId_Label_00</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
</Settings>
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa7a38f, 0x54edbe0b)</Identifier>
|
||||
<Value>48.000000</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa963f5, 0x1a638cd4)</Identifier>
|
||||
<Value>27</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x207c9054, 0x3c841b63)</Identifier>
|
||||
<Value>304.000000</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x4e7b798a, 0x183beafb)</Identifier>
|
||||
<Value>(0x27b3ee3c, 0xc50527e6)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
|
||||
<Value>129</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc46b3d00, 0x3e0454e1)</Identifier>
|
||||
<Value>(0x00000000, 0x025b20b3)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc73e83ec, 0xf855c5bc)</Identifier>
|
||||
<Value>false</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc80ce8af, 0xf699f813)</Identifier>
|
||||
<Value>1</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xce18836a, 0x9c0eb403)</Identifier>
|
||||
<Value>2</Value>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Box>
|
||||
<Box>
|
||||
<Identifier>(0x315af00a, 0x0596147e)</Identifier>
|
||||
<Name>Player Controller</Name>
|
||||
<AlgorithmClassIdentifier>(0x5f426dce, 0x08456e13)</AlgorithmClassIdentifier>
|
||||
<Inputs>
|
||||
<Input>
|
||||
<TypeIdentifier>(0x6f752dd0, 0x082a321e)</TypeIdentifier>
|
||||
<Name>Stimulations</Name>
|
||||
</Input>
|
||||
</Inputs>
|
||||
<Settings>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
|
||||
<Name>Stimulation name</Name>
|
||||
<DefaultValue>OVTK_StimulationId_Label_00</DefaultValue>
|
||||
<Value>OVTK_StimulationId_Label_00</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0xcc14d8d6, 0xf27ecb73)</TypeIdentifier>
|
||||
<Name>Action to perform</Name>
|
||||
<DefaultValue>Pause</DefaultValue>
|
||||
<Value>Stop</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
</Settings>
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa7a38f, 0x54edbe0b)</Identifier>
|
||||
<Value>128.000000</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa963f5, 0x1a638cd4)</Identifier>
|
||||
<Value>27</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x207c9054, 0x3c841b63)</Identifier>
|
||||
<Value>304.000000</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x4e7b798a, 0x183beafb)</Identifier>
|
||||
<Value>(0x568d148e, 0x650792b3)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
|
||||
<Value>134</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc46b3d00, 0x3e0454e1)</Identifier>
|
||||
<Value>(0x00000000, 0x01028a1c)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc67a01dc, 0x28ce06c1)</Identifier>
|
||||
<Value></Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc73e83ec, 0xf855c5bc)</Identifier>
|
||||
<Value>false</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xce18836a, 0x9c0eb403)</Identifier>
|
||||
<Value>2</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xcfad85b0, 0x7c6d841c)</Identifier>
|
||||
<Value>1</Value>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Box>
|
||||
</Boxes>
|
||||
<Links>
|
||||
<Link>
|
||||
<Identifier>(0x18af3aef, 0x4571d182)</Identifier>
|
||||
<Source>
|
||||
<BoxIdentifier>(0x2907751f, 0x5707c877)</BoxIdentifier>
|
||||
<BoxOutputIndex>0</BoxOutputIndex>
|
||||
</Source>
|
||||
<Target>
|
||||
<BoxIdentifier>(0x315af00a, 0x0596147e)</BoxIdentifier>
|
||||
<BoxInputIndex>0</BoxInputIndex>
|
||||
</Target>
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<Identifier>(0x1b32c44c, 0x1905e0e9)</Identifier>
|
||||
<Value>68</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x358ae8b5, 0x0f8bacd1)</Identifier>
|
||||
<Value>304</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x3f0a3b27, 0x570913d2)</Identifier>
|
||||
<Value>110</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x6267b5c5, 0x676e3e42)</Identifier>
|
||||
<Value>304</Value>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Link>
|
||||
</Links>
|
||||
<Comments></Comments>
|
||||
<Metadata>
|
||||
<Entry>
|
||||
<Identifier>(0x0000775c, 0x000078ff)</Identifier>
|
||||
<Type>(0x3bcce5d2, 0x43f2d968)</Type>
|
||||
<Data>[{"boxIdentifier":"(0xffffffff, 0xffffffff)","childCount":1,"height":320,"identifier":"(0x28ce4caa, 0x41c2d232)","index":0,"name":"Default window","parentIdentifier":"(0xffffffff, 0xffffffff)","type":1,"width":480},{"boxIdentifier":"(0x1833aa75, 0x135b1bc4)","childCount":0,"identifier":"(0x49324771, 0x753fb7ec)","index":0,"parentIdentifier":"(0xffffffff, 0xffffffff)","type":3},{"boxIdentifier":"(0xffffffff, 0xffffffff)","childCount":1,"identifier":"(0x4a479e46, 0x0eb0dfd5)","index":0,"name":"Default tab","parentIdentifier":"(0x28ce4caa, 0x41c2d232)","type":2},{"boxIdentifier":"(0xffffffff, 0xffffffff)","childCount":0,"identifier":"(0x2b28a46b, 0x1eb43059)","index":0,"name":"Empty","parentIdentifier":"(0x4a479e46, 0x0eb0dfd5)","type":0}]</Data>
|
||||
</Entry>
|
||||
</Metadata>
|
||||
</OpenViBE-Scenario>
|
||||
Reference in New Issue
Block a user