Commit 54afa5ab authored by Greg Williams's avatar Greg Williams
Browse files

Merge branch 'master' of github.com:Seagate/kinetic-c

Conflicts:
	Makefile
	src/lib/kinetic_logger.c
	vendor/kinetic-simulator/stopSimulator.sh
parents e56997e9 a19a2abf
Loading
Loading
Loading
Loading
+18 −10
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ WARN = -Wall -Wextra -Werror -Wstrict-prototypes -Wcast-align -pedantic -Wno-mis
CDEFS += -D_POSIX_C_SOURCE=199309L -D_C99_SOURCE=1 -DSYSTEM_TEST_HOST=${SYSTEM_TEST_HOST}
CFLAGS += -std=c99 -fPIC -g $(WARN) $(CDEFS) $(OPTIMIZE)
LDFLAGS += -lm -L${OPENSSL_PATH}/lib -lcrypto -lssl -lpthread -ljson-c
NUM_SIMS ?= 2

#===============================================================================
# Kinetic-C Library Build Support
@@ -103,7 +104,6 @@ clean: makedirs update_git_submodules
	rm -rf ./bin/**/*
	rm -f $(OUT_DIR)/*.o $(OUT_DIR)/*.a *.core *.log
	bundle exec rake clobber
	# -./vendor/kinetic-simulator/stopSimulator.sh &> /dev/null;
	cd ${SOCKET99} && make clean
	cd ${LIB_DIR}/threadpool && make clean
	cd ${LIB_DIR}/bus && make clean
@@ -146,8 +146,11 @@ $(OUT_DIR)/%.o: ${LIB_DIR}/bus/%.c ${LIB_DIR}/bus/%.h

${OUT_DIR}/*.o: src/lib/kinetic_types_internal.h


ci: uninstall stop_simulator start_simulator all stop_simulator install uninstall
ci: stop_sims start_sims all stop_sims
	@echo 
	@echo Testing installation/uninstallation of kinetic-c
	sudo make install
	sudo make uninstall
	@echo
	@echo --------------------------------------------------------------------------------
	@echo $(PROJECT) build completed successfully!
@@ -183,6 +186,7 @@ ${JSONC}/.libs/libjson-c.a: ${JSONC}/Makefile
${OUT_DIR}/libjson-c.a: ${JSONC}/.libs/libjson-c.a
	cp ${JSONC}/.libs/libjson-c.a ${OUT_DIR}/libjson-c.a


#-------------------------------------------------------------------------------
# Test Support
#-------------------------------------------------------------------------------
@@ -260,7 +264,7 @@ install: $(KINETIC_LIB) $(KINETIC_SO_DEV)
	$(INSTALL) -d $(PREFIX)${LIBDIR}
	$(INSTALL) -c $(KINETIC_LIB) $(PREFIX)${LIBDIR}/
	$(INSTALL) -d $(PREFIX)/include/
	$(INSTALL) -c $(PUB_INC)/$kinetic_client.h $(PREFIX)/include/
	$(INSTALL) -c $(PUB_INC)/kinetic_client.h $(PREFIX)/include/
	$(INSTALL) -c $(PUB_INC)/kinetic_types.h $(PREFIX)/include/
	$(INSTALL) -c $(PUB_INC)/kinetic_semaphore.h $(PREFIX)/include/
	$(INSTALL) -c $(PUB_INC)/byte_array.h $(PREFIX)/include/
@@ -292,21 +296,24 @@ update_simulator:
	cd vendor/kinetic-java; mvn clean package; cd -
	cp vendor/kinetic-java/kinetic-simulator/target/*.jar vendor/kinetic-java-simulator/

start_simulator:
	./vendor/kinetic-simulator/start2Simulators.sh
start_sims:
	./vendor/kinetic-simulator/startSimulators.sh
 		 
start_simulator: start_sims

stop_simulator:
	./vendor/kinetic-simulator/stopSimulator.sh
stop_sims:
	./vendor/kinetic-simulator/stopSimulators.sh

.PHONY: update_simulator erase_simulator stop_simulator
stop_simulator: stop_sims


.PHONY: update_simulator start_sims start_simulator stop_sims stop_simulator


#===============================================================================
# System Tests
#===============================================================================


SYSTEST_SRC = ./test/system
SYSTEST_OUT = $(BIN_DIR)/systest
SYSTEST_LDFLAGS += -lm $(KINETIC_LIB) -L${OPENSSL_PATH}/lib -lssl -lcrypto -lpthread
@@ -416,6 +423,7 @@ run: $(UTIL_EXEC)
	@echo Test Utility integration tests w/ kinetic-c lib passed!
	@echo


#===============================================================================
# Standalone Example Executables
#===============================================================================
+5 −0
Original line number Diff line number Diff line
v0.11.1 (kinetic-protocol 3.0.5)
--------------------------------
* Fixed race condition causing timeouts to not ne handled resulting in a deadlock.
* Fixed extremely high CPU usage during loaded and idle times.

v0.11.0 (kinetic-protocol 3.0.5)
--------------------------------
* Changed API to use a `KineticClientConfig` struct, to keep future configuration changes from breaking the source API.
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ PROJECT_NAME = kinetic-c
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER           = "v0.11.0"
PROJECT_NUMBER           = "v0.11.1"

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
+1 −1
Original line number Diff line number Diff line
0.11.0
0.11.1
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
#include "util.h"

#define TIMEOUT_MSEC 100
#define MAX_TIMEOUT 1000
#define MAX_TIMEOUT 10000

static bool init_client_SSL_CTX(SSL_CTX **ctx_out);
static void disable_SSL_compression(void);
Loading