File: testfoo

package info (click to toggle)
ocaml-qtest 2.11.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 360 kB
  • sloc: xml: 708; ml: 584; sh: 50; lisp: 15; makefile: 11
file content (18 lines) | stat: -rwxr-xr-x 255 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

set -e

if [ -x '/usr/bin/ocamlopt' ]
then

    cd "$(dirname "$0")/../../tests"

    [ "$(./testfoo.sh |& grep -E 'Failure.*>>foo.ml:247|Failure.*>>foo.ml:164' -c)" = 2 ]

    echo ok

else

    echo skip testfoo, which requires ocamlopt

fi