Commit [5f1d3d] Maximize Restore History

Utils: New script to compare constants in Python and C library

Sorry for hurting your eyes again with perl voodoo regex.

Generally this script compare constants in Python and C library using known
name conversion(please check py_name_2_c_name()):
1. Convert CaMel to CA_MEL
2. Convert System to SYSTEM
3. Convert Capabilities to CAP and etc using %PY_CLASS_NAME_CONV;

The report will be like:
=====
PASS lsm.Volume.REPLICATE_SNAPSHOT 1(1)
LSM_VOLUME_REPLICATE_SNAPSHOT 1(1)
PY_MISS ACCESS_GROUP_MASKED 502(502)
C_MISS lsm.Disk.STATUS_REMOVED 1 << 5(32)
FAIL lsm.Fake.FAKE_NAME 1 << 5(32)
LSM_FAKE_FAKE_NAME 0x000010(16)
=====

It found many missing, no failure in current code tree.
We will discuss and patch them later.

Signed-off-by: Gris Ge <fge@redhat.com>

Gris Ge Gris Ge 2014-08-27

Tony Asleson Tony Asleson 2014-08-27

added tools/utility/check_const.pl
tools/utility/check_const.pl Diff Switch to side-by-side view
Loading...