Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion code/CoverageB.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#pragma once
#ifndef COVERAGE_B_H
#define COVERAGE_B_H

Expand Down
1 change: 0 additions & 1 deletion code/CoverageExJustify.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#pragma once
#ifndef COVERAGE_EX_JUSTIFY_H
#define COVERAGE_EX_JUSTIFY_H

Expand Down
1 change: 0 additions & 1 deletion code/CoverageExSkip.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#pragma once
#ifndef COVERAGE_EX_SKIP_H
#define COVERAGE_EX_SKIP_H

Expand Down
1 change: 0 additions & 1 deletion code/CoverageFD_SET.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#pragma once
#ifndef COVERAGE_FD_SET_H
#define COVERAGE_FD_SET_H

Expand Down
3 changes: 1 addition & 2 deletions code/CoverageHead.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#pragma once
#ifndef COVERAGE_HEAD_H
#define COVERAGE_HEAD_H

Expand Down Expand Up @@ -41,7 +40,7 @@ class CoverageHead
~CoverageHead()
{
if (mData != nullptr) delete[] mData;
}
}

// full coverage
// b true / false
Expand Down
1 change: 0 additions & 1 deletion code/CoverageMacro.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

#pragma once
#ifndef COVERAGE_MACRO_H
#define COVERAGE_MACRO_H

Expand Down
1 change: 0 additions & 1 deletion code/CoverageMcpp.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#pragma once
#ifndef COVERAGE_MCPP_H
#define COVERAGE_MCPP_H

Expand Down
1 change: 0 additions & 1 deletion code/CoverageNotInc.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#pragma once
#ifndef COVERAGE_NOT_INC_H
#define COVERAGE_NOT_INC_H

Expand Down
1 change: 0 additions & 1 deletion code/CoverageSrc.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#pragma once
#ifndef COVERAGE_SRC_H
#define COVERAGE_SRC_H

Expand Down
1 change: 0 additions & 1 deletion code/CoverageTpl.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#pragma once
#ifndef COVERAGE_TPL_H
#define COVERAGE_TPL_H

Expand Down
1 change: 0 additions & 1 deletion code/SomeEnum.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#pragma once
#ifndef SOME_ENUM_H
#define SOME_ENUM_H

Expand Down
2 changes: 0 additions & 2 deletions code/SomeStruct.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#pragma once

#ifndef SOME_STRUCT_H
#define SOME_STRUCT_H

Expand Down
27 changes: 18 additions & 9 deletions make/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,65 +17,72 @@ ifeq ($(config),ci)
Test_FD_SET_Macro_config = ci
Test_Macro_config = ci
Test_Mod_Cpp_config = ci
testlib_config = ci

else
$(error "invalid configuration $(config)")
endif

PROJECTS := Test_Standard Test_Standard_Part Test_B_Macro Test_Count Test_Exclude Test_FD_SET_Macro Test_Macro Test_Mod_Cpp
PROJECTS := Test_Standard Test_Standard_Part Test_B_Macro Test_Count Test_Exclude Test_FD_SET_Macro Test_Macro Test_Mod_Cpp testlib

.PHONY: all clean help $(PROJECTS)

all: $(PROJECTS)

Test_Standard:
Test_Standard: testlib
ifneq (,$(Test_Standard_config))
@echo "==== Building Test_Standard ($(Test_Standard_config)) ===="
@${MAKE} --no-print-directory -C . -f Test_Standard.make config=$(Test_Standard_config)
endif

Test_Standard_Part:
Test_Standard_Part: testlib
ifneq (,$(Test_Standard_Part_config))
@echo "==== Building Test_Standard_Part ($(Test_Standard_Part_config)) ===="
@${MAKE} --no-print-directory -C . -f Test_Standard_Part.make config=$(Test_Standard_Part_config)
endif

Test_B_Macro:
Test_B_Macro: testlib
ifneq (,$(Test_B_Macro_config))
@echo "==== Building Test_B_Macro ($(Test_B_Macro_config)) ===="
@${MAKE} --no-print-directory -C . -f Test_B_Macro.make config=$(Test_B_Macro_config)
endif

Test_Count:
Test_Count: testlib
ifneq (,$(Test_Count_config))
@echo "==== Building Test_Count ($(Test_Count_config)) ===="
@${MAKE} --no-print-directory -C . -f Test_Count.make config=$(Test_Count_config)
endif

Test_Exclude:
Test_Exclude: testlib
ifneq (,$(Test_Exclude_config))
@echo "==== Building Test_Exclude ($(Test_Exclude_config)) ===="
@${MAKE} --no-print-directory -C . -f Test_Exclude.make config=$(Test_Exclude_config)
endif

Test_FD_SET_Macro:
Test_FD_SET_Macro: testlib
ifneq (,$(Test_FD_SET_Macro_config))
@echo "==== Building Test_FD_SET_Macro ($(Test_FD_SET_Macro_config)) ===="
@${MAKE} --no-print-directory -C . -f Test_FD_SET_Macro.make config=$(Test_FD_SET_Macro_config)
endif

Test_Macro:
Test_Macro: testlib
ifneq (,$(Test_Macro_config))
@echo "==== Building Test_Macro ($(Test_Macro_config)) ===="
@${MAKE} --no-print-directory -C . -f Test_Macro.make config=$(Test_Macro_config)
endif

Test_Mod_Cpp:
Test_Mod_Cpp: testlib
ifneq (,$(Test_Mod_Cpp_config))
@echo "==== Building Test_Mod_Cpp ($(Test_Mod_Cpp_config)) ===="
@${MAKE} --no-print-directory -C . -f Test_Mod_Cpp.make config=$(Test_Mod_Cpp_config)
endif

testlib:
ifneq (,$(testlib_config))
@echo "==== Building testlib ($(testlib_config)) ===="
@${MAKE} --no-print-directory -C . -f testlib.make config=$(testlib_config)
endif

clean:
@${MAKE} --no-print-directory -C . -f Test_Standard.make clean
@${MAKE} --no-print-directory -C . -f Test_Standard_Part.make clean
Expand All @@ -85,6 +92,7 @@ clean:
@${MAKE} --no-print-directory -C . -f Test_FD_SET_Macro.make clean
@${MAKE} --no-print-directory -C . -f Test_Macro.make clean
@${MAKE} --no-print-directory -C . -f Test_Mod_Cpp.make clean
@${MAKE} --no-print-directory -C . -f testlib.make clean

help:
@echo "Usage: make [config=name] [target]"
Expand All @@ -103,5 +111,6 @@ help:
@echo " Test_FD_SET_Macro"
@echo " Test_Macro"
@echo " Test_Mod_Cpp"
@echo " testlib"
@echo ""
@echo "For more information, see https://github.com/premake/premake-core/wiki"
16 changes: 3 additions & 13 deletions make/Test_B_Macro.make
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ ALL_CPPFLAGS += $(CPPFLAGS) -MD -MP $(DEFINES) $(INCLUDES)
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -std=c++17 -pedantic-errors -D_COVERAGE_ON
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -std=c++17 -pedantic-errors -D_COVERAGE_ON
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
LIBS +=
LDDEPS +=
ALL_LDFLAGS += $(LDFLAGS) -s
LIBS += ../build/linux/lib/libtestlib.a
LDDEPS += ../build/linux/lib/libtestlib.a
ALL_LDFLAGS += $(LDFLAGS) -L../build/linux/lib -s
LINKCMD = $(CXX) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
define PREBUILDCMDS
endef
Expand All @@ -51,11 +51,7 @@ GENERATED :=
OBJECTS :=

GENERATED += $(OBJDIR)/Test_B_Macro.o
GENERATED += $(OBJDIR)/testMain.o
GENERATED += $(OBJDIR)/testlib.o
OBJECTS += $(OBJDIR)/Test_B_Macro.o
OBJECTS += $(OBJDIR)/testMain.o
OBJECTS += $(OBJDIR)/testlib.o

# Rules
# #############################################
Expand Down Expand Up @@ -119,12 +115,6 @@ endif
# File Rules
# #############################################

$(OBJDIR)/testMain.o: ../testlib/testMain.cpp
@echo "$(notdir $<)"
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
$(OBJDIR)/testlib.o: ../testlib/testlib.cpp
@echo "$(notdir $<)"
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
$(OBJDIR)/Test_B_Macro.o: ../tests/Test_B_Macro.cpp
@echo "$(notdir $<)"
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
Expand Down
16 changes: 3 additions & 13 deletions make/Test_Count.make
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ ALL_CPPFLAGS += $(CPPFLAGS) -MD -MP $(DEFINES) $(INCLUDES)
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -std=c++17 -pedantic-errors -D_COVERAGE_ON
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -std=c++17 -pedantic-errors -D_COVERAGE_ON
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
LIBS +=
LDDEPS +=
ALL_LDFLAGS += $(LDFLAGS) -s
LIBS += ../build/linux/lib/libtestlib.a
LDDEPS += ../build/linux/lib/libtestlib.a
ALL_LDFLAGS += $(LDFLAGS) -L../build/linux/lib -s
LINKCMD = $(CXX) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
define PREBUILDCMDS
endef
Expand All @@ -51,11 +51,7 @@ GENERATED :=
OBJECTS :=

GENERATED += $(OBJDIR)/Test_Count.o
GENERATED += $(OBJDIR)/testMain.o
GENERATED += $(OBJDIR)/testlib.o
OBJECTS += $(OBJDIR)/Test_Count.o
OBJECTS += $(OBJDIR)/testMain.o
OBJECTS += $(OBJDIR)/testlib.o

# Rules
# #############################################
Expand Down Expand Up @@ -119,12 +115,6 @@ endif
# File Rules
# #############################################

$(OBJDIR)/testMain.o: ../testlib/testMain.cpp
@echo "$(notdir $<)"
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
$(OBJDIR)/testlib.o: ../testlib/testlib.cpp
@echo "$(notdir $<)"
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
$(OBJDIR)/Test_Count.o: ../tests/Test_Count.cpp
@echo "$(notdir $<)"
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
Expand Down
16 changes: 3 additions & 13 deletions make/Test_Exclude.make
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ ALL_CPPFLAGS += $(CPPFLAGS) -MD -MP $(DEFINES) $(INCLUDES)
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -std=c++17 -pedantic-errors -D_COVERAGE_ON
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -std=c++17 -pedantic-errors -D_COVERAGE_ON
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
LIBS +=
LDDEPS +=
ALL_LDFLAGS += $(LDFLAGS) -s
LIBS += ../build/linux/lib/libtestlib.a
LDDEPS += ../build/linux/lib/libtestlib.a
ALL_LDFLAGS += $(LDFLAGS) -L../build/linux/lib -s
LINKCMD = $(CXX) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
define PREBUILDCMDS
endef
Expand All @@ -51,11 +51,7 @@ GENERATED :=
OBJECTS :=

GENERATED += $(OBJDIR)/Test_Exclude.o
GENERATED += $(OBJDIR)/testMain.o
GENERATED += $(OBJDIR)/testlib.o
OBJECTS += $(OBJDIR)/Test_Exclude.o
OBJECTS += $(OBJDIR)/testMain.o
OBJECTS += $(OBJDIR)/testlib.o

# Rules
# #############################################
Expand Down Expand Up @@ -119,12 +115,6 @@ endif
# File Rules
# #############################################

$(OBJDIR)/testMain.o: ../testlib/testMain.cpp
@echo "$(notdir $<)"
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
$(OBJDIR)/testlib.o: ../testlib/testlib.cpp
@echo "$(notdir $<)"
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
$(OBJDIR)/Test_Exclude.o: ../tests/Test_Exclude.cpp
@echo "$(notdir $<)"
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
Expand Down
16 changes: 3 additions & 13 deletions make/Test_FD_SET_Macro.make
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ ALL_CPPFLAGS += $(CPPFLAGS) -MD -MP $(DEFINES) $(INCLUDES)
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -std=c++17 -pedantic-errors -D_COVERAGE_ON
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -std=c++17 -pedantic-errors -D_COVERAGE_ON
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
LIBS +=
LDDEPS +=
ALL_LDFLAGS += $(LDFLAGS) -s
LIBS += ../build/linux/lib/libtestlib.a
LDDEPS += ../build/linux/lib/libtestlib.a
ALL_LDFLAGS += $(LDFLAGS) -L../build/linux/lib -s
LINKCMD = $(CXX) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
define PREBUILDCMDS
endef
Expand All @@ -51,11 +51,7 @@ GENERATED :=
OBJECTS :=

GENERATED += $(OBJDIR)/Test_FD_SET_Macro.o
GENERATED += $(OBJDIR)/testMain.o
GENERATED += $(OBJDIR)/testlib.o
OBJECTS += $(OBJDIR)/Test_FD_SET_Macro.o
OBJECTS += $(OBJDIR)/testMain.o
OBJECTS += $(OBJDIR)/testlib.o

# Rules
# #############################################
Expand Down Expand Up @@ -119,12 +115,6 @@ endif
# File Rules
# #############################################

$(OBJDIR)/testMain.o: ../testlib/testMain.cpp
@echo "$(notdir $<)"
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
$(OBJDIR)/testlib.o: ../testlib/testlib.cpp
@echo "$(notdir $<)"
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
$(OBJDIR)/Test_FD_SET_Macro.o: ../tests/Test_FD_SET_Macro.cpp
@echo "$(notdir $<)"
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
Expand Down
16 changes: 3 additions & 13 deletions make/Test_Macro.make
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ ALL_CPPFLAGS += $(CPPFLAGS) -MD -MP $(DEFINES) $(INCLUDES)
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -std=c++17 -pedantic-errors -D_COVERAGE_ON
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -std=c++17 -pedantic-errors -D_COVERAGE_ON
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
LIBS +=
LDDEPS +=
ALL_LDFLAGS += $(LDFLAGS) -s
LIBS += ../build/linux/lib/libtestlib.a
LDDEPS += ../build/linux/lib/libtestlib.a
ALL_LDFLAGS += $(LDFLAGS) -L../build/linux/lib -s
LINKCMD = $(CXX) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
define PREBUILDCMDS
endef
Expand All @@ -52,12 +52,8 @@ OBJECTS :=

GENERATED += $(OBJDIR)/CoverageMacro.o
GENERATED += $(OBJDIR)/Test_Macro.o
GENERATED += $(OBJDIR)/testMain.o
GENERATED += $(OBJDIR)/testlib.o
OBJECTS += $(OBJDIR)/CoverageMacro.o
OBJECTS += $(OBJDIR)/Test_Macro.o
OBJECTS += $(OBJDIR)/testMain.o
OBJECTS += $(OBJDIR)/testlib.o

# Rules
# #############################################
Expand Down Expand Up @@ -124,12 +120,6 @@ endif
$(OBJDIR)/CoverageMacro.o: ../code/CoverageMacro.cpp
@echo "$(notdir $<)"
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
$(OBJDIR)/testMain.o: ../testlib/testMain.cpp
@echo "$(notdir $<)"
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
$(OBJDIR)/testlib.o: ../testlib/testlib.cpp
@echo "$(notdir $<)"
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
$(OBJDIR)/Test_Macro.o: ../tests/Test_Macro.cpp
@echo "$(notdir $<)"
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
Expand Down
16 changes: 3 additions & 13 deletions make/Test_Mod_Cpp.make
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ ALL_CPPFLAGS += $(CPPFLAGS) -MD -MP $(DEFINES) $(INCLUDES)
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -std=c++17 -pedantic-errors -D_COVERAGE_ON
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -std=c++17 -pedantic-errors -D_COVERAGE_ON
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
LIBS +=
LDDEPS +=
ALL_LDFLAGS += $(LDFLAGS) -s
LIBS += ../build/linux/lib/libtestlib.a
LDDEPS += ../build/linux/lib/libtestlib.a
ALL_LDFLAGS += $(LDFLAGS) -L../build/linux/lib -s
LINKCMD = $(CXX) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
define PREBUILDCMDS
endef
Expand All @@ -51,11 +51,7 @@ GENERATED :=
OBJECTS :=

GENERATED += $(OBJDIR)/Test_Mod_Cpp.o
GENERATED += $(OBJDIR)/testMain.o
GENERATED += $(OBJDIR)/testlib.o
OBJECTS += $(OBJDIR)/Test_Mod_Cpp.o
OBJECTS += $(OBJDIR)/testMain.o
OBJECTS += $(OBJDIR)/testlib.o

# Rules
# #############################################
Expand Down Expand Up @@ -119,12 +115,6 @@ endif
# File Rules
# #############################################

$(OBJDIR)/testMain.o: ../testlib/testMain.cpp
@echo "$(notdir $<)"
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
$(OBJDIR)/testlib.o: ../testlib/testlib.cpp
@echo "$(notdir $<)"
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
$(OBJDIR)/Test_Mod_Cpp.o: ../tests/Test_Mod_Cpp.cpp
@echo "$(notdir $<)"
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
Expand Down
Loading
Loading