File: expr

package info (click to toggle)
ppx-deriving-yojson 3.10.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 292 kB
  • sloc: ml: 1,436; makefile: 24; sh: 15
file content (19 lines) | stat: -rwxr-xr-x 458 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e

this=expr
indir=debian/tests
outdir=${ADT_ARTIFACTS:-/tmp}/${this}
mkdir -p ${outdir}

ppx='ppx_deriving_yojson,yojson'
cp ${indir}/${this}.ml ${indir}/expected ${outdir}
cd ${outdir}
ocamlbuild -quiet -use-ocamlfind -pkgs ${ppx} ${this}.byte
./${this}.byte > result
diff result expected

if [ -x /usr/bin/ocamlopt ]
then ocamlbuild -quiet -use-ocamlfind -pkgs ${ppx} ${this}.native;
     ./${this}.native > result
     diff result expected
fi