Skip to content

Commit

Permalink
Fixed "make check" for VPATH builds
Browse files Browse the repository at this point in the history
Added missing files to distribution tarball
  • Loading branch information
jgehring committed Mar 14, 2010
1 parent 91651f5 commit 2470d9f
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 15 deletions.
2 changes: 2 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
#

SUBDIRS = src tests

EXTRA_DIST = docs/rfc4880.txt
33 changes: 23 additions & 10 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,31 @@ $(srcdir)/package.m4: $(top_srcdir)/configure.ac
echo ' [@PACKAGE_URL@])'; \
} >'$(srcdir)/package.m4'

EXTRA_DIST = testsuite.at $(srcdir)/package.m4 $(TESTSUITE) atlocal.in
SUBDIRS = utests

EXTRA_DIST = \
testsuite.at \
test_behaviour.at \
test_units.at \
$(srcdir)/package.m4 \
$(TESTSUITE) \
atlocal.in \
formats/README \
formats/check.pl \
formats/genkeys.java \
formats/genkeys.sh \
formats/keys.tar.bz2

TESTSUITE = $(srcdir)/testsuite

# This should fix VPATH builds
formats-check.pl: formats/check.pl
cp $(srcdir)/formats/check.pl formats-check.pl
formats-keys.tar.bz2: formats/keys.tar.bz2
cp $(srcdir)/formats/keys.tar.bz2 formats-keys.tar.bz2
all-local: formats-check.pl formats-keys.tar.bz2
CLEANFILES = formats-check.pl formats-keys.tar.bz2 atconfig

check-local: atconfig atlocal $(TESTSUITE)
$(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS)

Expand All @@ -35,12 +57,3 @@ AUTOTEST = $(AUTOM4TE) --language=autotest
$(TESTSUITE): $(srcdir)/testsuite.at $(srcdir)/package.m4
$(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
mv $@.tmp $@

SUBDIRS = utests

EXTRA_DIST += \
check_formats.pl \
formats/README \
formats/genkeys.java \
formats/genkeys.sh \
formats/keys.tar.bz2
5 changes: 1 addition & 4 deletions tests/check_formats.pl → tests/formats/check.pl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
# Copyright (C) 2010 Jonas Gehring
#

use strict;
use warnings;

my $archive="../../formats/keys.tar.bz2";
my $archive = $ARGV[0];
my $charset="1234567890"; # Character set used for the test key passwords

# Let's go
Expand Down
Binary file modified tests/formats/keys.tar.bz2
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/test_behaviour.at
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

AT_BANNER([Whole-program behaviour])
AT_SETUP([Supported Formats])
AT_CHECK([check_formats.pl])
AT_CHECK([formats-check.pl ../../formats-keys.tar.bz2])
AT_CLEANUP()

0 comments on commit 2470d9f

Please sign in to comment.