Commit 89eb22d6 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

fix build system to pass distcheck, based on patch by Nicolas Trangez,

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
parent 10d2b86e
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,
......
NULL =
INCLUDES = \
-I$(top_srcdir) \
$(GLIB_CFLAGS) \
$(NULL)
......
NULL =
INCLUDES = \
-I$(top_srcdir) \
$(GLIB_CFLAGS) \
$(NULL)
......
NULL =
INCLUDES = \
-I$(top_srcdir) \
$(GLIB_CFLAGS) \
$(NULL)
......
NULL =
INCLUDES = \
-I$(top_srcdir) \
$(GLIB_CFLAGS) \
$(NULL)
......
......@@ -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 \
......
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
......@@ -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 () {
......
......@@ -20,35 +20,38 @@
# 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
......
NULL =
INCLUDES = \
-I$(top_srcdir) \
$(GLIB_CFLAGS) \
$(NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment