blob: f09f879773892ea75071898213b1ec349cbc7b03 [file] [log] [blame]
aPieceke75fce52023-04-04 15:25:21 +02001source [expr {[info exists ::env(TESTS_DIR)] ? "$env(TESTS_DIR)/interactive/ly.tcl" : "ly.tcl"}]
2
3set ddir "$::env(TESTS_DIR)/data"
4
5test data_merge_basic {Data is merged and the node is added} {
6-setup $ly_setup -cleanup $ly_cleanup -body {
7 ly_cmd "load modmerge"
8 ly_cmd "data -m -f xml $ddir/modmerge.xml $ddir/modmerge3.xml" "<en>.*<lm>.*<lf>"
9}}
10
11test data_merge_validation_failed {Data is merged but validation failed.} {
12-setup $ly_setup -cleanup $ly_cleanup -body {
13 ly_cmd "load modmerge"
14 ly_cmd "data $ddir/modmerge.xml"
15 ly_cmd "data $ddir/modmerge2.xml"
16 ly_cmd "data -m $ddir/modmerge2.xml $ddir/modmerge.xml"
17 ly_cmd_err "data -m $ddir/modmerge.xml $ddir/modmerge2.xml" "Merged data are not valid"
18}}
19
20cleanupTests