ia64/xen-unstable

view tools/xm-test/lib/XmTestReport/xmtest.py.in @ 12765:43671a60b0f1

Merge
author Alastair Tse <atse@xensource.com>
date Fri Dec 01 18:33:11 2006 +0000 (2006-12-01)
parents ab845d97de72
children
line source
1 #!/usr/bin/python
3 XM_TEST_VERSION = "@PACKAGE_VERSION@"
5 if __name__ == "__main__":
6 import re
8 match = re.match("^(\d+)\.(\d+)\.(\d+)$", XM_TEST_VERSION)
10 print "XM_TEST_VERSION=%s" % XM_TEST_VERSION
11 if match:
12 print "XM_TEST_MAJ=%s" % match.group(1)
13 print "XM_TEST_MIN=%s" % match.group(2)
14 print "XM_TEST_REV=%s" % match.group(3)