Extend scripting facility to support cluster manipulation
ref #10412
Activity
Build finished. Tests PASSED. Build results available at: http://dsjenkins.cloudapp.net/jenkins/job/dSS%20MR/190/
- tests/jsclustertests.cpp 0 → 100644
250 boost::shared_ptr<Cluster> cluster = apt1.getEmptyCluster(); 251 cluster->setStandardGroupID(2); 252 cluster->setName(output); 253 int clusterId = cluster->getID(); 254 255 boost::scoped_ptr<ScriptEnvironment> env(new ScriptEnvironment()); 256 env->initialize(); 257 258 ScriptExtension* ext = new ClusterScriptExtension(apt1); 259 env->addExtension(ext); 260 261 boost::scoped_ptr<ScriptContext> ctx(env->getContext()); 262 263 output = "firstNameTest"; 264 ctx->evaluate<void>("Cluster.clusterSetName(" + intToString(clusterId) + ",'" + output + "')"); 265 BOOST_CHECK(output.compare(cluster->getName()) == 0);
Please register or sign in to reply