File: size_bound.t

package info (click to toggle)
ocaml-odoc 3.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 12,104 kB
  • sloc: ml: 59,291; javascript: 2,572; sh: 566; makefile: 31
file content (12 lines) | stat: -rw-r--r-- 505 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
This tests that sherlodoc.js is not bigger than 120000 bytes. We test a threshold
of the size because the precise size depends on specific ocaml and dependencies
versions. This test should pass on every version. If it fails, we can either
update the threshold to be large enough or forbid certain dependency versions
in the opam file.
  $ sherlodoc js sherlodoc.js
  $ if [ "$(du sherlodoc.js | cut -f 1)" -gt 120000 ]; then
  >     du sherlodoc.js
  > else
  >     echo "All good! ";
  > fi
  All good!