Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
Fix embedded perl tests (thx Shawn Starr)
Browse files Browse the repository at this point in the history
Refs #5545
  • Loading branch information
Michael Friedrich committed Jan 20, 2014
1 parent cf0d20a commit f015624
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions t-tap/Makefile.in
Expand Up @@ -101,6 +101,10 @@ all: $(TESTS)

########## TESTS ##########

perl_ext_stub:
perl -MExtUtils::Embed -e xsinit -- -o xsinit.c -std
$(CC) -c xsinit.c `perl -MExtUtils::Embed -e ccopts`

test_logging: test_logging.o $(SRC_BASE)/logging.o $(TAPOBJ)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)

Expand All @@ -119,19 +123,19 @@ test_downtime: test_downtime.o $(SRC_BASE)/downtime-base.o $(SRC_BASE)/xdowntime
test_freshness: test_freshness.o $(SRC_BASE)/freshness.o $(TAPOBJ)
$(CC) $(CFLAGS) -o $@ $^

test_icinga_config: test_icinga_config.o $(CFG_OBJS) $(TAPOBJ)
$(CC) $(CFLAGS) -o $@ $^ $(BROKER_LDFLAGS) $(LDFLAGS) $(MATHLIBS) $(SOCKETLIBS) $(THREADLIBS) $(BROKERLIBS) $(LIBS)
test_icinga_config: xsinit.o test_icinga_config.o $(CFG_OBJS) $(TAPOBJ)
$(CC) $(CFLAGS) -o $@ $^ $(BROKER_LDFLAGS) $(LDFLAGS) $(MATHLIBS) $(SOCKETLIBS) $(THREADLIBS) $(BROKERLIBS) $(LIBS) $(PERLLIBS)

test_timeperiods: test_timeperiods.o $(TP_OBJS) $(TAPOBJ)
$(CC) $(CFLAGS) -o $@ $^ $(BROKER_LDFLAGS) $(LDFLAGS) $(MATHLIBS) $(SOCKETLIBS) $(THREADLIBS) $(BROKERLIBS) $(LIBS)
test_timeperiods: xsinit.o test_timeperiods.o $(TP_OBJS) $(TAPOBJ)
$(CC) $(CFLAGS) -o $@ $^ $(BROKER_LDFLAGS) $(LDFLAGS) $(MATHLIBS) $(SOCKETLIBS) $(THREADLIBS) $(BROKERLIBS) $(LIBS) $(PERLLIBS)

test_xsddefault: test_xsddefault.o $(XSD_OBJS) $(TAPOBJ)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)

test_strtoul: test_strtoul.c
$(CC) $(CFLAGS) -o $@ test_strtoul.c $(TAPOBJ)

test: $(TESTS)
test: perl_ext_stub $(TESTS)
HARNESS_PERL=./test_each.t perl -MTest::Harness -e '$$Test::Harness::switches=""; runtests(map { "./$$_" } @ARGV)' $(TESTS)

clean:
Expand Down

0 comments on commit f015624

Please sign in to comment.