i dont know why im manually freeing stuff. ohh i know why. because i copypastad
This commit is contained in:
12
Makefile
12
Makefile
@@ -1,4 +1,4 @@
|
||||
.PHONY: all build release run test clean fmt help install
|
||||
.PHONY: all build release run test clean fmt help install sdk_test
|
||||
|
||||
# Project configuration
|
||||
PROJECT_NAME := jormundb
|
||||
@@ -16,6 +16,8 @@ CXX := g++
|
||||
AR := ar
|
||||
CXXFLAGS := -O2 -fPIC -std=c++20 $(INCLUDE_PATH)
|
||||
|
||||
# name of the docker compose file for the python tests
|
||||
SDK_TEST_COMPOSE := docker-compose-python-sdk-test.yaml
|
||||
|
||||
# RocksDB and compression libraries
|
||||
ROCKSDB_LIBS := -lrocksdb -lstdc++ -lsnappy -llz4 -lzstd -lz -lbz2
|
||||
@@ -174,6 +176,13 @@ aws-test: run &
|
||||
--table-name TestTable
|
||||
@echo "\n$(GREEN)✓ AWS CLI test complete$(NC)"
|
||||
|
||||
# Python SDK integration tests (requires JormunDB running on localhost)
|
||||
sdk_test:
|
||||
@echo "$(BLUE)Running Python SDK tests against localhost:$(PORT)...$(NC)"
|
||||
@docker compose -f $(SDK_TEST_COMPOSE) down --remove-orphans 2>/dev/null || true
|
||||
@JORMUN_PORT=$(PORT) docker compose -f $(SDK_TEST_COMPOSE) run --rm --build sdk-test
|
||||
@docker compose -f $(SDK_TEST_COMPOSE) down --remove-orphans 2>/dev/null || true
|
||||
|
||||
# Development workflow
|
||||
dev: clean build run
|
||||
|
||||
@@ -199,6 +208,7 @@ help:
|
||||
@echo "$(GREEN)Test Commands:$(NC)"
|
||||
@echo " make test - Run unit tests"
|
||||
@echo " make aws-test - Test with AWS CLI commands"
|
||||
@echo " make sdk_test - Run Python SDK integration tests (requires running server)"
|
||||
@echo ""
|
||||
@echo "$(GREEN)Utility Commands:$(NC)"
|
||||
@echo " make fmt - Format source code"
|
||||
|
||||
Reference in New Issue
Block a user