source: trunk/packages/xen-3.1/xen-3.1/tools/xm-test/lib/XmTestReport/xmtest.py.in @ 34

Last change on this file since 34 was 34, checked in by hartmans, 17 years ago

Add xen and xen-common

  • Property svn:mime-type set to text/script
File size: 380 bytes
Line 
1#!/usr/bin/python
2
3XM_TEST_VERSION = "@PACKAGE_VERSION@"
4
5if __name__ == "__main__":
6    import re
7
8    match = re.match("^(\d+)\.(\d+)\.(\d+)$", XM_TEST_VERSION)
9
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)
15       
Note: See TracBrowser for help on using the repository browser.