Skip to content
Myr

Remove ruby dependency from mantests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by William Langford · committed by Nico Williams · parent 175dbc4 · Browse files · 2 files+14 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+14 added−1 removed

  • tests:+1 added−1 removed
  • other:+13 added−0 removed

2 files+14 added−1 removed

added:docs/build_mantests.py+13 added
1#!/usr/bin/env python32import yaml34with open("content/manual/manual.yml") as f:5 manual = yaml.load(f)6 for section in manual.get('sections', []):7 for entry in section.get('entries', []):8 for example in entry.get('examples', []):9 print(example.get('program', '').replace('\n', ' '))10 print(example.get('input', ''))11 for s in example.get('output', []):12 print(s)13 print('')
modified:tests/mantest+1 added-1 removed
1 unmodified line
23. "${0%/*}/setup" "$@"45# We set PAGER because there's a mantest for `env` that uses it.6(cd $JQBASEDIR/docs && rake mantests) |6(cd $JQBASEDIR/docs && pipenv run python3 build_mantests.py) |7 env PAGER=less $VALGRIND $Q $JQ -L "$mods" --run-tests