Commit Kyua/ATF test suite for libxbps.

This commit is contained in:
Juan RP
2012-03-12 15:23:04 +01:00
parent 35c2e2a75d
commit d4f623e7e7
33 changed files with 1233 additions and 29 deletions

29
mk/test.mk Normal file
View File

@@ -0,0 +1,29 @@
-include $(TOPDIR)/config.mk
OBJS ?= main.o
.PHONY: all
all: $(TEST)
.PHONY: clean
clean:
-rm -f $(TEST) $(OBJS)
.PHONY: install
install: all
install -d $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)
install -m755 $(TEST) $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)
.PHONY: uninstall
uninstall:
-rm -f $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)/$(TEST)
%.o: %.c
@printf " [CC]\t\t$@\n"
${SILENT}$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
$(TEST): $(OBJS)
@printf " [CCLD]\t\t$@\n"
${SILENT}$(CC) $^ $(CPPFLAGS) -L$(TOPDIR)/lib $(CFLAGS) \
$(PROG_CFLAGS) -lprop -lxbps -latf-c -o $@