summaryrefslogtreecommitdiff
path: root/test/Makefile.am
blob: 4df3a7ece05b125183eae3372181bfe5645a7bfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
AM_CFLAGS =-DFAKE_SLEEP

AM_LDFLAGS =

bin_PROGRAMS = timetest
timetest_SOURCES = timetest.c

if SOLARIS
  AM_CFLAGS += -D__EXTENSIONS__ -D_XOPEN_SOURCE=600
  AM_LDFLAGS += -Wl,--version-script=libfaketime.map
endif
if !MACOS
  AM_CFLAGS += -std=gnu99 -Wall -Wextra -Werror -DFAKE_STAT -DFAKE_PTHREAD -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC  -Wno-nonnull-compare
  timetest_LDADD = -ldl -lm -lrt -lpthread
endif

test: timetest functest
	@echo
	@./test.sh
#
# run functional tests
functest:
	./testframe.sh functests