]> git.draconx.ca Git - upkg.git/blobdiff - Makefile.am
tests: Test some corner cases of upkg_decode_index.
[upkg.git] / Makefile.am
index 7560abc104fc11ce0f108d12023e5c6a52820d09..eb605df6ffd6d46e98a9deaabe4e5ee558fd95da 100644 (file)
@@ -1,7 +1,18 @@
+# Copyright © 2009 Nick Bowler
+#
+# License WTFPL2: Do What The Fuck You Want To Public License, version 2.
+# This is free software: you are free to do what the fuck you want to.
+# There is NO WARRANTY, to the extent permitted by law.
+
+AUTOMAKE_OPTIONS = parallel-tests color-tests
 ACLOCAL_AMFLAGS = -I m4
 
+AM_CPPFLAGS = -I$(top_srcdir)/src
+
 EXTRA_DIST = m4/gnulib-cache.m4
 
+dist_man_MANS = doc/man/upkg.1
+
 DIST_SUBDIRS = libltdl lib src
 SUBDIRS = lib
 
@@ -10,3 +21,13 @@ SUBDIRS += libltdl
 endif
 
 SUBDIRS += src
+
+check_PROGRAMS = test/decodeindex
+test_decodeindex_LDADD = src/libupkg.la lib/libgnu.la
+
+TESTS_ENVIRONMENT = SHELL='$(SHELL)' EXEEXT='$(EXEEXT)'
+TEST_EXTENSIONS = .sh
+SH_LOG_COMPILER = $(SHELL)
+
+TESTS = tests/libupkg-index-decode.sh
+EXTRA_DIST += $(TESTS)