]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
fix build system to pass distcheck, based on patch by Nicolas Trangez,
authorJuerg Billeter <j@bitron.ch>
Tue, 21 Aug 2007 10:51:08 +0000 (10:51 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Tue, 21 Aug 2007 10:51:08 +0000 (10:51 +0000)
2007-08-21  Juerg Billeter  <j@bitron.ch>

* gee/Makefile.am, vala/Makefile.am, ccode/Makefile.am,
  gobject/Makefile.am, compiler/Makefile.am, tests/Makefile.am,
  tests/testrunner.sh: fix build system to pass distcheck,
  based on patch by Nicolas Trangez, fixes bug 466283
* Rename tests/*.out to tests/*.exp
* tests/test-022.vala, tests/test-022.exp: reduce to regression test

svn path=/trunk/; revision=495

44 files changed:
ChangeLog
ccode/Makefile.am
compiler/Makefile.am
gee/Makefile.am
gobject/Makefile.am
tests/Makefile.am
tests/test-001.exp [moved from tests/test-001.out with 100% similarity]
tests/test-002.exp [moved from tests/test-002.out with 100% similarity]
tests/test-003.exp [moved from tests/test-003.out with 100% similarity]
tests/test-004.exp [moved from tests/test-004.out with 100% similarity]
tests/test-005.exp [moved from tests/test-005.out with 100% similarity]
tests/test-006.exp [moved from tests/test-006.out with 100% similarity]
tests/test-007.exp [moved from tests/test-007.out with 100% similarity]
tests/test-008.exp [moved from tests/test-008.out with 100% similarity]
tests/test-009.exp [moved from tests/test-009.out with 100% similarity]
tests/test-010.exp [moved from tests/test-010.out with 100% similarity]
tests/test-011.exp [moved from tests/test-011.out with 100% similarity]
tests/test-012.exp [moved from tests/test-012.out with 100% similarity]
tests/test-013.exp [moved from tests/test-013.out with 100% similarity]
tests/test-014.exp [moved from tests/test-014.out with 100% similarity]
tests/test-015.exp [moved from tests/test-015.out with 100% similarity]
tests/test-016.exp [moved from tests/test-016.out with 100% similarity]
tests/test-017.exp [moved from tests/test-017.out with 100% similarity]
tests/test-018.exp [moved from tests/test-018.out with 100% similarity]
tests/test-019.exp [moved from tests/test-019.out with 100% similarity]
tests/test-020.exp [moved from tests/test-020.out with 100% similarity]
tests/test-021.exp [moved from tests/test-021.out with 100% similarity]
tests/test-022.exp [moved from tests/test-022.out with 62% similarity]
tests/test-022.vala
tests/test-023.exp [moved from tests/test-023.out with 100% similarity]
tests/test-024.exp [moved from tests/test-024.out with 100% similarity]
tests/test-025.exp [moved from tests/test-025.out with 100% similarity]
tests/test-026.exp [moved from tests/test-026.out with 100% similarity]
tests/test-027.exp [moved from tests/test-027.out with 100% similarity]
tests/test-028.exp [moved from tests/test-028.out with 100% similarity]
tests/test-029.exp [moved from tests/test-029.out with 100% similarity]
tests/test-030.exp [moved from tests/test-030.out with 100% similarity]
tests/test-031.exp [moved from tests/test-031.out with 100% similarity]
tests/test-032.exp [moved from tests/test-032.out with 100% similarity]
tests/test-033.exp [moved from tests/test-033.out with 100% similarity]
tests/test-034.exp [moved from tests/test-034.out with 100% similarity]
tests/test-035.exp [moved from tests/test-035.out with 100% similarity]
tests/testrunner.sh
vala/Makefile.am

index 4c7885eea10b236ad59a965320511c8bf23da26d..192a6f9f179f3dde40edad9ab0cb9fee6c4f5983 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2007-08-21  Jürg Billeter  <j@bitron.ch>
+
+       * gee/Makefile.am, vala/Makefile.am, ccode/Makefile.am,
+         gobject/Makefile.am, compiler/Makefile.am, tests/Makefile.am,
+         tests/testrunner.sh: fix build system to pass distcheck,
+         based on patch by Nicolas Trangez, fixes bug 466283
+       * Rename tests/*.out to tests/*.exp
+       * tests/test-022.vala, tests/test-022.exp: reduce to regression test
+
 2007-08-21  Jürg Billeter  <j@bitron.ch>
 
        * vala/valacodecontext.vala, vala/valasourcefile.vala,
index 39dae094d9374d0d7c567900503aa0172a6fac00..7820288dfbc5a9bde4f30e9448acf4f6775e8a9e 100644 (file)
@@ -1,6 +1,7 @@
 NULL =
 
 INCLUDES = \
+       -I$(top_srcdir) \
        $(GLIB_CFLAGS) \
        $(NULL)
 
index 750d0ee43b9bf5efeca1e4acd4738cbcce64a22d..df06189bc5fd7a2ffc69096e7a864d62832f4089 100644 (file)
@@ -1,6 +1,7 @@
 NULL =
 
 INCLUDES = \
+       -I$(top_srcdir) \
        $(GLIB_CFLAGS) \
        $(NULL)
 
index 9570518aabe566d7962630759bf23c1f84f9514b..c798d69c0c6be99a4a78e192da18b73245eac0ab 100644 (file)
@@ -1,6 +1,7 @@
 NULL =
 
 INCLUDES = \
+       -I$(top_srcdir) \
        $(GLIB_CFLAGS) \
        $(NULL)
 
index 02b6c8fcb31e55acefedbad6733874e283c8a0fe..8dfdc6b51ca2ea4dece254a5fffe5ee2023bde64 100644 (file)
@@ -1,6 +1,7 @@
 NULL =
 
 INCLUDES = \
+       -I$(top_srcdir) \
        $(GLIB_CFLAGS) \
        $(NULL)
 
index 5b7cdfdb5ced8fb2e7611ef8ca53421ee0001fac..036bddce5ca6d25d03d98b539c310b54f9436ced 100644 (file)
@@ -107,41 +107,41 @@ EXTRA_DIST = \
        test-033.vala \
        test-034.vala \
        test-035.vala \
-       test-001.out \
-       test-002.out \
-       test-003.out \
-       test-004.out \
-       test-005.out \
-       test-006.out \
-       test-007.out \
-       test-008.out \
-       test-009.out \
-       test-010.out \
-       test-011.out \
-       test-012.out \
-       test-013.out \
-       test-014.out \
-       test-015.out \
-       test-016.out \
-       test-017.out \
-       test-018.out \
-       test-019.out \
-       test-020.out \
-       test-021.out \
-       test-022.out \
-       test-023.out \
-       test-024.out \
-       test-025.out \
-       test-026.out \
-       test-027.out \
-       test-028.out \
-       test-029.out \
-       test-030.out \
-       test-031.out \
-       test-032.out \
-       test-033.out \
-       test-034.out \
-       test-035.out \
+       test-001.exp \
+       test-002.exp \
+       test-003.exp \
+       test-004.exp \
+       test-005.exp \
+       test-006.exp \
+       test-007.exp \
+       test-008.exp \
+       test-009.exp \
+       test-010.exp \
+       test-011.exp \
+       test-012.exp \
+       test-013.exp \
+       test-014.exp \
+       test-015.exp \
+       test-016.exp \
+       test-017.exp \
+       test-018.exp \
+       test-019.exp \
+       test-020.exp \
+       test-021.exp \
+       test-022.exp \
+       test-023.exp \
+       test-024.exp \
+       test-025.exp \
+       test-026.exp \
+       test-027.exp \
+       test-028.exp \
+       test-029.exp \
+       test-030.exp \
+       test-031.exp \
+       test-032.exp \
+       test-033.exp \
+       test-034.exp \
+       test-035.exp \
        \
        testenchant.stamp \
        testenchant.vala \
similarity index 100%
rename from tests/test-001.out
rename to tests/test-001.exp
similarity index 100%
rename from tests/test-002.out
rename to tests/test-002.exp
similarity index 100%
rename from tests/test-003.out
rename to tests/test-003.exp
similarity index 100%
rename from tests/test-004.out
rename to tests/test-004.exp
similarity index 100%
rename from tests/test-005.out
rename to tests/test-005.exp
similarity index 100%
rename from tests/test-006.out
rename to tests/test-006.exp
similarity index 100%
rename from tests/test-007.out
rename to tests/test-007.exp
similarity index 100%
rename from tests/test-008.out
rename to tests/test-008.exp
similarity index 100%
rename from tests/test-009.out
rename to tests/test-009.exp
similarity index 100%
rename from tests/test-010.out
rename to tests/test-010.exp
similarity index 100%
rename from tests/test-011.out
rename to tests/test-011.exp
similarity index 100%
rename from tests/test-012.out
rename to tests/test-012.exp
similarity index 100%
rename from tests/test-013.out
rename to tests/test-013.exp
similarity index 100%
rename from tests/test-014.out
rename to tests/test-014.exp
similarity index 100%
rename from tests/test-015.out
rename to tests/test-015.exp
similarity index 100%
rename from tests/test-016.out
rename to tests/test-016.exp
similarity index 100%
rename from tests/test-017.out
rename to tests/test-017.exp
similarity index 100%
rename from tests/test-018.out
rename to tests/test-018.exp
similarity index 100%
rename from tests/test-019.out
rename to tests/test-019.exp
similarity index 100%
rename from tests/test-020.out
rename to tests/test-020.exp
similarity index 100%
rename from tests/test-021.out
rename to tests/test-021.exp
similarity index 62%
rename from tests/test-022.out
rename to tests/test-022.exp
index faa113f22cc470aadb74b20b0b48825c26ffb407..a67af995611c6926d9a9f3ede4e6d126b4800596 100644 (file)
@@ -1,3 +1,3 @@
 One dimensional array creation and assignment: 1 2 3 4 5 6 7 8 9 10 11
 String array creation and assignment: 1 2 3 4 5 6 7 8 9 10 11
-Object array creation and assignment: 1 2 3 4 5 6 7 8 9 10 11 c b a b a c a b c
+Object array creation and assignment: 1 2 3 4 5 6 7 8 9 10 11
index 9b2f4f8c5b71209c5269cc68e0a34146fce8e52a..59b2cc7679c9094ca86d9a7c37be5726f0afd17d 100644 (file)
@@ -4,10 +4,6 @@ class Maman.Foo {
        public Foo (construct string bar) {
        }
 
-       public ~Foo () {
-               stdout.printf (" %s", _bar);
-       }
-
        public string bar { get; set construct; }
 
        static void test_integer_array () {
similarity index 100%
rename from tests/test-023.out
rename to tests/test-023.exp
similarity index 100%
rename from tests/test-024.out
rename to tests/test-024.exp
similarity index 100%
rename from tests/test-025.out
rename to tests/test-025.exp
similarity index 100%
rename from tests/test-026.out
rename to tests/test-026.exp
similarity index 100%
rename from tests/test-027.out
rename to tests/test-027.exp
similarity index 100%
rename from tests/test-028.out
rename to tests/test-028.exp
similarity index 100%
rename from tests/test-029.out
rename to tests/test-029.exp
similarity index 100%
rename from tests/test-030.out
rename to tests/test-030.exp
similarity index 100%
rename from tests/test-031.out
rename to tests/test-031.exp
similarity index 100%
rename from tests/test-032.out
rename to tests/test-032.exp
similarity index 100%
rename from tests/test-033.out
rename to tests/test-033.exp
similarity index 100%
rename from tests/test-034.out
rename to tests/test-034.exp
similarity index 100%
rename from tests/test-035.out
rename to tests/test-035.exp
index c147886f9a357aa4fa3bb63c51dff4808b0a6e2f..edccabc2c3398067495d146c16f8ad53fdbd66bc 100755 (executable)
 # Author:
 #      Jürg Billeter <j@bitron.ch>
 
-builddir=$(dirname $0)
+builddir=$PWD
 topbuilddir=$builddir/..
-vapidir=$topbuilddir/vapi
+srcdir=`dirname $0`
+topsrcdir=$srcdir/..
+vapidir=$topsrcdir/vapi
 
 export G_DEBUG=fatal_warnings
 
 VALAC=$topbuilddir/compiler/valac
 CC="gcc -std=c99"
-CFLAGS="-O0 -g3 -I.."
+CFLAGS="-O0 -g3 -I$topsrcdir"
 LDLIBS="-lm ../gee/.libs/libgee.a"
 
 CODE=0
 
 for testcasesource in "$@"
 do
-       testcase=${testcasesource/.vala/}
-       if ! $VALAC --vapidir "$vapidir" --pkg gee-1.0 $testcase.vala > $testcase.err 2>&1
+       testsrc=${testcasesource/.vala/}
+       testbuild=`basename "$testsrc"`
+       if ! $VALAC --vapidir "$vapidir" --pkg gee-1.0 $testsrc.vala > $testbuild.err 2>&1
        then
                CODE=1
                continue
        fi
-       if ! $CC $CFLAGS $(pkg-config --cflags --libs gobject-2.0) -o $testcase $testcase.c $LDLIBS > $testcase.err 2>&1
+       if ! $CC $CFLAGS $(pkg-config --cflags --libs gobject-2.0) -o $testbuild $testbuild.c $LDLIBS > $testbuild.err 2>&1
        then
                CODE=1
                continue
        fi
-       if ./$testcase | tee $testcase.err | cmp -s $testcase.out 
+       if ./$testbuild | tee $testbuild.err | cmp -s $testsrc.exp
        then
-               rm $testcase.err
+               rm $testbuild.c $testbuild.h $testbuild $testbuild.err
        else
                CODE=1
        fi
index 211acec589f43f2e838d44ba597068d844b713f7..a3f0bff460d7e759f522eb6d0fa918b7cbb20bf2 100644 (file)
@@ -1,6 +1,7 @@
 NULL =
 
 INCLUDES = \
+       -I$(top_srcdir) \
        $(GLIB_CFLAGS) \
        $(NULL)