CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
test_remote_module_dynamic Namespace Reference

Classes

class  Local
class  Live

Functions

 wait_for (sec, cond)
 port_open (p)

Variables

 BIN = os.environ.get("PSYCLONE_BIN", "")
 NODE
 DYN
 SMALL
 SHORT
 FEED
str SPEC

Detailed Description

Dynamic RemoteModule tests (Psyclone 2.3.2 remote modules, phase 2).

Local: Trigger() builds the PsySpec <trigger> fragment. Live (PSYCLONE_BIN=<bin/linux64/Psyclone>): attach a name the
spec does not declare, subscribe / declare under the host's <allow> (refusals raise denied), ad-hoc retrieve and query,
parameters, a resume after a dropped link (no trigger lost, PsySeq contiguous), dropped beyond a small resume buffer,
and a lease expiry after which the desired set is sent again. Mirrors the dynamic part of test=remotemodule.

Function Documentation

◆ port_open()

test_remote_module_dynamic.port_open ( p)

Definition at line 49 of file test_remote_module_dynamic.py.

◆ wait_for()

Variable Documentation

◆ BIN

test_remote_module_dynamic.BIN = os.environ.get("PSYCLONE_BIN", "")

Definition at line 19 of file test_remote_module_dynamic.py.

◆ DYN

test_remote_module_dynamic.DYN

Definition at line 20 of file test_remote_module_dynamic.py.

◆ FEED

test_remote_module_dynamic.FEED

Definition at line 20 of file test_remote_module_dynamic.py.

◆ NODE

test_remote_module_dynamic.NODE

Definition at line 20 of file test_remote_module_dynamic.py.

◆ SHORT

test_remote_module_dynamic.SHORT

Definition at line 20 of file test_remote_module_dynamic.py.

◆ SMALL

test_remote_module_dynamic.SMALL

Definition at line 20 of file test_remote_module_dynamic.py.

◆ SPEC

str test_remote_module_dynamic.SPEC
Initial value:
1= """<psyspec name="PyRemoteModuleDynTest" port="%(NODE)d">
2 <service name="Dyn"><modules auth="none" allowdynamic="yes">
3 <allow names="Py.*" subscribe="PyD.*" post="PyD.Out.*" retrieve="PyDWB" query="PyDStore"/></modules></service>
4 <service name="Small"><modules auth="none" allowdynamic="yes" buffer="10"><allow names="Small.*" subscribe="PyD.*"/></modules></service>
5 <service name="Short"><modules auth="none" allowdynamic="yes" lease="1500"><allow names="Short.*" subscribe="PyD.*"/></modules></service>
6 <service name="Feed"><post name="Tick" type="PyD.Tick"/></service>
7 <interface name="DynTCP" port="%(DYN)d" protocol="Message" service="Dyn"/>
8 <interface name="SmallTCP" port="%(SMALL)d" protocol="Message" service="Small"/>
9 <interface name="ShortTCP" port="%(SHORT)d" protocol="Message" service="Short"/>
10 <interface name="FeedTCP" port="%(FEED)d" protocol="Message" service="Feed"/>
11 <whiteboard name="PyDWB"><trigger name="All" type="PyD.Out.*"/></whiteboard>
12 <whiteboard name="PyDSecret"><trigger name="All" type="PyD.Out.*"/></whiteboard>
13 <catalog name="PyDStore" type="RequestStore"><trigger name="Note" type="PyD.Out.Note"/>
14 <setup><store name="Note" trigger="Note" key="note" mimetype="text"/></setup></catalog>
15</psyspec>
16"""

Definition at line 22 of file test_remote_module_dynamic.py.