File: test

package info (click to toggle)
js-of-ocaml-ocamlbuild 5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 208 kB
  • sloc: ml: 85; makefile: 15; sh: 9
file content (15 lines) | stat: -rwxr-xr-x 255 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

outdir=${ADT_ARTIFACTS:-/tmp}/test
mkdir -p ${outdir}

cp -a test ${outdir}
cd ${outdir}/test

echo "* Compile test"
ocamlbuild -use-ocamlfind -plugin-tag "package(js_of_ocaml-ocamlbuild)" test.js

echo "* Run test"
node _build/test.js