File tree Expand file tree Collapse file tree 9 files changed +1
-182
lines changed
Expand file tree Collapse file tree 9 files changed +1
-182
lines changed Original file line number Diff line number Diff line change @@ -139,11 +139,6 @@ commands:
139139 - run :
140140 name : Build
141141 command : make -C opt all SHOW=1
142- - run :
143- name : Unit Tests
144- command : |
145- make -C opt unit_tests SHOW=1
146- no_output_timeout : 5m
147142 - run :
148143 name : Test
149144 command : |
Original file line number Diff line number Diff line change 11[submodule "opt/readies "]
22 path = opt/readies
33 url = https://github.com/RedisLabsModules/readies.git
4- [submodule "opt/googletest "]
5- path = opt/googletest
6- url = https://github.com/google/googletest.git
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ PROJECT(RedisAI)
33
44# CMake modules should be included in ${PROJECT_SOURCE_DIR}/opt/cmake/modules
55list (APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR} /opt/cmake/modules)
6- list (APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR} /opt/GoogleTest)
76
87# Set a default build type if none was specified
98set (default_build_type "Release" )
@@ -50,7 +49,6 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${CMAKE_COMMON_FLAGS_DEBUG}"
5049
5150#----------------------------------------------------------------------------------------------
5251
53- option (PACKAGE_UNIT_TESTS "Build unit tests" ON )
5452option (BUILD_TF "Build the TensorFlow backend" ON )
5553option (BUILD_TFLITE "Build the TensorFlow Lite backend" ON )
5654option (BUILD_ORT "Build the ONNXRuntime backend" ON )
@@ -321,10 +319,3 @@ ENDIF()
321319IF (NOT ${installAbs} STREQUAL ${CMAKE_SOURCE_DIR} /install -${DEVICE} )
322320 INSTALL_SYMLINK(${installAbs} ${CMAKE_SOURCE_DIR} /install -${DEVICE} )
323321ENDIF ()
324-
325-
326- if (PACKAGE_UNIT_TESTS)
327- enable_testing ()
328- include (GoogleTest)
329- add_subdirectory (tests/unit)
330- endif ()
Original file line number Diff line number Diff line change @@ -41,10 +41,7 @@ make clean # remove build artifacts
4141 ALL=1 # remove entire artifacts directory
4242make install # create ready-to-run scheme (module and engines)
4343
44- make test # run test suites (flow an unit)
45- # same as running make unit_tests flow_tests
46-
47- make unit_tests # run unit test
44+ make test # run test suites (flow)
4845
4946make flow_tests # run flow test
5047 TEST=test # run only test `test` with Redis output
@@ -242,13 +239,6 @@ export GEN ?= 1
242239export SLAVES ?= 1
243240export CLUSTER ?= 1
244241
245- define UNIT_TESTS
246- $(SHOW ) echo Running unit tests ...
247- $(SHOW ) \
248- BINDIR=$(realpath $(BINDIR ) ) \
249- $(ROOT ) /tests/unit/tests.sh
250- endef
251-
252242define FLOW_TESTS
253243$(SHOW ) echo Running flow tests ...
254244$(SHOW ) \
@@ -260,11 +250,6 @@ VALGRIND=$(VALGRIND) \
260250$(ROOT ) /tests/flow/tests_setup/tests.sh
261251endef
262252
263- unit_tests : build
264- $(COVERAGE_RESET )
265- $(UNIT_TESTS )
266- $(COVERAGE_COLLECT_REPORT )
267-
268253flow_tests : build
269254 $(COVERAGE_RESET )
270255 $(SHOW ) \
@@ -280,10 +265,6 @@ flow_tests: build
280265
281266test : build
282267 $(COVERAGE_RESET )
283- $(UNIT_TESTS )
284- $(SHOW ) \
285- BINDIR=$(realpath $(BINDIR ) ) \
286- $(ROOT ) /tests/unit/tests.sh
287268 $(SHOW ) \
288269 DEVICE=$(DEVICE ) \
289270 MODULE=$(realpath $(INSTALLED_TARGET ) ) \
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments