summaryrefslogtreecommitdiff
path: root/t/vala-vpath.sh
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-04-16 22:35:18 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-04-16 22:35:18 +0200
commite31e6b51150cc46bcfdcfb7b05e43a6ec7e0f848 (patch)
treeaea76beb04f242d139c89250a57dde2e4df9e6a1 /t/vala-vpath.sh
parent6f12912a2b1c207e8fb3d45d993cc81edc51be47 (diff)
downloadautomake-e31e6b51150cc46bcfdcfb7b05e43a6ec7e0f848.tar.gz
vala tests: some enhancements
* t/vala-vpath.sh, t/vala2.sh, t/vala3.sh, t/vala5.sh: Enhance a little. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/vala-vpath.sh')
-rwxr-xr-xt/vala-vpath.sh22
1 files changed, 20 insertions, 2 deletions
diff --git a/t/vala-vpath.sh b/t/vala-vpath.sh
index e1e2e66e0..0d2e8c937 100755
--- a/t/vala-vpath.sh
+++ b/t/vala-vpath.sh
@@ -28,9 +28,11 @@ AC_OUTPUT
END
cat > Makefile.am <<'END'
-bin_PROGRAMS = foo
-foo_VALAFLAGS = --profile=posix
+bin_PROGRAMS = foo bar
+AM_VALAFLAGS = --profile=posix
foo_SOURCES = hello.vala
+bar_VALAFLAGS = $(AM_VALAFLAGS) -H zardoz.h
+bar_SOURCES = $(foo_SOURCES)
END
cat > hello.vala <<'END'
@@ -49,10 +51,13 @@ cd build
../configure || Exit 77
$MAKE
test -f ../foo_vala.stamp
+test -f ../bar_vala.stamp
grep foofoofoo ../hello.c
+test -f ../zardoz.h
$MAKE distcheck
# Rebuild rules work also in VPATH builds.
+
cat > ../hello.vala <<'END'
int main ()
{
@@ -63,10 +68,23 @@ END
$MAKE
test -f ../foo_vala.stamp
+test -f ../bar_vala.stamp
grep barbarbar ../hello.c
# Rebuild rules are not uselessly triggered.
$MAKE -q
$MAKE -n | grep '\.stamp' && Exit 1
+# Cleanup rules work also in VPATH builds.
+$MAKE clean
+test -f ../foo_vala.stamp
+test -f ../bar_vala.stamp
+grep barbarbar ../hello.c
+$MAKE maintainer-clean
+# FIXME: Generated C files and stamp files doesn't get correctly
+# FIXME: cleaned in a VPATH build.
+#test ! -f ../hello.c
+#test ! -f ../foo_vala.stamp
+#test ! -f ../bar_vala.stamp
+
: