mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
Remove build for unit tests.
Currently no utility has unit tests, only integration tests.
This commit is contained in:
parent
c0251d8f19
commit
d6039c1b22
1 changed files with 1 additions and 7 deletions
8
Makefile
8
Makefile
|
@ -168,11 +168,6 @@ test_integration_$(1): build_exe_$(1)
|
||||||
${CARGO} test --test $(1) --features $(1) --no-default-features
|
${CARGO} test --test $(1) --features $(1) --no-default-features
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define TEST_UNIT
|
|
||||||
test_unit_$(1):
|
|
||||||
${CARGO} test -p $(1)
|
|
||||||
endef
|
|
||||||
|
|
||||||
# Output names
|
# Output names
|
||||||
EXES := \
|
EXES := \
|
||||||
$(sort $(filter $(BUILD),$(filter-out $(DONT_BUILD),$(PROGS))))
|
$(sort $(filter $(BUILD),$(filter-out $(DONT_BUILD),$(PROGS))))
|
||||||
|
@ -213,9 +208,8 @@ build-uutils: $(addprefix build_exe_,$(EXES))
|
||||||
build: build-uutils
|
build: build-uutils
|
||||||
|
|
||||||
$(foreach test,$(TESTS),$(eval $(call TEST_INTEGRATION,$(test))))
|
$(foreach test,$(TESTS),$(eval $(call TEST_INTEGRATION,$(test))))
|
||||||
$(foreach test,$(TESTS),$(eval $(call TEST_UNIT,$(test))))
|
|
||||||
|
|
||||||
test: $(addprefix test_integration_,$(TESTS)) $(addprefix test_unit_,$(TESTS))
|
test: $(addprefix test_integration_,$(TESTS))
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) -rf $(BUILDDIR)
|
$(RM) -rf $(BUILDDIR)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue