File: __init__.py

package info (click to toggle)
libgnatcoll 1.6gpl2014-6
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 22,760 kB
  • ctags: 10,162
  • sloc: ada: 132,013; ansic: 94,291; python: 3,762; sh: 2,781; cpp: 1,394; makefile: 342; xml: 31; sql: 6
file content (98 lines) | stat: -rw-r--r-- 2,956 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import unittest
from support import GNATCOLL_TestCase, chdir, pathsep, requires_windows
import os


class Test(GNATCOLL_TestCase):
    @chdir("prj1")
    def test_prj(self):
        self.gprbuild()
        self.runexec("obj/test_projects", "")

    @chdir("K302-015")
    def test_K302_015(self):
        self.gprbuild("iter.gpr")
        self.runexec("obj/iter", "test.out", sorted=True)

    @chdir("K712-015")
    def test_K712_015(self):
        self.gprbuild("testit.gpr")
        self.runexec("test_it", "test.out")

    @chdir("K926-026")
    def test_K926_026(self):
        self.gprbuild("prj.gpr")
        self.runexec("main", "")

    @chdir("KB30-016")
    def test_KB30_016(self):
        self.gprbuild("testit.gpr")
        self.runexec("test_it", "")

    @chdir("L801-020")
    def test_L801_020(self):
        self.gprbuild("default.gpr")
        self.runexec("obj/test_projects", "")

    @chdir("c_sources")
    def test_c_sources(self):
        self.gprbuild("default.gpr")
        self.runexec("obj/test_c", "test.out")

    @chdir("M320-003")
    def test_M320_003(self):
        # We want the same error messages in gprbuild and GNATCOLL
        # (GNATCOLL used to drop the missing withs)
        self.gprbuild("xxxx.gpr")
        self.runexec("main", "test.out")

    @chdir("objects")
    def test_objects(self):
        # Test that we can correctly find the location of ALI files
        # in the presence of extending projects
        self.runexec(["sh", "test.cmd"], "")

    @chdir("objects2")
    def test_objects2(self):
        # Test that we can correctly find the location of ALI files
        # when using xref_subdirs
        self.runexec(["sh", "test.cmd"], "")
		
    @chdir("aggregate")
    def test_aggregate(self):
        # Test that we can load aggregate project, get sorce files
        # and iterate through project hierarchy
        self.gprbuild("default.gpr")
        self.runexec("main", "")

    @chdir("aggregate_info")
    def test_aggregate_info(self):
        # Test that we can get File_Info via Info_Set and results
        # are correct
        self.gprbuild("default.gpr")
        self.runexec("main", "") 

    @requires_windows
    @chdir("aggregate_info_win")
    def test_aggregate_info_win(self):
        # Test on mixed casing passed to Info
        self.gprbuild("default.gpr")
        self.runexec("main", "")

    @chdir("aggregate_create")
    def test_aggregate_create(self):
        # Test on Create for aggregate projects
        self.gprbuild("aggr.gpr")
        self.gprbuild("default.gpr")
        self.runexec("main", "")

    @chdir("aggregate_ali")
    def test_aggregate_ali(self):
        # Test that ALI files with same base names but from different
        # aggregated projects do not exclude each other
        self.gprbuild("p2_2.gpr")
        self.gprbuild("p2.gpr")
        self.gprbuild("p1.gpr")
        self.gprbuild("default.gpr")
        self.runexec("main", "")