Commit 6f8ad2d2 authored by Renato Figueiro Maia's avatar Renato Figueiro Maia

[OPENBUS-1704] Implementar testes para os SDKs 2.0

- Incluindo propriedades svn:externals para importar definições IDL.


git-svn-id: https://subversion.tecgraf.puc-rio.br/engdist/openbus/sdk/lua/trunk@132441 ae0415b3-e90b-0410-900d-d0be9363c56b
parent 44499a15
......@@ -10,7 +10,7 @@ local orb = openbus.initORB()
openbus.newThread(orb.run, orb)
-- load interface definitions
orb:loadidlfile("messages.idl")
orb:loadidlfile("idl/messages.idl")
local iface = orb.types:lookup("tecgraf::openbus::interop::delegation::Broadcaster")
-- customize test configuration for this case
......
......@@ -7,7 +7,7 @@ require "openbus.test.util"
local orb = openbus.initORB()
-- load interface definition
orb:loadidlfile("messages.idl")
orb:loadidlfile("idl/messages.idl")
local iface = orb.types:lookup("tecgraf::openbus::interop::delegation::Messenger")
-- customize test configuration for this case
......
......@@ -11,7 +11,7 @@ local orb = openbus.initORB()
openbus.newThread(orb.run, orb)
-- load interface definitions
orb:loadidlfile("messages.idl")
orb:loadidlfile("idl/messages.idl")
local iface = orb.types:lookup("tecgraf::openbus::interop::delegation::Forwarder")
-- customize test configuration for this case
......
......@@ -10,7 +10,7 @@ local orb = openbus.initORB()
openbus.newThread(orb.run, orb)
-- load interface definitions
orb:loadidlfile("messages.idl")
orb:loadidlfile("idl/messages.idl")
local iface = orb.types:lookup("tecgraf::openbus::interop::delegation::Messenger")
-- customize test configuration for this case
......
......@@ -7,7 +7,7 @@ require "openbus.test.util"
-- setup and start the ORB
local orb = openbus.initORB()
orb:loadidlfile("hello.idl")
orb:loadidlfile("idl/hello.idl")
-- load interface definition
local iface = orb.types:lookup("tecgraf::openbus::interop::simple::Hello")
......
......@@ -11,8 +11,8 @@ local orb2 = openbus.initORB()
openbus.newThread(orb2.run, orb2)
-- load interface definition
orb1:loadidlfile("hello.idl")
orb2:loadidlfile("hello.idl")
orb1:loadidlfile("idl/hello.idl")
orb2:loadidlfile("idl/hello.idl")
local iface = orb1.types:lookup("tecgraf::openbus::interop::simple::Hello")
-- customize test configuration for this case
......
......@@ -7,7 +7,7 @@ require "openbus.test.util"
local orb = openbus.initORB()
-- load interface definition
orb:loadidlfile("hello.idl")
orb:loadidlfile("idl/hello/hello.idl")
local iface = orb.types:lookup("tecgraf::openbus::interop::simple::Hello")
-- customize test configuration for this case
......@@ -21,7 +21,7 @@ local conn = OpenBusContext:createConnection(bushost, busport)
OpenBusContext:setDefaultConnection(conn)
-- load interface definition
orb:loadidlfile("encoding.idl")
orb:loadidlfile("idl/sharedauth/encoding.idl")
local idltype = orb.types:lookup("tecgraf::openbus::interop::sharedauth::EncodedSharedAuth")
-- read shared authentication data
......
#ifndef __TECGRAF_OPENBUS_INTEROP_HELLO_IDL__
#define __TECGRAF_OPENBUS_INTEROP_HELLO_IDL__
/**
* \brief Mdulo dos sistemas e aplicaes do Tecgraf.
*/
module tecgraf {
/**
* \brief Mdulo do \e middleware OpenBus.
*/
module openbus {
module interop {
module sharedauth {
struct EncodedSharedAuth {
Object attempt;
sequence<octet> secret;
};
}; // sharedauth
}; // demo
}; // openbus
}; // tecgraf
#endif
......@@ -9,7 +9,7 @@ local orb = openbus.initORB()
openbus.newThread(orb.run, orb)
-- load interface definition
orb:loadidlfile("hello.idl")
orb:loadidlfile("idl/hello/hello.idl")
local iface = orb.types:lookup("tecgraf::openbus::interop::simple::Hello")
-- customize test configuration for this case
......@@ -53,7 +53,7 @@ log:TEST("hello service ready!")
local attempt, secret = conn:startSharedAuth()
-- load interface definition
orb:loadidlfile("encoding.idl")
orb:loadidlfile("idl/sharedauth/encoding.idl")
local idltype = orb.types:lookup("tecgraf::openbus::interop::sharedauth::EncodedSharedAuth")
-- serialize shared authentication data
......
......@@ -7,7 +7,7 @@ require "openbus.test.util"
local orb = openbus.initORB()
-- load interface definition
orb:loadidlfile("hello.idl")
orb:loadidlfile("idl/hello.idl")
local iface = orb.types:lookup("tecgraf::openbus::interop::simple::Hello")
-- customize test configuration for this case
......
......@@ -9,7 +9,7 @@ local orb = openbus.initORB()
openbus.newThread(orb.run, orb)
-- load interface definition
orb:loadidlfile("hello.idl")
orb:loadidlfile("idl/hello.idl")
local iface = orb.types:lookup("tecgraf::openbus::interop::simple::Hello")
-- customize test configuration for this case
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment