aPiecek | 9b2fba6 | 2023-05-19 11:31:48 +0200 | [diff] [blame] | 1 | source [expr {[info exists ::env(TESTS_DIR)] ? "$env(TESTS_DIR)/non-interactive/ly.tcl" : "ly.tcl"}] |
| 2 | |
| 3 | set mdir "$::env(YANG_MODULES_DIR)" |
| 4 | set ddir "$::env(TESTS_DIR)/data" |
| 5 | |
| 6 | test 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 | |
| 10 | test 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 | |
aPiecek | a6d45b5 | 2023-05-19 11:48:59 +0200 | [diff] [blame] | 14 | test 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 | |
aPiecek | 9b2fba6 | 2023-05-19 11:31:48 +0200 | [diff] [blame] | 18 | cleanupTests |