Skip to contentSkip to conversation

master - [build] include test/unit/Makefile rather than recursive build

PATCH David Teigland 1 participant 1 message Apr 23, 2018 Kbuild

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=8ae3b244fcbc207b51a81514e51008fe64d13368
Commit:        8ae3b244fcbc207b51a81514e51008fe64d13368
Parent:        b03e55a5130ffdf6be9188b227c59e6793dc0dfc
Author:        Joe Thornber <[email protected]>
AuthorDate:    Fri Feb 2 15:39:17 2018 +0000
Committer:     David Teigland <[email protected]>
CommitterDate: Fri Apr 20 11:12:50 2018 -0500

[build] include test/unit/Makefile rather than recursive build

FIXME: unit tests are not currently run as part of make check.

---
 Makefile.in           |   23 +------------------
 test/Makefile.in      |    2 +-
 test/unit/Makefile.in |   58 ++++++++++++++++---------------------------------
 3 files changed, 21 insertions(+), 62 deletions(-)
Makefile.in +1 -22
index 31d428d..146ed55 100644
@@ -212,28 +212,7 @@ endif
 endif
 
 ifeq ("$(TESTING)", "yes")
-# testing and report generation
-RUBY=ruby1.9 -Ireport-generators/lib -Ireport-generators/test
-
-.PHONY: unit-test ruby-test test-programs
-
-# FIXME: put dependencies on libdm and liblvm
-# FIXME: Should be handled by Makefiles in subdirs, not here at top level.
-test-programs:
-	cd unit-tests/regex && $(MAKE)
-	cd unit-tests/datastruct && $(MAKE)
-	cd unit-tests/mm && $(MAKE)
-
-unit-test: test-programs
-	$(RUBY) report-generators/unit_test.rb $(shell find . -name TESTS)
-	$(RUBY) report-generators/title_page.rb
-
-memcheck: test-programs
-	$(RUBY) report-generators/memcheck.rb $(shell find . -name TESTS)
-	$(RUBY) report-generators/title_page.rb
-
-ruby-test:
-	$(RUBY) report-generators/test/ts.rb
+include test/unit/Makefile
 endif
 
 ifneq ($(shell which ctags),)
test/Makefile.in +1 -1
index 230ce5b..097b2fa 100644
@@ -27,7 +27,7 @@ datarootdir = @datarootdir@
 
 LVM_TEST_RESULTS ?= results
 
-SUBDIRS = api unit
+SUBDIRS = api
 SOURCES = lib/not.c lib/harness.c
 CXXSOURCES = lib/runner.cpp
 CXXFLAGS += $(EXTRA_EXEC_CFLAGS)
test/unit/Makefile.in +19 -39

67 lines not on this page · raw message