This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Diffing and unit-testing eCos configuration files


Hi all,
I have been frustrated that it is so hard to compare two different eCos configuration files or two versions of the same configuration file and see what the REAL differences are. Also, I had a need to keep the settings in two configuration files the same - except for a few settings.


I am publishing my solution to this here: https://bugzilla.ecoscentric.com/show_bug.cgi?id=1001632


This 

 * adds support for ecosconfig to dump the ecos configuration in an easily diffable and parseable format
 * provides a python module which makes it easy to read an ecos configuration file
 * provides a python script which diffs two ecos config files - they may also be specific revisions in subversion
 * demonstrates how to write a unit-test that checks two config files against each other
 * demonstrates how to write a unit-test that checks that certain critical values are not accidentally changed

I hope this may be useful to someone.

/Martin

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]