File: byte-code

package info (click to toggle)
extlib 1.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 656 kB
  • sloc: ml: 6,942; makefile: 137; sh: 42; ansic: 31
file content (22 lines) | stat: -rw-r--r-- 355 bytes parent folder | download
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 ExtString
module S = String
let _ = assert (S.starts_with "foo" ~prefix:"f")
EOF

ocamlfind ocamlc -o byte-code-test -package extlib -linkpkg test.ml

echo "build: OK"

[ -x byte-code-test ]
./byte-code-test

echo "run: OK"