Adding upstream version 3.1.0+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
64dbec996d
commit
cfcebb1a7d
569 changed files with 205393 additions and 0 deletions
18
distro/pkg/deb/tests/yanglint
Executable file
18
distro/pkg/deb/tests/yanglint
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# Setup the test file
|
||||
trap 'rm -f "${TESTFILE}"; rmdir "${TESTDIR}"' EXIT
|
||||
TESTDIR=$(mktemp -d /tmp/yanglint.XXXXXX)
|
||||
TESTFILE="${TESTDIR}/ietf-interfaces.yang"
|
||||
|
||||
# Unpack or copy the test file
|
||||
if test -f /usr/share/doc/libyang-tools/examples/ietf-interfaces.yang.gz; then
|
||||
gunzip -c < /usr/share/doc/libyang-tools/examples/ietf-interfaces.yang.gz > "${TESTFILE}"
|
||||
else
|
||||
cp /usr/share/doc/libyang-tools/examples/ietf-interfaces.yang "${TESTFILE}"
|
||||
fi
|
||||
|
||||
# Lint the test file
|
||||
yanglint "${TESTFILE}"
|
Loading…
Add table
Add a link
Reference in a new issue