Added a test for plug-ins as well
This commit is contained in:
parent
61c0351965
commit
53e20b5667
3
Makefile
3
Makefile
@ -62,6 +62,9 @@ dist:
|
|||||||
$(PACKAGE)-$(VERSION)/tests/library/project.conf \
|
$(PACKAGE)-$(VERSION)/tests/library/project.conf \
|
||||||
$(PACKAGE)-$(VERSION)/tests/library/Makefile.Darwin \
|
$(PACKAGE)-$(VERSION)/tests/library/Makefile.Darwin \
|
||||||
$(PACKAGE)-$(VERSION)/tests/library/Makefile.NetBSD \
|
$(PACKAGE)-$(VERSION)/tests/library/Makefile.NetBSD \
|
||||||
|
$(PACKAGE)-$(VERSION)/tests/plugin/project.conf \
|
||||||
|
$(PACKAGE)-$(VERSION)/tests/plugin/Makefile.Darwin \
|
||||||
|
$(PACKAGE)-$(VERSION)/tests/plugin/Makefile.NetBSD \
|
||||||
$(PACKAGE)-$(VERSION)/tests/project.conf \
|
$(PACKAGE)-$(VERSION)/tests/project.conf \
|
||||||
$(PACKAGE)-$(VERSION)/tools/pkg-config.c \
|
$(PACKAGE)-$(VERSION)/tools/pkg-config.c \
|
||||||
$(PACKAGE)-$(VERSION)/tools/Makefile \
|
$(PACKAGE)-$(VERSION)/tools/Makefile \
|
||||||
|
@ -9,7 +9,7 @@ INSTALL = install
|
|||||||
|
|
||||||
all: $(TARGETS)
|
all: $(TARGETS)
|
||||||
|
|
||||||
tests.log: ../src/configure library/project.conf library/Makefile.Darwin library/Makefile.NetBSD tests.sh
|
tests.log: ../src/configure library/project.conf library/Makefile.Darwin library/Makefile.NetBSD plugin/Makefile.Darwin plugin/Makefile.NetBSD tests.sh
|
||||||
./tests.sh -P "$(PREFIX)" -- "tests.log"
|
./tests.sh -P "$(PREFIX)" -- "tests.log"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
39
tests/plugin/Makefile.Darwin
Normal file
39
tests/plugin/Makefile.Darwin
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
TARGETS = test.dylib
|
||||||
|
PREFIX = /usr/local
|
||||||
|
DESTDIR =
|
||||||
|
LIBDIR = $(PREFIX)/lib
|
||||||
|
AR = ar
|
||||||
|
RANLIB = ranlib
|
||||||
|
CCSHARED= $(CC) -dynamiclib
|
||||||
|
RM = rm -f
|
||||||
|
LN = ln -f
|
||||||
|
MKDIR = mkdir -m 0755 -p
|
||||||
|
INSTALL = install
|
||||||
|
|
||||||
|
|
||||||
|
all: $(TARGETS)
|
||||||
|
|
||||||
|
test_OBJS = test.o
|
||||||
|
test_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
||||||
|
test_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
|
||||||
|
|
||||||
|
test.dylib: $(test_OBJS)
|
||||||
|
$(CCSHARED) -o test.dylib $(test_OBJS) $(test_LDFLAGS)
|
||||||
|
|
||||||
|
test.o: test.c
|
||||||
|
$(CC) $(test_CFLAGS) -c test.c
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(RM) -- $(test_OBJS)
|
||||||
|
|
||||||
|
distclean: clean
|
||||||
|
$(RM) -- $(TARGETS)
|
||||||
|
|
||||||
|
install: $(TARGETS)
|
||||||
|
$(MKDIR) $(DESTDIR)$(LIBDIR)/configure
|
||||||
|
$(INSTALL) -m 0755 test.dylib $(DESTDIR)$(LIBDIR)/configure/test.dylib
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
$(RM) -- $(DESTDIR)$(LIBDIR)/configure/test.dylib
|
||||||
|
|
||||||
|
.PHONY: all clean distclean install uninstall
|
39
tests/plugin/Makefile.NetBSD
Normal file
39
tests/plugin/Makefile.NetBSD
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
TARGETS = test.so
|
||||||
|
PREFIX = /usr/local
|
||||||
|
DESTDIR =
|
||||||
|
LIBDIR = $(PREFIX)/lib
|
||||||
|
AR = ar
|
||||||
|
RANLIB = ranlib
|
||||||
|
CCSHARED= $(CC) -shared
|
||||||
|
RM = rm -f
|
||||||
|
LN = ln -f
|
||||||
|
MKDIR = mkdir -m 0755 -p
|
||||||
|
INSTALL = install
|
||||||
|
|
||||||
|
|
||||||
|
all: $(TARGETS)
|
||||||
|
|
||||||
|
test_OBJS = test.o
|
||||||
|
test_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
||||||
|
test_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
|
||||||
|
|
||||||
|
test.so: $(test_OBJS)
|
||||||
|
$(CCSHARED) -o test.so $(test_OBJS) $(test_LDFLAGS)
|
||||||
|
|
||||||
|
test.o: test.c
|
||||||
|
$(CC) $(test_CFLAGS) -c test.c
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(RM) -- $(test_OBJS)
|
||||||
|
|
||||||
|
distclean: clean
|
||||||
|
$(RM) -- $(TARGETS)
|
||||||
|
|
||||||
|
install: $(TARGETS)
|
||||||
|
$(MKDIR) $(DESTDIR)$(LIBDIR)/configure
|
||||||
|
$(INSTALL) -m 0755 test.so $(DESTDIR)$(LIBDIR)/configure/test.so
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
$(RM) -- $(DESTDIR)$(LIBDIR)/configure/test.so
|
||||||
|
|
||||||
|
.PHONY: all clean distclean install uninstall
|
7
tests/plugin/project.conf
Normal file
7
tests/plugin/project.conf
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
targets=test
|
||||||
|
dist=Makefile
|
||||||
|
|
||||||
|
[test]
|
||||||
|
type=plugin
|
||||||
|
sources=test.c
|
||||||
|
install=$(LIBDIR)/configure
|
@ -1,7 +1,7 @@
|
|||||||
targets=tests.log
|
targets=tests.log
|
||||||
dist=Makefile,tests.sh,library/project.conf,library/Makefile.Darwin,library/Makefile.NetBSD
|
dist=Makefile,tests.sh,library/project.conf,library/Makefile.Darwin,library/Makefile.NetBSD,plugin/project.conf,plugin/Makefile.Darwin,plugin/Makefile.NetBSD
|
||||||
|
|
||||||
[tests.log]
|
[tests.log]
|
||||||
type=script
|
type=script
|
||||||
script=./tests.sh
|
script=./tests.sh
|
||||||
depends=../src/configure,library/project.conf,library/Makefile.Darwin,library/Makefile.NetBSD,tests.sh
|
depends=../src/configure,library/project.conf,library/Makefile.Darwin,library/Makefile.NetBSD,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,tests.sh
|
||||||
|
@ -96,4 +96,6 @@ fi
|
|||||||
target="$1"
|
target="$1"
|
||||||
($DATE
|
($DATE
|
||||||
_fail "Darwin" "library"
|
_fail "Darwin" "library"
|
||||||
_test "NetBSD" "library") > "$target"
|
_test "NetBSD" "library"
|
||||||
|
_test "Darwin" "plugin"
|
||||||
|
_test "NetBSD" "plugin") > "$target"
|
||||||
|
Loading…
Reference in New Issue
Block a user