~ubuntu-branches/ubuntu/vivid/nettle/vivid-proposed

« back to all changes in this revision

Viewing changes to testsuite/Makefile.in

  • Committer: Package Import Robot
  • Author(s): Magnus Holmgren
  • Date: 2013-05-04 19:50:28 UTC
  • mfrom: (1.4.6) (3.1.11 experimental)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20130504195028-fp6c9fw1tsm5scwa
Tags: 2.7-1
* New upstream release (Closes: #706081).
* Include watch file improvements from Bart Martens <bartm@debian.org>
  via the QA system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
                    camellia-test.c \
17
17
                    des-test.c des3-test.c des-compat-test.c \
18
18
                    md2-test.c md4-test.c md5-test.c md5-compat-test.c \
19
 
                    memxor-test.c \
 
19
                    memxor-test.c gosthash94-test.c \
20
20
                    ripemd160-test.c \
 
21
                    salsa20-test.c \
21
22
                    sha1-test.c sha224-test.c sha256-test.c \
22
23
                    sha384-test.c sha512-test.c \
 
24
                    sha3-permute-test.c sha3-224-test.c sha3-256-test.c \
 
25
                    sha3-384-test.c sha3-512-test.c \
23
26
                    serpent-test.c twofish-test.c \
24
27
                    knuth-lfib-test.c \
25
 
                    cbc-test.c ctr-test.c gcm-test.c hmac-test.c \
 
28
                    cbc-test.c ctr-test.c gcm-test.c hmac-test.c umac-test.c \
26
29
                    meta-hash-test.c meta-cipher-test.c meta-armor-test.c \
27
 
                    buffer-test.c yarrow-test.c
 
30
                    buffer-test.c yarrow-test.c pbkdf2-test.c
28
31
 
29
32
TS_HOGWEED_SOURCES = sexp-test.c sexp-format-test.c \
30
33
                     rsa2sexp-test.c sexp2rsa-test.c \
31
34
                     bignum-test.c random-prime-test.c \
32
35
                     pkcs1-test.c \
33
36
                     rsa-test.c rsa-encrypt-test.c rsa-keygen-test.c \
34
 
                     dsa-test.c dsa-keygen-test.c
 
37
                     dsa-test.c dsa-keygen-test.c \
 
38
                     ecc-mod-test.c ecc-modinv-test.c ecc-redc-test.c \
 
39
                     ecc-mul-g-test.c ecc-mul-a-test.c \
 
40
                     ecdsa-sign-test.c ecdsa-verify-test.c ecdsa-keygen-test.c
35
41
 
36
 
TS_SOURCES = $(TS_NETTLE_SOURCES) @IF_HOGWEED@ $(TS_HOGWEED_SOURCES)
 
42
TS_SOURCES = $(TS_NETTLE_SOURCES) $(TS_HOGWEED_SOURCES)
 
43
CXX_SOURCES = cxx-test.cxx
37
44
 
38
45
TS_NETTLE = $(TS_NETTLE_SOURCES:.c=$(EXEEXT))
39
46
TS_HOGWEED = $(TS_HOGWEED_SOURCES:.c=$(EXEEXT))
40
47
TS_C = $(TS_NETTLE) @IF_HOGWEED@ $(TS_HOGWEED)
41
 
TS_CXX = @CXX_TESTS@
 
48
TS_CXX = @IF_CXX@ $(CXX_SOURCES:.cxx=$(EXEEXT))
42
49
TARGETS = $(TS_C) $(TS_CXX)
43
50
TS_SH = sexp-conv-test pkcs1-conv-test symbols-test
44
51
TS_ALL = $(TARGETS) $(TS_SH)
45
52
EXTRA_SOURCES = sha1-huge-test.c
46
53
EXTRA_TARGETS = $(EXTRA_SOURCES:.c=$(EXEEXT))
47
54
 
48
 
SOURCES = $(TS_SOURCES) testutils.c
 
55
# Includes all C source files, regardless of configuration
 
56
SOURCES = $(TS_SOURCES) $(EXTRA_SOURCES) testutils.c
49
57
 
50
 
DISTFILES = $(SOURCES) $(EXTRA_SOURCES) cxx-test.cxx Makefile.in .test-rules.make \
51
 
        $(TS_SH) run-tests teardown-env \
52
 
        gold-bug.txt testutils.h
 
58
DISTFILES = $(SOURCES) $(CXX_SOURCES) Makefile.in .test-rules.make \
 
59
            $(TS_SH) setup-env teardown-env \
 
60
            gold-bug.txt testutils.h sha3.awk
53
61
 
54
62
all: $(TARGETS) $(EXTRA_TARGETS)
55
63
 
66
74
# explicit rule for each and every executable.
67
75
 
68
76
LIB_HOGWEED = @IF_HOGWEED@ -lhogweed
69
 
TEST_OBJS = testutils.$(OBJEXT) $(LIB_HOGWEED) -lnettle $(LIBS)
 
77
TEST_OBJS = testutils.$(OBJEXT) ../nettle-internal.$(OBJEXT) \
 
78
            $(LIB_HOGWEED) -lnettle $(LIBS)
 
79
 
 
80
../nettle-internal.$(OBJEXT):
 
81
        ( cd .. && $(MAKE) nettle-internal.$(OBJEXT) )
70
82
 
71
83
.PHONY: test-rules
72
84
test-rules:
83
95
 
84
96
include $(srcdir)/.test-rules.make
85
97
 
86
 
$(TARGETS) $(EXTRA_TARGETS): testutils.$(OBJEXT) \
 
98
$(TARGETS) $(EXTRA_TARGETS): testutils.$(OBJEXT) ../nettle-internal.$(OBJEXT) \
87
99
        ../libnettle.a @IF_HOGWEED@ ../libhogweed.a
88
100
 
 
101
# For use as, e.g.,
 
102
#
 
103
#   make check EMULATOR='$(VALGRIND)'
 
104
#   make check EMULATOR='$(VALGRIND) --log-fd=3' 3>valgrind.log
 
105
 
 
106
VALGRIND = valgrind --error-exitcode=1 --leak-check=full --show-reachable=yes
 
107
 
89
108
# The PATH update is for locating dlls on w*ndows.
90
 
check: $(TS_ALL) $(srcdir)/run-tests
 
109
check: $(TS_ALL)
91
110
        LD_LIBRARY_PATH=../.lib PATH="../.lib:$$PATH" srcdir="$(srcdir)" \
92
 
          $(srcdir)/run-tests $(TS_ALL)
 
111
          EMULATOR="$(EMULATOR)" NM="$(NM)" EXEEXT="$(EXEEXT)" \
 
112
          $(top_srcdir)/run-tests $(TS_ALL)
93
113
 
94
114
 
95
115
Makefile: $(srcdir)/Makefile.in ../config.status
110
130
tags:
111
131
        etags -o $(srcdir)/TAGS --include $(top_srcdir) $(srcdir)/*.c $(srcdir)/*.h
112
132
 
113
 
@DEP_INCLUDE@ $(SOURCES:.c=.$(OBJEXT).d)
 
133
# Includes dependency files for everything, including objects which
 
134
# the current configuration will not build.
 
135
DEP_FILES = $(SOURCES:.c=.$(OBJEXT).d) $(CXX_SOURCES:.cxx=.$(OBJEXT).d)
 
136
@DEP_INCLUDE@ $(DEP_FILES)