blob: bd9597896a01cda810c711030fa464d52f5f4b18 [file] [log] [blame]
aPiecek9b2fba62023-05-19 11:31:48 +02001source [expr {[info exists ::env(TESTS_DIR)] ? "$env(TESTS_DIR)/non-interactive/ly.tcl" : "ly.tcl"}]
2
3set mdir "$::env(YANG_MODULES_DIR)"
4set ddir "$::env(TESTS_DIR)/data"
5
6test ylf_list {apply --yang-library-file and check result by --list} {
7 ly_cmd "-Y $ddir/modimp_type_ctx.xml -p $mdir -l" "I modimp-type.*i modtypedef"
8} {}
9
10test ylf_make_implemented {apply --yang-library-file and --make-implemented} {
11 ly_cmd "-Y $ddir/modimp_type_ctx.xml -p $mdir -i -i -l" "I modimp-type.*I modtypedef"
12} {}
13
aPieceka6d45b52023-05-19 11:48:59 +020014test ylf_augment_ctx {Setup context by yang-library-file and augment module} {
15 ly_cmd "-Y $ddir/modconfig_ctx.xml -p $mdir -f tree $mdir/modconfig.yang $mdir/modconfig-augment.yang" "mca:alf"
16} {}
17
aPiecek9b2fba62023-05-19 11:31:48 +020018cleanupTests