#! /usr/bin/env python

import os.path
import subprocess
import sys

# Set the environment
from env import setenv
setenv()

from langkit.libmanage import ManageScript, get_cpu_count
from langkit.utils import Colors, printcol


class Manage(ManageScript):

    def __init__(self):
        super(Manage, self).__init__()

        ########
        # Test #
        ########

        self.test_parser = test_parser = self.subparsers.add_parser(
            'test', help=self.do_test.__doc__
        )
        test_parser.add_argument(
            '--with-gnatpython', '-g', action='store_true',
            dest='with_gnatpython', default=False,
            help='Try to use GNATpython in the testsuite'
        )
예제 #2
0
#! /usr/bin/env python

from __future__ import absolute_import, division, print_function

import os.path
import subprocess
import sys

# Set the environment
from env import setenv
setenv()

import copyright

from langkit.diagnostics import check_source_language
from langkit.libmanage import ManageScript
from langkit.utils import Colors, printcol


class Manage(ManageScript):

    ENABLE_BUILD_WARNINGS_DEFAULT = True

    PERF_PARSE = 'parse'
    PERF_PARSE_AND_TRAVERSE = 'parse-and-traverse'
    PERF_CHOICES = (PERF_PARSE, PERF_PARSE_AND_TRAVERSE)

    def __init__(self):
        super(Manage, self).__init__()

        ########