Skip to content

Commit

Permalink
fix(libyang)
Browse files Browse the repository at this point in the history
 closes #8355
  • Loading branch information
jhheider committed Jan 9, 2025
1 parent 79f7916 commit c8191a8
Showing 1 changed file with 52 additions and 8 deletions.
60 changes: 52 additions & 8 deletions projects/github.com/cesnet/libyang/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,75 @@ display-name: libyang

versions:
github: CESNET/libyang
strip: /^v/

dependencies:
pcre.org/v2: '*'
pcre.org/v2: '>=10.21'

build:
dependencies:
graphviz.org: '*'
freedesktop.org/pkg-config: '*'
doxygen.nl: '*'
gnu.org/gcc: '*'
cmake.org: ^3
working-directory: build
script:
- cmake ${ARGS} ..
- make
- make install
env:
CC: gcc
ARGS:
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{prefix}}
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{prefix}}

provides:
- bin/yanglint
- bin/yangre

test: test "$(yangre --version|cut -d' ' -f2)" = {{version}}
test:
- test "$(yangre --version|cut -d' ' -f2)" = {{version}}
- run: yanglint $FIXTURE
fixture:
extname: yang
content: |
module moddefault {
namespace "urn:yanglint:moddefault";
prefix md;
container mdc {
leaf lf {
type uint16;
}
leaf di {
type int16;
default "5";
}
leaf ds {
type string;
default "str";
}
}
}
- run:
- (yanglint $FIXTURE || true) 2>&1 | grep 'Invalid character sequence'
fixture:
extname: xml
content: |
module moddefault {
namespace "urn:yanglint:moddefault";
prefix md;
container mdc {
leaf lf {
type uint16;
}
leaf di {
type int16;
default "5";
}
leaf ds {
type string;
default str";
}
}
}

0 comments on commit c8191a8

Please sign in to comment.