1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 22:22:11 +02:00
Commit graph

35106 commits

Author SHA1 Message Date
Jonah Graham
48180e437c Bug 499777: Don't fail build if no tests are found
using tags can cause all tests to be excluded, which is
ok and should not fail the build

Change-Id: Ia7f5e06c6bfb76df0cd3ac7b5ffe13e555489fad
2021-04-06 20:21:44 -04:00
Jonah Graham
b837e37254 [releng] Tycho surefire default includes now match CDT
So we can remove the duplicate definition in our project

Change-Id: Iffe54568aba5c6832c45b5798c1d515c906ac2ce
2021-04-06 20:21:44 -04:00
Jonah Graham
063e8096e9 Cosmetics.
Apply code cleanups.

Change-Id: I9207cbe1808484eeac1072bd19ed3dcbc71b53f9
2021-04-06 18:13:46 -04:00
Jonah Graham
7ef7f04d0c Remove launch files that have little value
These launch files are basically all defaults and fill every devs space
but no one is running them on a regular basis.

Change-Id: I194dadd2ca55a20489935e690e3cd94357026389
2021-04-06 13:38:01 -04:00
Jonah Graham
48156b4653 Bug 572594: Avoid using generic Consumer interface
Using the Consumer interface means that code navigation is substantially
harder. e.g. open ImportMemoryDialog and do a call hierarchy on who
calls scrollRenderings.

You end up in Consumer.accept, which (naturally) has 100s of callers, so
identifying which ones are relevant is very difficult.

Change-Id: I8817568e992955d5b01a591a9cffb2447b9e5008
2021-04-06 13:06:25 -04:00
Jonah Graham
f89c3c3003 Fix NPE in LaunchBarManager
This comes up when doing headless DSF-GDB tests, not sure users can
hit it, but rather than logging an NPE, just check for it upfront.

Change-Id: I224b7e3a881c5e7bc2e1c1b00c1c3da58c745567
2021-04-06 10:47:18 -04:00
Jonah Graham
2fae0b79c2 [releng] Fixup for Bug 572552: Correct URL for linuxtools docker
Change-Id: I2eebf1e8ef9ceac965e609f553d8a8347567fb36
2021-04-05 22:43:09 -04:00
Jonah Graham
4df00fd345 Bug 572581: Run tests on all newer GDBs
Change-Id: I10e89dae366278ab4535921f2a69e0b7806db583
2021-04-05 09:09:54 -04:00
Jonah Graham
48de9319c6 Bug 518689: Be lenient in cases where gdb provides extra info
In some targets (such as the build machines @ Eclipse) gdb is
returning thread names for remote debugging. No longer fail tests
in this case as long as the provided name is empty or correct.

Change-Id: I5f59f279a9d477e2c1ccb32098bbe1dad08cf334
2021-04-05 09:09:53 -04:00
Jonah Graham
821eb7b1a4 Cosmetics.
Change-Id: Ia7b7e64685094b4a60f2e796dae24f8575e0ed33
2021-04-05 09:09:53 -04:00
Jonah Graham
52ebe1f76f Bug 572581: update jnilibs for new version of cdt-infra
rebuilt docker images have small binary differences
in the jnilibs due to a rebuilt macOS toolchain being
used.

Change-Id: I25dc951e1e8c7c94a799d63a4c0db644d1f1be1e
2021-04-04 21:18:31 -04:00
Alexander Fedorov
8dbf024ab8 Bug 572552 - CDT releng: update versions to 10.3.0
Added missed license headers
Updated baseline for the parent pom to CDT 10.2
Updated version for pom.xml to 10.3
Updated version for features and bundles to CDT 10.3
Updated copyright for about.properties to be 2021
Incremented version + 100 where needed

Change-Id: I79666fcc0402fee6607499d7dce1eaf87a5f446d
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2021-04-04 16:17:25 -04:00
Jonah Graham
37fff49636 [releng] Update to latest (2.3.0) tycho
Change-Id: I630b694e5e314c1211b91135ad86dfd605b950ed
2021-04-03 20:40:50 -04:00
Jonah Graham
e5eb338f71 [releng] Update to latest maven-pmd-plugin
Change-Id: Idf49ce332d5480fe5982bf60788e085e0cb37d27
2021-04-03 20:40:32 -04:00
Jonah Graham
f0d7dd7864 Document and update cdt.tests.dsf.gdb.versions build variable
Change-Id: I8ec4216a875f8c23fb7c4594c6414a23bac0a46d
2021-04-03 20:23:09 -04:00
Alexander Fedorov
149aca51f9 Bug 572552 - CDT releng: update baseline to 2021-03
Increment version for org.eclipse.cdt.doc.user

Change-Id: I893d0c91874624d579e0069bc656cf702c84d8c7
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2021-04-03 10:33:44 +03:00
Alexander Fedorov
644241d530 Bug 572552 - CDT releng: update baseline to 2021-03
Increment version for org.eclipse.cdt.doc.isv

Change-Id: Iaecdce9bad474af7583329ce9566dc4a047bf641
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2021-04-03 09:02:03 +03:00
Alexander Fedorov
e629a98e5e Bug 572552 - CDT releng: update baseline to 2021-03
Increment version for org.eclipse.cdt.debug.gdbjtag

Change-Id: Ib2cc5067f4c87dac27e44e5ee17535e127579f24
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2021-04-03 01:56:41 -04:00
Marc-Andre Laperle
8b3998eb41 Bug 320186 - Support MSbuild error pattern in VC error parser
Change-Id: I2bea83a4ec79104f4ce7099ced2a7cde1c77a129
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2021-04-02 22:36:15 -04:00
Jonah Graham
6f20a51ae7 [releng] fix typo that meant maven prerequiste check was not working
Change-Id: I4029359f0f356546bbb2447797b34bb317312009
2021-04-02 15:50:13 -04:00
Alexander Fedorov
212084cc6d Bug 572552 - CDT releng: update baseline to 2021-03
Updated baseline to 2021-03 for
* cdt-baseline.target
* CDT.setup
* parent pom is not changed


Updated target to 2021-03 where it was pointing to older versions for
* cdt.target
* CDT.setup

Change-Id: Ie8117b4cb6f86c8ad105710d14dde6222380d289
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2021-04-02 13:23:10 +03:00
Jonah Graham
466c20618b Bug 572347: Remove pack200 jars
Change-Id: I6931d7737eedf5a02c94de4bfb050dded465ca9a
2021-03-26 16:22:54 -04:00
John Dallaway
68879e696d Bug 457697: Set executable file in launch sequence
Change-Id: I777652f3c27e0f0a680042194051592614867527
2021-03-19 15:03:48 +00:00
Jonah Graham
16e0804758 Bug 559272: Connect help to new wiki page
Change-Id: Id84096cea958a7956c7193ee465de4d2e539e216
2021-03-15 11:48:03 -04:00
Jonah Graham
6874b7e013 Bug 341721: Add context menu item to change terminal name
Change-Id: Idd41b58ad4f052c32d6a9c57303f1b9ef05aff7c
2021-03-01 18:51:58 -05:00
Jonah Graham
fe00320854 Bug 341721: Update terminal tab title with ANSI command
All the hard work had been done before, simply no one had actually
added the bit of code to update the title based on the listener.

Change-Id: Icdbc7b9b0a9b8fccf7d4eddf8d20674e50e0a170
2021-03-01 18:51:58 -05:00
Torbjörn SVENSSON
afd8342ec0 Bug 571458: Return verdict of all configs
When invoking the headless build, the verdict should be the "sum" of
all the build configurations. If one build configuration fails, then
the verdict of the build should also be "failed".

Contributed by STMicroelectronics

Change-Id: Ic3237d3531657f7f89c9338142ebf8fdb477c481
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2021-03-01 11:47:47 +01:00
Torbjörn SVENSSON
1404e46d70 Bug 571566: Document how to choose workspace for headless build
Moved handling of "-help" to a new plugin using the same approach as
was used for the JavaCodeFormatter in bug 543363. This mainly allows
to get the help text even if the workspace is missing.

Contributed by STMicroelectronics

Change-Id: I4ee2e93f0e8fed13ddebd70c3bce58f047aa1d12
Also-by: Jonah Graham <jonah@kichwacoders.com>
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2021-03-01 02:40:52 -05:00
Torbjörn Svensson
61510747dc Improved plugin name to "Launch over Serial UI Plugin"
Contributed by STMicroelectronics

Change-Id: Id3a52a912492b1571374b570fe07009aa08f2b9b
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-03-01 02:40:27 -05:00
Jonah Graham
d3f09041de Bug 570775: Correct ID of InvertColorsAction
Change-Id: Id74b075a3a0d932cb65041c8d206f9ca2663cdf1
2021-02-28 07:41:29 -05:00
Jonah Graham
67c048d5cc Cosmetics.
Change-Id: I130139bc6f3f711976f988b150400f822f23bea8
2021-02-28 07:41:29 -05:00
Torbjörn SVENSSON
0ca137e854 Bug 571433: Make ManagedCommandLineGenerator API
Allow extenders to extend the ManagedCommandLineGenerator in order to
add options that are placed on the toolchain node instead of the tool.

Contributed by STMicroelectronics

Change-Id: I548bcbf72f1290cd4bc0ce830c27ce032a62c9c9
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2021-02-26 14:47:34 -05:00
Jonah Graham
cdd00392c1 Bug 571472: Don't resolve multi-line strings
Change-Id: Id6a8b208cb6bc965a2c8d781ba41bca3b3094685
2021-02-25 07:39:04 -05:00
Torbjörn SVENSSON
f7c88ecd73 Bug 406497: Fixed wrong null check
Contributed by STMicroelectronics

Change-Id: I741bdde5708a7dd4583a3afbb83c5ec8643b8cc0
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2021-02-24 16:57:37 +01:00
Umair Sair
321100a2a7 Bug 571161 - MIBreakpointsSynchronizer is broken in certain scenarios
- Added null check to prevent NPE.
- Fixed the collector used in doTargetBreakpointsSynchronized method.

Change-Id: I1ea48b9231882923fe364321e42d0202a0924bf3
Signed-off-by: Umair Sair <umair_sair@hotmail.com>
2021-02-23 11:01:21 -05:00
Torbjörn SVENSSON
7760ce2eb7 Properly invoke diff command during test
Contributed by STMicroelectronics

Change-Id: Ic67a3331375cf0eb071d2b24e2c9716114aeb4dd
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2021-02-23 14:02:59 +01:00
Torbjörn SVENSSON
c809bde381 Bug 571384: Rebuild required files when configuration has changed
A change of build configuration should rebuild the artifact.
With make, this is achieved by depending on the makefile that contains
the rule to build the artifact. If the flags change, so will the
makefile do and the artifact is rebuilt.

Contributed by STMicroelectronics

Change-Id: I56e0376ff9bfa5629b55c1b6c9f94a6f930e0d69
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2021-02-22 14:53:52 -05:00
Torbjörn SVENSSON
b063af68ad Bug 571405: Generate rules with -MT"$@"
When there is a linked file in the project, the build target for the
content in the .d file should be the .o file as that is what is
depending on the source file.

Use "$@" rather than "$(@)" as it's the usual syntax for single letter
variables in make.

Contributed by STMicroelectronics

Change-Id: I6b024b2b3a1a8b061740e99de5e96923981c92fa
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2021-02-22 14:35:58 -05:00
Torbjörn SVENSSON
07d8edaf28 Bug 571381: Generate BUILD_ARTIFACT* symbols in makefile
The symbols generated are:
* BUILD_ARTIFACT_NAME
  Value of "Artifact name" field defined in the build configuration
* BUILD_ARTIFACT_EXTENSION
  Value of "Artifact extension" field defined in the build configuration
* BUILD_ARTIFACT_PREFIX
  Value of "Output prefix" field defined in the build configuration
* BUILD_ARTIFACT
  Assembly of the other values to build the target file name

The above symbols make it easier to extend the generated makefile using
the provided makefile hooks "makefile.init", "makefile.defs" and
"makefile.targets". There is no longer need to duplicate the name of
the target artifact in the hooks files.
The hooks can for example be used when the post-build step is not
flexible enough. By placing the post-build step in makefile.targets,
when done properly, will let the user have full control over the
sequence, including parallelism, for the required steps.

Contributed by STMicroelectronics

Change-Id: I163917837b65cb397eb5943c4357a54e9576cf42
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2021-02-20 15:22:22 +01:00
Alexander Fedorov
73491800ac Align CDT.setup with target platform
Add com.sun.jna* 5.6.0+
Switch to jakarta.xml.bind
Require javax.activation 1.2.2+

Change-Id: I28a1c7c7be085e9970ea94e5f44ce0a5b7f7cc6e
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2021-02-09 20:52:21 +03:00
John Dallaway
c66d331a95 Bug 570992: Fix templates extension point documentation
The "filterPattern" attribute is used to filter templates by language
ID, not by build configuration ID.

Change-Id: Idd89fffc2ec3aefc3c1421b4cbbc7e1a19dbb7f3
2021-02-07 04:03:44 -05:00
Victor Rubezhny
20598975f4 Bug 569172 - Debug framework should provide way to report unit test results to the generic "test report" view
Assign acorrect version for  org.eclipse.cdt.unittest.feature

Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
Change-Id: I642655f13e6a2cd2df5b4e23d7713ca749a4eccd
2021-02-05 12:42:50 +01:00
Jonah Graham
afee900b24 [releng] Fixup API error due to missing verion bump
Change-Id: I149aeb8f148f0f223e7ec09a73e153df5be68836
2021-02-03 09:50:12 -05:00
Jonah Graham
9c370cfcf0 Bug 521515: Update to JNA 5.6.0
Change-Id: Id56f6366e0bbaa33b1d0967cd64487fc173b3833
2021-02-02 21:14:08 -05:00
Victor Rubezhny
3e485f66d1 Bug 569172 - Debug framework should provide way to report unit test results to the generic "test report" view
Publish org.eclipse.cdt.unittest.feature

Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
Change-Id: I1bdfed66b4637f9e4063cc7bde5caeccb9d329ad
2021-02-02 19:06:04 +01:00
Jonah Graham
64e21a93c4 Bug 499777: Flaky and slow test tags
to exclude flaky and slow tests from gerrit runs and main build
tests can be tagged as such. See BTreeExpensiveTests for example
of a slow test and Bug_303953Test for an example of a flaky one.

The root README.md has a few notes on converting tests to JUnit5
and adding annotations to mark them slow or flaky.

Change-Id: I03a4004112e6a500d8ec2771d68f14f7dc5f67fb
2021-02-01 11:32:58 -05:00
Jonah Graham
5c82be881d Bug 569839: Provide a new JUnit5 base and utility classes
Change-Id: I8682f4702cfa0cad7d0452ca48d1ab74eeb1dbdb
2021-02-01 11:32:53 -05:00
Fabrizio Iannetti
3b680c8d8e Bug 570775: Add pop-up action to invert terminal colors on the fly
New action to temporarily invert the terminal colors,
the preference setting is not altered by this action.
Only the active terminal is affected.

Change-Id: Idc01163838539c2ba5699556951c1742bbf07ad6
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2021-01-30 12:08:50 -05:00
Jonah Graham
50f2172fba Bug 569172 - Debug framework should support generic "unit test" view
Add new target platform dependency to cdt.setup.

Change-Id: I0af034d1fc19e7fe143b33742634f3f01905d41f
2021-01-28 12:37:13 -05:00
Jonah Graham
b175f972e0 [releng] Fix newlines
This file has \r newlines only before.

Change-Id: I1825516a701b960613f4c3a1418b36177a4f28a1
2021-01-28 12:37:12 -05:00