Use read_binary_file to read data, for Windows. Add self-test to test regressions.
[platform/upstream/libtasn1.git] / tests / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation
3 #
4 # This file is part of LIBTASN1.
5 #
6 # This file is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # This file is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 # General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this file; if not, write to the Free Software Foundation,
18 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
20 INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I../gl
21
22 AM_LDFLAGS = -no-install
23 LDADD = ../lib/libtasn1.la
24
25 EXTRA_DIST = Test_parser.asn Test_tree.asn Test_tree_asn1_tab.c \
26         Test_encoding.asn 
27
28 # For crlf.
29 EXTRA_DIST = pkix.asn crlf.cer
30 dist_check_SCRIPTS = crlf
31
32 MOSTLYCLEANFILES = Test_parser_ERROR.asn
33
34 check_PROGRAMS = Test_parser Test_tree Test_encoding
35
36 TESTS = Test_parser Test_tree Test_encoding crlf
37
38 TESTS_ENVIRONMENT = \
39         ASN1PARSER=$(srcdir)/Test_parser.asn \
40         ASN1TREE=$(srcdir)/Test_tree.asn \
41         ASN1ENCODING=$(srcdir)/Test_encoding.asn \
42         $(VALGRIND)