Debian Codegraph @

testsuite/compatibility/check

raw
1 #!/bin/bash
2
3 topdir=`pwd`
4 installdir=${topdir}/install
5
6 #testfile=../test.orc
7
8 for check_micro in 6 7 9 12
9 do
10 testfile=test-0.4.${check_micro}.orc
11
12 compat="--compat 0.4.${check_micro}"
13
14
15 ../../tools/orcc -o impl.c ${compat} --implementation ${testfile}
16 ../../tools/orcc -o test.c ${compat} --test ${testfile}
17
18 echo " --compat 0.4.${check_micro}"
19 echo " compile run"
20 echo " impl test test"
21
22 for micro in 0 1 3 4 5 6 7 9 10 11 12
23 do
24 version=0.4.${micro}
25
26 gcc -Wall -Werror -I${installdir}/${version}/include/orc-0.4/ -c -o impl.o impl.c &>out-impl
27 res=$?
28 if [ "$res" = "0" ] ; then
29 result_impl="yes"
30 else
31 result_impl=" no"
32 fi
33
34 rm -f test
35 gcc -Wall -Werror -I${installdir}/${version}/include/orc-0.4/ -L${installdir}/${version}/lib -lorc-0.4 -lorc-test-0.4 -o test test.c &>out-test
36 res=$?
37 if [ "$res" = "0" ] ; then
38 result_test_compile="yes"
39 else
40 result_test_compile=" no"
41 fi
42
43 LD_LIBRARY_PATH=${installdir}/${version}/lib \
44 test -f ./test && ./test &>out-test
45 res=$?
46 if [ "$res" = "0" ] ; then
47 result_test_run="yes"
48 else
49 result_test_run=" no"
50 fi
51
52 echo "$version $result_impl $result_test_compile $result_test_run"
53 done
54
55 done
56
57