File: test-examples

package info (click to toggle)
ocaml-sedlex 2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 580 kB
  • sloc: ml: 5,702; pascal: 123; makefile: 33; sh: 9
file content (16 lines) | stat: -rwxr-xr-x 304 bytes parent folder | download
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 1.11)" > dune-project
dune build @runtest --verbose

echo "test: OK"