Add Test Program Readme
authoryoungman <yman.jung@samsung.com>
Mon, 16 Nov 2015 08:56:21 +0000 (17:56 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Thu, 19 Nov 2015 05:54:46 +0000 (14:54 +0900)
Change-Id: I8dba2ac92c1422d6beb025851f8e4e0884c67a20
Signed-off-by: youngman <yman.jung@samsung.com>
packaging/iotcon.spec
test/CMakeLists.txt
test/Readme [new file with mode: 0644]
test/iotcon-test-iface-client.c [moved from test/iotcon-test-repr-client.c with 100% similarity]
test/iotcon-test-iface-server.c [moved from test/iotcon-test-repr-server.c with 100% similarity]

index 5a0b3e8..502af99 100644 (file)
@@ -127,7 +127,7 @@ systemctl daemon-reload
 %{_bindir}/iotcon-test-basic-client
 %{_bindir}/iotcon-test-basic-server
 %{_bindir}/iotcon-test-device-client
-%{_bindir}/iotcon-test-repr-client
-%{_bindir}/iotcon-test-repr-server
+%{_bindir}/iotcon-test-iface-client
+%{_bindir}/iotcon-test-iface-server
 %{_bindir}/iotcon-test-encap-client
 %{_bindir}/iotcon-test-encap-server
index 12d5b92..3b52635 100644 (file)
@@ -9,10 +9,10 @@ SET(IOTCON_TEST_BASIC_SERVER_SRCS "iotcon-test-basic-server.c")
 SET(IOTCON_TEST_DEVICE_CLIENT "iotcon-test-device-client")
 SET(IOTCON_TEST_DEVICE_CLIENT_SRCS "iotcon-test-device-client.c")
 
-SET(IOTCON_TEST_REPR_CLIENT "iotcon-test-repr-client")
-SET(IOTCON_TEST_REPR_SERVER "iotcon-test-repr-server")
-SET(IOTCON_TEST_REPR_CLIENT_SRCS "iotcon-test-repr-client.c")
-SET(IOTCON_TEST_REPR_SERVER_SRCS "iotcon-test-repr-server.c")
+SET(IOTCON_TEST_IFACE_CLIENT "iotcon-test-iface-client")
+SET(IOTCON_TEST_IFACE_SERVER "iotcon-test-iface-server")
+SET(IOTCON_TEST_IFACE_CLIENT_SRCS "iotcon-test-iface-client.c")
+SET(IOTCON_TEST_IFACE_SERVER_SRCS "iotcon-test-iface-server.c")
 
 SET(IOTCON_TEST_ENCAP_CLIENT "iotcon-test-encap-client")
 SET(IOTCON_TEST_ENCAP_SERVER "iotcon-test-encap-server")
@@ -35,13 +35,13 @@ ADD_EXECUTABLE(${IOTCON_TEST_DEVICE_CLIENT} ${IOTCON_TEST_DEVICE_CLIENT_SRCS})
 TARGET_LINK_LIBRARIES(${IOTCON_TEST_DEVICE_CLIENT} ${test_pkgs_LIBRARIES} ${CLIENT})
 INSTALL(TARGETS ${IOTCON_TEST_DEVICE_CLIENT} DESTINATION ${BIN_INSTALL_DIR})
 
-ADD_EXECUTABLE(${IOTCON_TEST_REPR_CLIENT} ${IOTCON_TEST_REPR_CLIENT_SRCS})
-TARGET_LINK_LIBRARIES(${IOTCON_TEST_REPR_CLIENT} ${test_pkgs_LIBRARIES} ${CLIENT})
-INSTALL(TARGETS ${IOTCON_TEST_REPR_CLIENT} DESTINATION ${BIN_INSTALL_DIR})
+ADD_EXECUTABLE(${IOTCON_TEST_IFACE_CLIENT} ${IOTCON_TEST_IFACE_CLIENT_SRCS})
+TARGET_LINK_LIBRARIES(${IOTCON_TEST_IFACE_CLIENT} ${test_pkgs_LIBRARIES} ${CLIENT})
+INSTALL(TARGETS ${IOTCON_TEST_IFACE_CLIENT} DESTINATION ${BIN_INSTALL_DIR})
 
-ADD_EXECUTABLE(${IOTCON_TEST_REPR_SERVER} ${IOTCON_TEST_REPR_SERVER_SRCS})
-TARGET_LINK_LIBRARIES(${IOTCON_TEST_REPR_SERVER} ${test_pkgs_LIBRARIES} ${CLIENT})
-INSTALL(TARGETS ${IOTCON_TEST_REPR_SERVER} DESTINATION ${BIN_INSTALL_DIR})
+ADD_EXECUTABLE(${IOTCON_TEST_IFACE_SERVER} ${IOTCON_TEST_IFACE_SERVER_SRCS})
+TARGET_LINK_LIBRARIES(${IOTCON_TEST_IFACE_SERVER} ${test_pkgs_LIBRARIES} ${CLIENT})
+INSTALL(TARGETS ${IOTCON_TEST_IFACE_SERVER} DESTINATION ${BIN_INSTALL_DIR})
 
 ADD_EXECUTABLE(${IOTCON_TEST_ENCAP_CLIENT} ${IOTCON_TEST_ENCAP_CLIENT_SRCS})
 TARGET_LINK_LIBRARIES(${IOTCON_TEST_ENCAP_CLIENT} ${test_pkgs_LIBRARIES} ${CLIENT})
diff --git a/test/Readme b/test/Readme
new file mode 100644 (file)
index 0000000..895ffb2
--- /dev/null
@@ -0,0 +1,48 @@
+ IoTCon(Tizen IoT Connectivity) Test Program
+
+
+If you install the "iotcon package", you can test operations of iotcon.
+The result of test is printed out through DLOG. If you specify the LOG_TAG value
+to 'ICTEST'(&'IOTCON'), you can see the output of test programs.
+
+There are four pairs of test programs.
+
+
+1. Basic Test
+
+It is for testing CRUDN methods. A client can require CRUDN operations to server's resource
+through iotcon_remote_resource_get/put/post/delete() and iotcon_remote_resource_observe_register().
+
+ $ /usr/bin/iotcon-test-basic-server
+ $ /usr/bin/iotcon-test-basic-client
+
+
+2. Interface Test
+
+You can check the operations of resource that contains child resources. If the client
+require GET operation to server's parent resource, server sends response with representation
+including children's information. The contents of information are decided by the resource
+interface set by server. Client can send desired interface with request to server.
+
+ $ /usr/bin/iotcon-test-iface-server
+ $ /usr/bin/iotcon-test-iface-client
+
+
+3. Get Device/Platform Information Test
+
+Because device information and platform information are set by iotcon, you can check the
+information through iotcon_get_device_info() and iotcon_get_platform_info().
+
+ $ /usr/bin/iotcon-test-device-client
+
+
+4. Resource Encapsulation Test
+
+It is for testing resource encapsulation. Resource Encapsulation consists of lite resource,
+resource monitoring, and resource caching. If the server uses lite resource, there is no
+need to create a request handler. The client can check resource's state
+using iotcon_remote_resource_start_monitoring(). Also, the client can keep the resource's
+representation up to date using iotcon_remote_resource_start_caching().
+
+ $ /usr/bin/iotcon-test-encap-server
+ $ /usr/bin/iotcon-test-encap-client