-I$(srcdir)/../Basics \
-I$(srcdir)/../SALOMELocalTrace \
-I$(srcdir)/../NamingService \
+ -I$(srcdir)/../LifeCycleCORBA \
-I$(srcdir)/../Utils \
-I$(srcdir)/../Registry \
-I$(srcdir)/../Notification \
../Notification/libSalomeNotification.la \
../ResourcesManager/libSalomeResourcesManager.la \
../NamingService/libSalomeNS.la \
+ ../LifeCycleCORBA/libSalomeLifeCycleCORBA.la \
../Utils/libOpUtil.la \
../SALOMELocalTrace/libSALOMELocalTrace.la \
../Basics/libSALOMEBasics.la \
#include <SALOMEconfig.h>
#include "SALOME_NamingService.hxx"
#include "SALOME_ContainerManager.hxx"
+#include "SALOME_LifeCycleCORBA.hxx"
#include "NamingService_WaitForServerReadiness.hxx"
#include "OpUtil.hxx"
#include "Utils_ORB_INIT.hxx"
{
map<string, int> cycle;
map<string, int> first;
+ Engines::Container_ptr cont;
+ Engines::Component_ptr compo;
+ bool error = false;
+ bool bestImplemented;
// Initializing omniORB
ORB_INIT &init = *SINGLETON_<ORB_INIT>::Instance() ;
for(int i=0;i<10;i++){
sprintf(st,"cycl_%d",i);
p.container_name = CORBA::string_dup(st);
- _ContManager->StartContainer(p,Engines::P_CYCL);
+ cont = _ContManager->StartContainer(p,Engines::P_CYCL);
+ if(CORBA::is_nil(cont)) error = true;
}
for(int i=0;i<10;i++){
sprintf(st,"first_%d",i);
p.container_name = CORBA::string_dup(st);
- _ContManager->StartContainer(p,Engines::P_FIRST);
+ cont = _ContManager->StartContainer(p,Engines::P_FIRST);
+ if(CORBA::is_nil(cont)) error = true;
}
p.container_name = CORBA::string_dup("best");
- _ContManager->StartContainer(p,Engines::P_BEST);
+ cont = _ContManager->StartContainer(p,Engines::P_BEST);
+ if(CORBA::is_nil(cont)) bestImplemented = false;
+ else bestImplemented = true;
+
+ SALOME_LifeCycleCORBA LCC(_NS);
+ compo = LCC.FindOrLoad_Component("FactoryServer","GEOM");
+ if(CORBA::is_nil(compo)) error = true;
+ compo = LCC.FindOrLoad_Component("FactoryServer","GEOM");
+ if(CORBA::is_nil(compo)) error = true;
_NS->Change_Directory("/Containers");
if(first[(*iter).first]>fmax) fmax=first[(*iter).first];
}
}
- if( ((cmax-cmin) <= 1) && (fmax == 10)){
- MESSAGE("TEST OK");
+ if( ((cmax-cmin) <= 1) && (fmax == 10) && !error ){
+ string msg;
+ if(bestImplemented)
+ msg = "TEST OK";
+ else
+ msg = "TEST OK but FindBest not implemented!";
+ MESSAGE(msg);
return 0;
}
else{