Welcome to mirror list, hosted at ThFree Co, Russian Federation.

check « compatibility « testsuite - github.com/GStreamer/orc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 597408c463b73d804807843468332d1d1c8dade6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash

topdir=`pwd`
installdir=${topdir}/install

#testfile=../test.orc

for check_micro in 6 7 9 12
do
  testfile=test-0.4.${check_micro}.orc

  compat="--compat 0.4.${check_micro}"


  ../../tools/orcc -o impl.c ${compat} --implementation ${testfile}
  ../../tools/orcc -o test.c ${compat} --test ${testfile}

  echo "  --compat 0.4.${check_micro}"
  echo "          compile     run"
  echo "        impl   test   test"

for micro in 0 1 3 4 5 6 7 9 10 11 12
do
  version=0.4.${micro}

  gcc -Wall -Werror -I${installdir}/${version}/include/orc-0.4/ -c -o impl.o impl.c &>out-impl
  res=$?
  if [ "$res" = "0" ] ; then
    result_impl="yes"
  else
    result_impl=" no"
  fi

  rm -f test
  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
  res=$?
  if [ "$res" = "0" ] ; then
    result_test_compile="yes"
  else
    result_test_compile=" no"
  fi

  LD_LIBRARY_PATH=${installdir}/${version}/lib \
  test -f ./test && ./test &>out-test
  res=$?
  if [ "$res" = "0" ] ; then
    result_test_run="yes"
  else
    result_test_run=" no"
  fi

  echo "$version    $result_impl    $result_test_compile    $result_test_run"
done

done