Skip to content

Commit

Permalink
test Cli
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui committed Jan 28, 2025
1 parent 2b82333 commit 4475a96
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ SRCS := $(shell find src -name '*.cc')
OBJS := $(patsubst src/%,$(O)/%,$(SRCS:.cc=.o))
DEPS := $(OBJS:.o=.d)

UNITTEST_SRCS := src/BuildConfig.cc src/Algos.cc src/Semver.cc src/VersionReq.cc src/Manifest.cc
UNITTEST_SRCS := src/BuildConfig.cc src/Algos.cc src/Semver.cc src/VersionReq.cc src/Manifest.cc src/Cli.cc
UNITTEST_OBJS := $(patsubst src/%,$(O)/tests/test_%,$(UNITTEST_SRCS:.cc=.o))
UNITTEST_BINS := $(UNITTEST_OBJS:.o=)
UNITTEST_DEPS := $(UNITTEST_OBJS:.o=.d)
Expand Down Expand Up @@ -88,6 +88,7 @@ test: $(UNITTEST_BINS)
@$(O)/tests/test_Semver
@$(O)/tests/test_VersionReq
@$(O)/tests/test_Manifest
@$(O)/tests/test_Cli

$(O)/tests/test_%.o: src/%.cc $(GIT_DEPS)
$(MKDIR_P) $(@D)
Expand Down Expand Up @@ -118,6 +119,10 @@ $(O)/tests/test_Manifest: $(O)/tests/test_Manifest.o $(O)/TermColor.o \
$(O)/Git2/Object.o $(O)/Command.o
$(CXX) $(CXXFLAGS) $^ $(LIBS) $(LDFLAGS) -o $@

$(O)/tests/test_Cli: $(O)/tests/test_Cli.o $(O)/Algos.o $(O)/TermColor.o \
$(O)/Command.o
$(CXX) $(CXXFLAGS) $^ $(LIBS) $(LDFLAGS) -o $@


tidy: $(TIDY_TARGETS)

Expand Down

0 comments on commit 4475a96

Please sign in to comment.