source: tailor/tailor @ 882

Revision 882, 926 bytes checked in by lele@…, 8 years ago (diff)

Reorganization of the test suite

  • Dropped "Test" from test names
  • Added an option --list get the available tests
  • Splitted the too heavy operational test into smaller suites
  • Added bazaar-ng source backend test
Line 
1#!/usr/bin/env python
2# -*- mode: python; coding: utf-8 -*-
3# :Progetto: vcpx -- Frontend
4# :Creato:   lun 03 mag 2004 01:39:00 CEST
5# :Autore:   Lele Gaifax <lele@nautilus.homeip.net>
6# :Licenza:  GNU General Public License
7#
8
9"""
10Keep a tree in sync with its "upstream" repository of a (possibly)
11different format.
12
13For more documentation, see the README file from the distribution.
14"""
15
16__docformat__ = 'reStructuredText'
17
18if __name__ == '__main__':
19    import sys
20    import locale
21
22    locale.setlocale(locale.LC_CTYPE, '')
23    if len(sys.argv)>1 and sys.argv[1] == 'test':
24        from vcpx.tests import main
25        main()
26    else:
27        from vcpx import *
28
29        if len(sys.argv) == 1:
30            sys.argv.append('--help')
31
32        try:
33            main()
34        except TailorExceptions, exc:
35            print "%s: %s" % (exc.__doc__, exc)
36        except KeyboardInterrupt:
37            print "Stopped by user"
Note: See TracBrowser for help on using the repository browser.