From 16884e04da44ce279ec7eff8f919925ba63f9c55 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 08 Sep 2012 18:39:15 -0400 Subject: Add support for unit tests to build system. --- diff --git a/Makefile.in b/Makefile.in index 6a60981..db23443 100644 --- a/Makefile.in +++ b/Makefile.in @@ -87,6 +87,10 @@ uninstall: @printf 'Uninstalling manual pages...\n' @cd man && $(MAKE) $(MACROS) uninstall +test: + @printf 'Running tests...\n' + @cd tests & $(MAKE) test + $(distdir): @mkdir -p '$(distdir)' @cp -pR $(distfiles) '$(distdir)' diff --git a/tests/Makefile.in b/tests/Makefile.in new file mode 100644 index 0000000..d686b66 --- /dev/null +++ b/tests/Makefile.in @@ -0,0 +1,33 @@ +# opkbuild +# Makefile.in +# Input Makefile for configure. +# +# Copyright (C) 2012 Patrick "P. J." McDermott +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +package_name = @package_name@ +package_version= @package_version@ + +SH = @sh@ + +.SUFFIXES: + +TESTS = + +test: $(TESTS) + +$(TESTS): + @printf ' SH tests/%s.sh\n' '$@' + @$(SH) 'tests/$@.sh' -- cgit v0.9.1