| 31 | == Checking Compilation Results == |
| 32 | |
| 33 | When doing changes in configuration, this is often useful to check the resulting profiles before deploying. There is a small tool to help doing that, [source:SCDB/trunk/src/utils/profiles/compare_xml src/utils/profiles/compare_xml]. This tool is part of [source:SCDB SCDB base]. |
| 34 | |
| 35 | To use this tool, before compiling your changes, you need to copy your current (or reference) `build` directory to something else, by example `build.saved` (default name used by the script). After the compilation, if you run the script without arguments, it will display the list of all profiles that have changed. You can inspect the changes (require a bit of knowledge of profile contents) using option `-v`. Or you can restrict the check to one specific profile with option `-p`. By example : |
| 36 | |
| 37 | {{{ |
| 38 | # src/utils/profiles/compare_xml |
| 39 | |
| 40 | Comparing XML files (*.xml)... |
| 41 | Differences found in build/xml/profile_grid05.xml |
| 42 | Differences found in build/xml/profile_grid06.xml |
| 43 | Differences found in build/xml/profile_grid07.xml |
| 44 | |
| 45 | # src/utils/profiles/compare_xml -v -p profile_grid05 |
| 46 | |
| 47 | Comparing XML files (profile_grid05.xml)... |
| 48 | Differences found in build/xml/profile_grid05.xml |
| 49 | --- build.saved/xml/profile_grid05.xml 2006-07-28 11:41:45.000000000 +0200 |
| 50 | +++ build/xml/profile_grid05.xml 2006-07-28 11:50:58.000000000 +0200 |
| 51 | @@ -960,7 +960,6 @@ |
| 52 | <options> |
| 53 | <dpm> |
| 54 | <db> |
| 55 | - <adminpwd type="string">MyPrefPwd</adminpwd> |
| 56 | <adminuser type="string">root</adminuser> |
| 57 | <configfile type="string">/opt/lcg/etc/DPMCONFIG</configfile> |
| 58 | <password type="string">DpmMgrPwd</password> |
| 59 | |
| 60 | }}} |