summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2010-09-03 17:16:28 -0700
committerDavid Schleef <ds@schleef.org>2010-09-03 22:08:24 -0700
commit12722fdf233a77baf24d610813da814852d6f728 (patch)
tree9cabe498aada79d7475ac3c22a614f2de846b8d2 /testsuite
parent65c75ba02a8ea207a0608958dd037dbb29f7d97b (diff)
testsuite: Add compatibility check
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/compatibility/compatibility_check29
1 files changed, 29 insertions, 0 deletions
diff --git a/testsuite/compatibility/compatibility_check b/testsuite/compatibility/compatibility_check
new file mode 100755
index 0000000..8753601
--- /dev/null
+++ b/testsuite/compatibility/compatibility_check
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+set -e
+set -x
+
+version=0.4.5
+topdir=`pwd`
+tmpdir=${topdir}/tmp
+
+test -f orc-${version}.tar.gz || \
+ wget http://code.entropywave.com/download/orc/orc-${version}.tar.gz
+
+rm -rf ${tmpdir}
+mkdir -p ${tmpdir}
+
+../tools/orcc -o ${tmpdir}/out.c --implementation test.orc
+
+tar -xzf orc-${version}.tar.gz --directory ${tmpdir}
+cd ${tmpdir}
+
+cd orc-${version}
+./configure --prefix=${tmpdir}/_inst
+make
+make install
+
+cd ${tmpdir}
+gcc -Wall -Werror -I${tmpdir}/_inst/include/orc-0.4/ -c -o out.o out.c
+
+