210 Commits

Author SHA1 Message Date
Pierre-Marie de Rodat
14415c9ce6 Testsuite: simplify interface of emit_and_print_errors
(no-tn-check)
2017-08-10 15:46:07 +02:00
Pierre-Marie de Rodat
55da17b2d6 Merge CompiledTypeMetaclass and StructMetaclass
TN: Q606-051
2017-06-14 13:37:43 +02:00
Pierre-Marie de Rodat
bd9932f18d Split ASTNode and ASTNodeType
TN: Q606-051
2017-06-12 16:09:10 +02:00
Pierre-Marie de Rodat
1fb182d3b8 Split Struct and StructType
Struct is now only at the DSL layer, while StructType is the "refined"
internal subclass.

TN: Q606-051
2017-06-08 15:48:17 +02:00
Pierre-Marie de Rodat
c3539db92b Move TypeRepo.type_dict to CompiledTypeMetaclass...
... so that the dict is automatically updated when new compiled types
are created.

TN: Q606-051
2017-06-08 14:03:11 +02:00
Pierre-Marie de Rodat
750f15ed80 Remove the implicit environment mechanism
TN: Q529-023
2017-05-31 15:34:20 +02:00
Pierre-Marie de Rodat
1f6b0c82cf python_support/utils: minor unfreeze refactoring
TN: Q529-023
2017-05-31 15:15:19 +02:00
Pierre-Marie de Rodat
d11c8a5d4a Remove all unicode_literals imports from __future__
TN: Q223-029
2017-04-25 14:24:30 +02:00
Pierre-Marie de Rodat
5f95af303c Python testcases: forward test.py args to libmanage call
TN: minor
2017-04-11 12:28:57 +02:00
Pierre-Marie de Rodat
a25ad8a9d7 Testsuite: reset StructMetaclass.entity_info
TN: Q411-002
2017-04-11 12:11:41 +02:00
Raphael Amiard
61ce79e239 Q324-005: Always show full error trace in tests 2017-04-10 12:18:22 +02:00
Pierre-Marie de Rodat
a464818342 testsuite/: update __future__ imports
TN: Q223-029
2017-02-24 11:15:42 +01:00
Pierre-Marie de Rodat
304d859b50 testsuite: write a "setenv.sh" script for build_and_run Python tests
TN: Q216-015
2017-02-16 16:05:26 +01:00
Pierre-Marie de Rodat
f0ab77c91d testsuite/python_support/utils.py: fix a minor coding style issue
TN: Q127-013
2017-02-01 17:00:53 +01:00
Raphael Amiard
6795803b3d Q127-013: Allow to reset memoized properties 2017-01-31 12:18:45 +01:00
Raphael Amiard
f910f8d569 Minor: remove unused imports 2017-01-16 14:21:19 +01:00
Raphael Amiard
8e677e222e Q116-024: do not import lexer in test utils
This was making it impossible to use another lexer, due to some global
state in the lexer langkit module. TBI.
2017-01-16 13:52:39 +01:00
Pierre-Marie de Rodat
60f1a52a52 Testsuite example lexer: allow numeric characters in identifiers
Change-Id: Iea32304a23b4a4c29feee8154fc381ab8e146274
TN: Q112-034
2017-01-13 11:07:51 +01:00
Pierre-Marie de Rodat
949f7c4ca4 Lexer: remove the NoText token action class
Now that all tokens have text anyway, NoText can just be replaced with
WithText.

Change-Id: I384e837bf7746a02dbefd61c1877995fd0330464
TN: PC19-012
2017-01-06 17:14:44 +01:00
Pierre-Marie de Rodat
2e517019ba Add a testcase for external properties
Change-Id: Ia97f476ad5daa858a5063940146e90662255aa09
TN: PC13-017
2016-12-14 10:52:48 +01:00
Pierre-Marie de Rodat
8126a5f0b1 Make it possible to provide extensions in testcases
Change-Id: Iee5f7b4e404649174544229654b42bae24d26b93
TN: PC13-017
2016-12-14 10:14:12 +01:00
Raphael Amiard
f032b5fb93 Minor: unfreeze env in reset_langkit 2016-12-07 16:37:42 +01:00
Raphael Amiard
3f6524a7fd P303-009 - reset_langkit: Correctly reset T TypeRepo 2016-11-16 17:05:32 +01:00
Pierre-Marie de Rodat
2bc95c4908 Remove ASTNode and Struct from holders in StructMetaclass
Change-Id: I1b486cb5fe655fda8fce80c942cd3431b07067ac
TN: P622-029
2016-07-07 18:24:54 +02:00
Pierre-Marie de Rodat
229ff60739 StructMetaClass: rename into StructMetaclass (casing)
This makes it consistent with CompiledTypeMetaclass. And this is easier
to type!

Change-Id: Ia5d21aa325e1de54ffa653f6ef87dd67f6131d15
TN: P622-029
2016-06-28 16:41:06 +02:00