clean-unix:: clean-libs clean-libobjs
$(RM) $(PROGS) *.o *~ core prof_err.h profile.h prof_err.c
$(RM) test_load test_parse test_profile test_vtable profile_tcl
- $(RM) modtest.conf testinc.ini testinc2.ini
+ $(RM) modtest.conf testinc.ini testinc2.ini final.out
$(RM) -r test_include_dir
clean-windows::
$(RUN_TEST) ./test_load
DO_TCL=@DO_TCL@
-check-unix: check-unix-tcl-$(DO_TCL)
+check-unix: check-unix-final check-unix-tcl-$(DO_TCL)
+
+F1=$(srcdir)/final1.ini
+F2=$(srcdir)/final2.ini
+F3=$(srcdir)/final3.ini
+F4=$(srcdir)/final4.ini
+F5=$(srcdir)/final5.ini
+QUERY=query section subsection key
+check-unix-final: test_profile
+ $(RM) final.out
+ (echo; $(RUN_TEST) ./test_profile $(F1):$(F1) $(QUERY)) > final.out
+ (echo; $(RUN_TEST) ./test_profile $(F2):$(F1) $(QUERY)) >> final.out
+ (echo; $(RUN_TEST) ./test_profile $(F3):$(F1) $(QUERY)) >> final.out
+ (echo; $(RUN_TEST) ./test_profile $(F4):$(F1) $(QUERY)) >> final.out
+ (echo; $(RUN_TEST) ./test_profile $(F5):$(F1) $(QUERY)) >> final.out
+ cmp final.out $(srcdir)/final.expected
+ $(RM) final.out
check-unix-tcl-:
@echo "+++"
--- /dev/null
+# In this variant the relation is marked final. There is parsing
+# support for this but no iteration or dumping support, so the marker
+# currently has no effect.
+[section]
+ subsection = {
+ key* = value2
+ }