Commit a2bea6d2 authored by legoc's avatar legoc

New test

parent 7002759c
......@@ -16,7 +16,7 @@
<dependency>
<groupId>fr.ill.ics</groupId>
<artifactId>cameo-api-java-jeromq</artifactId>
<version>0.1.2-SNAPSHOT</version>
<version>0.1.2</version>
</dependency>
</dependencies>
......
......@@ -11,7 +11,7 @@
<dependency>
<groupId>fr.ill.ics</groupId>
<artifactId>cameo-server-jzmq</artifactId>
<version>0.1.2-SNAPSHOT</version>
<version>0.1.2</version>
<!-- <exclusions>
<exclusion>
<groupId>fr.ill.ics</groupId>
......@@ -27,7 +27,7 @@
<dependency>
<groupId>fr.ill.ics</groupId>
<artifactId>cameo-api-java-jzmq</artifactId>
<version>0.1.2-SNAPSHOT</version>
<version>0.1.2</version>
</dependency>
</dependencies>
......
......@@ -234,6 +234,11 @@
<start executable="build/bin/testrequesterandrespondertimeout" args="repcppt"/>
</application>
<application name="startstream" starting_time="0" retries="0" stopping_time="1" stream="yes" log_directory="logs" multiple="no" restart="no">
<start executable="build/bin/teststream"/>
</application>
</applications>
</config>
......@@ -43,7 +43,7 @@
<dependency>
<groupId>fr.ill.ics</groupId>
<artifactId>cameo-api-java</artifactId>
<version>0.1.2-SNAPSHOT</version>
<version>0.1.2</version>
</dependency>
</dependencies>
</profile>
......
......@@ -28,7 +28,8 @@ bin_PROGRAMS = \
requesterclient \
responderserver \
testrespondertimeout \
testrequesterandrespondertimeout
testrequesterandrespondertimeout \
teststream
testcameo_SOURCES = \
......@@ -237,8 +238,6 @@ responderserver_LDFLAGS = $(CT_LDFLAGS)
responderserver_LDADD = $(CT_LIBS)
testrespondertimeout_SOURCES = \
TestResponderApplicationForTimeout.cpp
......@@ -253,3 +252,12 @@ testrequesterandrespondertimeout_SOURCES = \
testrequesterandrespondertimeout_CPPFLAGS = $(CT_CXXFLAGS)
testrequesterandrespondertimeout_LDFLAGS = $(CT_LDFLAGS)
testrequesterandrespondertimeout_LDADD = $(CT_LIBS)
teststream_SOURCES = \
TestStreamApplication.cpp
teststream_CPPFLAGS = $(CT_CXXFLAGS)
teststream_LDFLAGS = $(CT_LDFLAGS)
teststream_LDADD = $(CT_LIBS)
/*
* Copyright 2015 Institut Laue-Langevin
*
* Licensed under the EUPL, Version 1.1 only (the "License");
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
*
* http://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <cameo/cameo.h>
using namespace std;
using namespace cameo;
int main(int argc, char *argv[]) {
application::This::init(argc, argv);
// New block to ensure cameo objects are terminated before the application.
{
if (application::This::isAvailable()) {
cout << "connected" << endl;
}
application::This::setRunning();
int i = 0;
while (i < 1000) {
cout << "printing " << i << endl;
i++;
}
cout << "finished the application" << endl;
}
return 0;
}
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