Skip to content

Commit

Permalink
Move mtu test to integration
Browse files Browse the repository at this point in the history
  • Loading branch information
fatvlady committed Jul 11, 2019
1 parent 1ddac3f commit d4cc302
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions make/tests
Original file line number Diff line number Diff line change
Expand Up @@ -126,24 +126,27 @@ test/test-model-main.cpp:
# a new function is probably missing an inline.
# Templates for such test are prefixed with 'mtu_'.
##
test/unit/mtu_%_1.cpp: src/test/unit/mtu_%.cpp
test/integration/mtu :
mkdir -p test/integration/mtu

test/integration/mtu/%_1.cpp : src/test/integration/mtu/%.cpp test/integration/mtu
cp $< $@
test/unit/mtu_%_2.cpp: src/test/unit/mtu_%.cpp
test/integration/mtu/%_2.cpp : src/test/integration/mtu/%.cpp test/integration/mtu
cp $< $@

ifneq ($(OS),Windows_NT)
test/unit/mtu_%.o : CXXFLAGS += -fPIC
test/integration/mtu/%.o : CXXFLAGS += -fPIC
endif
test/unit/mtu_%.o : O = 0
test/unit/mtu_%.o : mtu_%.cpp
test/integration/mtu/%.o : O = 0
test/integration/mtu/%.o : %.cpp
$(COMPILE.cpp) -pipe -o $(DEV_NULL) -include $^

test/unit/libmtu_%.so : LDFLAGS += -shared
test/integration/libmtu_%.so : LDFLAGS += -shared

test/unit/libmtu_%.so : test/unit/mtu_%_1.o test/unit/mtu_%_2.o $(MPI_TARGETS)
test/integration/libmtu_%.so : test/integration/mtu/%_1.o test/integration/mtu/%_2.o $(MPI_TARGETS)
$(LINK.cpp) $^ $(LDLIBS) $(OUTPUT_OPTION)

test/unit/multiple_translation_units_test$(EXE) : test/unit/libmtu_model.so test/unit/libmtu_mcmc.so
test/integration/multiple_translation_units_test$(EXE) : test/integration/libmtu_model.so test/integration/libmtu_mcmc.so


############################################################
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit d4cc302

Please sign in to comment.