Index: tests/conf/list_merge.tst =================================================================== --- tests/conf/list_merge.tst (nonexistent) +++ tests/conf/list_merge.tst (revision 2200) @@ -0,0 +1,47 @@ +echo === initial state: empty === +reset * +dump native rc/library_search_paths + +echo === import 3 levels === +paste system \ + li:pcb-rnd-conf-v1 { \ + ha:overwrite { \ + ha:rc { \ + li:library_search_paths = { sys1; sys2 } \ + } \ + } \ + } +dump native rc/library_search_paths + +paste user \ + li:pcb-rnd-conf-v1 { \ + ha:overwrite { \ + ha:rc { \ + li:library_search_paths = { user1; user2 } \ + } \ + } \ + } +dump native rc/library_search_paths + +paste design \ + li:pcb-rnd-conf-v1 { \ + ha:overwrite { \ + ha:rc { \ + li:library_search_paths = { design1; design2 } \ + } \ + } \ + } +dump native rc/library_search_paths + +echo === change policies === +role design +chpolicy prepend +dump native rc/library_search_paths + +role user +chpolicy append +dump native rc/library_search_paths + +role design +chpolicy append +dump native rc/library_search_paths Index: tests/conf/list_set.test =================================================================== --- tests/conf/list_set.test (nonexistent) +++ tests/conf/list_set.test (revision 2200) @@ -0,0 +1,29 @@ +role design + +echo === initial state: empty === +reset * +dump native rc/library_search_paths + +echo === append two items === +policy append + +set rc/library_search_paths foo +dump native rc/library_search_paths + +set rc/library_search_paths bar +dump native rc/library_search_paths + +echo === prepend two items === +policy prepend + +set rc/library_search_paths pre1 +dump native rc/library_search_paths + +set rc/library_search_paths pre2 +dump native rc/library_search_paths + +echo === overwrite === +policy overwrite + +set rc/library_search_paths new +dump native rc/library_search_paths