File: byte-code

package info (click to toggle)
ocaml-rope 0.6.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 528 kB
  • sloc: ml: 1,715; makefile: 37; sh: 33
file content (22 lines) | stat: -rwxr-xr-x 392 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -e

testdir=$(mktemp -d)
trap "rm -rf ${testdir}" 0 INT QUIT ABRT PIPE TERM
cd ${testdir}

cat <<EOF > test.ml
open Rope
let r = Rope.of_string "Hello world!"
let _ = print_int (Rope.length r)
EOF

ocamlfind ocamlc -o byte-code-test -I `ocamlfind query rope` rope.cma test.ml

echo "build: OK"

[ -x byte-code-test ]
./byte-code-test 2> /dev/null | grep -q "12"

echo "run: OK"