diff options
author | P. J. McDermott <pjm@nac.net> | 2012-10-10 22:24:45 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-10-10 22:24:45 (EDT) |
commit | 914a7ea66b1b6ea4f90d9d2522718acd1a440675 (patch) | |
tree | f8c547afad98bf51ae28b9500887374e579b74f7 | |
parent | 3c9999c311e006c591d6d1c412ff7b9eb18c217f (diff) |
Include tests in opkbuild distribution archive.
-rw-r--r-- | Makefile.in | 1 | ||||
-rw-r--r-- | tests/Makefile.in | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in index b487d96..a1feec9 100644 --- a/Makefile.in +++ b/Makefile.in @@ -113,6 +113,7 @@ $(distdir): @cd lib/metadata && $(MAKE) '../../$(distdir)/lib/metadata' @cd locale && $(MAKE) '../$(distdir)/locale' @cd man && $(MAKE) '../$(distdir)/man' + @cd tests && $(MAKE) '../$(distdir)/tests' dist dist-gzip: $(distdir) @tar -cf - '$(distdir)' | gzip -9c > '$(distdir).tar.gz' diff --git a/tests/Makefile.in b/tests/Makefile.in index b699b10..18b8c26 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -26,6 +26,9 @@ SH = @sh@ TESTS = ob_match_arch ob_parse_dep ob_reduce_deps +distdir = ../$(package_name)-$(package_version)/tests +distfiles = Makefile.in common.sh + test: @all=0; failed=0; \ for test in $(TESTS); do \ @@ -52,3 +55,10 @@ test: done; \ printf '\n'; \ exit $${failed} + +$(distdir): + @mkdir -p '$(distdir)' + @cp -pR $(distfiles) '$(distdir)' + @for test in $(TESTS); do \ + cp -p "$${test}.sh" "$${test}.rc" '$(distdir)'; \ + done |