Put test/simline/server_types.h to distribution
[libisds.git] / test / simline / Makefile.am
blobc205aab6f8b8a4e3320d02d40fe5d5bfa3d00be1
1 AUTOMAKE_OPTIONS = color-tests parallel-tests
2 export VERBOSE=1
4 libdirpath = src
5 LIBDIR = $(top_srcdir)/$(libdirpath)
6 localedir = $(datadir)/locale
8 AM_CPPFLAGS = @XML_CPPFLAGS@
9 AM_CFLAGS = -I$(srcdir)/$(LIBDIR) -DSRCDIR=\"$(top_srcdir)\"
10 LDADD = $(LIBDIR)/libisds.la -L$(LIBDIR) @XML_LIBS@
12 # To fake home dir for gnupg2
13 export HOME=@top_builddir@
15 #TESTS = prepare_environment
16 TESTS =
18 if BUILD_CURL
19 TESTS += basic_authentication hotp_authentication totp_authentication \
20                  isds_change_password hotp_isds_change_password \
21                  totp_isds_change_password \
22                  isds_delete_message_from_storage
23 endif
26 noinst_PROGRAMS = server_cli $(TESTS)
28 server_implementation = ../test.c ../test-tools.h http.c http.h \
29                                                 server.c server.h service.c service.h \
30                                                 services.h server_types.h
32 # Standalone server
33 server_cli_SOURCES = server_cli.c $(server_implementation)
35 # Access public API only
36 common = ../test.h $(server_implementation)
37 basic_authentication_SOURCES = basic_authentication.c $(common)
38 hotp_authentication_SOURCES = hotp_authentication.c $(common)
39 totp_authentication_SOURCES = totp_authentication.c $(common)
40 isds_change_password_SOURCES = isds_change_password.c $(common)
41 hotp_isds_change_password_SOURCES = hotp_isds_change_password.c $(common)
42 totp_isds_change_password_SOURCES = totp_isds_change_password.c $(common)
43 isds_delete_message_from_storage_SOURCES = isds_delete_message_from_storage.c $(common)
45 # Tests that need .gnupg
46 #guess_raw_type.log load_raw.log: prepare_environment.log
47 #prepare_environment_SOURCES = prepare_environment.c $(common)