Commit Graph

7 Commits

Author SHA1 Message Date
Charly Delay
cf7de3c106 testsuite: refactor for clarity and maintenance
Change-Id: I1d500175c06a0839268c8a3c4bfc31043c1bf259
2015-09-30 18:23:28 +02:00
Charly Delay
67aa11f229 testsuite: minor test reformating
Extract the test about cross support in two separate test cases in
tests.api-python.project:

 * check-cross-api.py
 * check-cross-api-override.py

Change-Id: I7a2e3de80f0193553a5879bad55032f6b2bd5abd
TN: O909-050
2015-09-30 03:41:48 +02:00
Charly Delay
20b809d27c gnathub: add support for cross options (--target, --RTS)
* add support in GNAThub for --target and --RTS command line
   switches.
 * add support for Target and Runtime attributes defined in the project
   file.
 * add tests to cover the new API methods (Project.target &
   Project.runtime).

Change-Id: I42a88471598fefec16a7505ad70cd24b08f3dd8b
TN: O909-050
2015-09-28 21:56:06 +02:00
JC Delay
be4e020101 Add a test for GNAThub.Project.scenario_switches()
Change-Id: I5757f952ff8f2656d7de52b8de929f471b2de857
2015-05-27 17:43:32 +02:00
JC Delay
1233534158 Unify GNAThub.Plugin.name()
Provide a default implementation to the GNAThub.Plugin.name property:

    return type(self).__name__

Use plugin().name along with plugin.__name__ to discriminate plugins
from their name in the plugin-runner.py.

Change-Id: Ie478427ffd78c45cdab8dd1e842b3736020cd710
TN: N623-022
2014-08-14 19:48:58 +02:00
JC Delay
71720f2491 gnathub: add support for fetching any project-attribute.
The lack of such support was uncovered by a customer that wants to
access the "Main" attribute of the project file. Generalizing the
"Property_As_String" and "Property_As_List" routine is simple enough and
does not break backward compatibility.

src/gnathub/ChangeLog:

  * gnathub-project.ad? (GNATdashboard_Package): Rename the constant for
    consistency with GNATCOLL.Project and make its declaration public so
    that it can be referenced from other packages (in particular:
    GNAThub.Python).
    (Property_As_List, Property_As_String): New optional parameter
    "Package_Name". Defaults to GNATdashboard_Package.
  * gnathub-pyhton.adb (Register_Project_Class): Register the optional
    parameter "package" to Python static methods property_as_list and
    property_as_string.

src/lib/GNAThub/ChangeLog:

  * __init__.py (property_as_list, property_as_string): Update
    documentation.

testsuite/tests/api-python/project/*:

    * Add a new test to extract the "main" attribute from the project
      file.

features-10: New features file to keep track of enhancements.

Change-Id: I2f6808b95f76581432e0893847b951183d4ca341
TN: N623-022
2014-06-30 14:05:02 +02:00
JC Delay
497fa66e8b gnathub: update testsuite with new support.
Change-Id: Id628a5f3eff0776c91315aac54db2db8ed828495
Issue: DSH-60.
2014-04-25 16:48:22 +02:00