Stéphane Glondu pushed to branch master at Debian OCaml Maintainers / ocp-indent
Commits:
-
ecbe43d1
by Stephane Glondu at 2025-10-20T10:54:02+02:00
-
6b8145f0
by Stephane Glondu at 2025-10-20T10:54:17+02:00
3 changed files:
Changes:
| 1 | +ocp-indent (1.9.0-2) unstable; urgency=medium
|
|
| 2 | + |
|
| 3 | + * Team upload
|
|
| 4 | + * Fix autopkgtest
|
|
| 5 | + |
|
| 6 | + -- Stéphane Glondu <glondu@debian.org> Mon, 20 Oct 2025 10:50:24 +0200
|
|
| 7 | + |
|
| 1 | 8 | ocp-indent (1.9.0-1) unstable; urgency=medium
|
| 2 | 9 | |
| 3 | 10 | * Team upload
|
| 1 | 1 | Tests: run-tests
|
| 2 | -Restrictions: allow-stderr |
|
| 2 | +Depends:
|
|
| 3 | + ocaml-dune,
|
|
| 4 | + @ |
| 1 | 1 | #!/bin/sh
|
| 2 | 2 | |
| 3 | -set -exu
|
|
| 4 | - |
|
| 5 | -curdir=$(pwd)
|
|
| 6 | - |
|
| 7 | -# we fake the git command which is only used to figure out the toplevel
|
|
| 8 | -# directory
|
|
| 9 | -mkdir bin
|
|
| 10 | -cat > bin/git << END
|
|
| 11 | -#!/bin/sh
|
|
| 12 | - |
|
| 13 | -echo $curdir
|
|
| 14 | -END
|
|
| 15 | -chmod +x bin/git
|
|
| 16 | - |
|
| 17 | -PATH="$curdir/bin:$PATH" ./tests/test.sh --ocp-indent /usr/bin/ocp-indent |
|
| 3 | +set -eu
|
|
| 4 | + |
|
| 5 | +outdir=${ADT_ARTIFACTS:-/tmp}/ocaml-dune-tests
|
|
| 6 | +echo "* Using $outdir"
|
|
| 7 | +mkdir -p ${outdir}
|
|
| 8 | +cp -a .ocp-indent tests ${outdir}
|
|
| 9 | +cd ${outdir}
|
|
| 10 | +cat > dune-project <<EOF
|
|
| 11 | +(lang dune 3.20)
|
|
| 12 | +EOF
|
|
| 13 | +find -name dune -print0 | xargs -0 sh -c 'for a in "$@"; do echo "(cram)" > $a; done' script
|
|
| 14 | +echo "* Run tests"
|
|
| 15 | +dune runtest |