Skip to content
Snippets Groups Projects
Commit 6c9011b6 authored by Dmitriy A. Gerasimov's avatar Dmitriy A. Gerasimov
Browse files
parents 4c2a61da 9b97e352
No related branches found
No related tags found
No related merge requests found
...@@ -134,3 +134,7 @@ ...@@ -134,3 +134,7 @@
path = libdap-chain-net-srv-datum-pool path = libdap-chain-net-srv-datum-pool
url = https://github.com/kelvinblockchain/libdap-chain-net-srv-datum-pool url = https://github.com/kelvinblockchain/libdap-chain-net-srv-datum-pool
branch = master branch = master
[submodule "test/libdap-test"]
path = test/libdap-test
url = https://github.com/kelvinblockchain/libdap-test
branch = master
sudo: required
language: c
compiler: gcc
dist: trusty
notifications:
email: false
before_install:
- git submodule init
- git submodule update --recursive
script:
- export CC=gcc-5
- mkdir build
- cd build
- cmake -DBUILD_KELVIN_NODE_TESTS=ON ../
- make
- ctest --verbose
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- libev-dev
- libmagic-dev
...@@ -66,6 +66,10 @@ add_subdirectory(libdap-stream-ch-chain-net) ...@@ -66,6 +66,10 @@ add_subdirectory(libdap-stream-ch-chain-net)
add_subdirectory(libdap-stream-ch-chain-net-srv) add_subdirectory(libdap-stream-ch-chain-net-srv)
#add_subdirectory(libdap-stream-ch-chat) #add_subdirectory(libdap-stream-ch-chat)
if(BUILD_KELVIN_NODE_TESTS)
enable_testing()
add_subdirectory(test)
endif()
#include_directories("${INCLUDE_DIRECTORIES} ${dap_core_INCLUDE_DIRS}") #include_directories("${INCLUDE_DIRECTORIES} ${dap_core_INCLUDE_DIRS}")
#include_directories("${INCLUDE_DIRECTORIES} ${dap_http_INCLUDE_DIRS}") #include_directories("${INCLUDE_DIRECTORIES} ${dap_http_INCLUDE_DIRS}")
......
# kelvin-node # kelvin-node
Kelvin Blockchain node Kelvin Blockchain node
[![Build Status](https://travis-ci.com/kelvinblockchain/kelvin-node.svg?branch=master)](https://travis-ci.com/kelvinblockchain/kelvin-node)
if(TARGET kelvin_node_test)
return() # The project has already been built.
endif()
project(kelvin_node_test)
add_subdirectory(libdap-test)
file(GLOB SOURCES *.c)
file(GLOB HEADERS *.h)
add_executable(${PROJECT_NAME} ${SOURCES} ${HEADERS})
target_link_libraries(${PROJECT_NAME} dap_core)
add_test(
NAME kelvin_node_test
COMMAND kelvin_node_test
)
Subproject commit 2a18a8da0117b1d5f2d951ad3f50ad4e8a8b2fdd
#include "dap_common.h"
int main(void) {
// switch off debug info from library
set_log_level(L_CRITICAL);
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment