File: test-examples

package info (click to toggle)
ocaml-sedlex 3.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 792 kB
  • sloc: ml: 7,866; makefile: 24; sh: 9
file content (16 lines) | stat: -rwxr-xr-x 303 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

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

cp -r "$(dirname "$0")/../../examples" "${testdir}/example"
cd "${testdir}/example"

sed -i 's/sedlex_ppx/sedlex.ppx/g' dune

echo "(lang dune 2.9)" > dune-project
dune build @runtest --verbose

echo "test: OK"