meson/test cases/unit
Benjamin Gilbert 35e230e48c depfixer: silence fix_jar() and make it do something
fix_jar() tries to remove an existing Class-Path entry from the jar
manifest by postprocessing the manifest and passing it to `jar -um`.
However, `jar -um` can only add/replace manifest entries, not remove
them, and it also complains loudly when replacing an entry:

    Dec 13, 2022 7:11:19 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Manifest-Version.
    Ensure that the manifest does not have duplicate entries, and
    that blank lines separate individual sections in both your
    manifest and in the META-INF/MANIFEST.MF entry in the jar file.

Thus fix_jar() produces one such warning for each entry in the manifest
and accomplishes nothing else.

Use jar -uM instead.  This completely removes the manifest from the jar
and allows adding it back as a normal zip member, fixing fix_jar() and
avoiding the warnings.

Fixes: https://github.com/mesonbuild/meson/issues/10491
Fixes: c70a051e93 ("java: remove manifest classpath from installed jar")
2022-12-14 15:37:59 -05:00
..
1 soname shared_module: Add soname when used as a link target 2021-11-24 23:18:53 +05:30
2 testsetups CI: fix error when mixing clang 14 with released valgrind versions 2022-08-11 08:05:48 -07:00
3 subproject defaults editorconfig: add setting to trim trailing whitespace 2021-08-15 09:36:18 -04:00
4 suite selection Use strict function prototypes 2019-11-18 22:21:36 +02:00
5 compiler detection editorconfig: add setting to trim trailing whitespace 2021-08-15 09:36:18 -04:00
6 std override Fix ICC on macOS 2018-09-16 18:27:19 +03:00
7 run installed editorconfig: add setting to trim trailing whitespace 2021-08-15 09:36:18 -04:00
8 -L -l order Condense test dirs. 2018-07-31 19:22:24 +03:00
9 d dedup editorconfig: add setting to trim trailing whitespace 2021-08-15 09:36:18 -04:00
10 build_rpath Condense test dirs. 2018-07-31 19:22:24 +03:00
11 cross prog Added warning if run_command is called without the check kwarg 2021-10-30 22:26:28 -04:00
12 promote editorconfig: add setting to trim trailing whitespace 2021-08-15 09:36:18 -04:00
13 reconfigure test_reconfigure switched to b_coverage from b_lto 2018-03-21 16:45:22 +03:00
14 testsetup selection Use strict function prototypes 2019-11-18 22:21:36 +02:00
15 prebuilt object Condense test dirs. 2018-07-31 19:22:24 +03:00
16 prebuilt static Condense test dirs. 2018-07-31 19:22:24 +03:00
17 prebuilt shared unit tests: Extend prebuilt test to test intermediate 2021-11-24 02:23:57 +05:30
18 pkgconfig static Condense test dirs. 2018-07-31 19:22:24 +03:00
19 array option Condense test dirs. 2018-07-31 19:22:24 +03:00
20 subproj dep variables do_subproject: Improve log messages and formatting 2019-01-16 11:16:46 -05:00
21 exit status Add a test case for python exception exit status 2018-02-15 12:51:25 +00:00
22 warning location decorators: Make unknown kwarg fatal 2021-08-30 14:00:54 -04:00
23 unfound pkgconfig Condense test dirs. 2018-07-31 19:22:24 +03:00
24 compiler run_command Added warning if run_command is called without the check kwarg 2021-10-30 22:26:28 -04:00
25 non-permitted kwargs Use strict function prototypes 2019-11-18 22:21:36 +02:00
26 install umask Condense test dirs. 2018-07-31 19:22:24 +03:00
27 pkgconfig usage editorconfig: add setting to trim trailing whitespace 2021-08-15 09:36:18 -04:00
28 ndebug if-release Condense test dirs. 2018-07-31 19:22:24 +03:00
29 guessed linker dependencies Use strict function prototypes 2019-11-18 22:21:36 +02:00
30 shared_mod linking Condense test dirs. 2018-07-31 19:22:24 +03:00
31 forcefallback Condense test dirs. 2018-07-31 19:22:24 +03:00
32 pkgconfig use libraries editorconfig: add setting to trim trailing whitespace 2021-08-15 09:36:18 -04:00
33 cross file overrides always args Condense test dirs. 2018-07-31 19:22:24 +03:00
34 command line coredata: CmdLineFileParser no longer interpolates strings. 2019-11-13 22:04:15 +02:00
35 dist script Make compilers list per subproject 2022-03-24 12:27:06 -04:00
36 exe_wrapper behaviour interpreter: Rename has_exe_wrapper -> can_run_host_binaries 2020-05-14 11:04:51 -07:00
37 mixed command line args Condense test dirs. 2018-09-06 19:09:35 +03:00
38 pkgconfig format Condense test dirs. 2018-09-06 19:09:35 +03:00
39 external, internal library rpath Condense test directory names. 2022-03-29 02:12:02 +03:00
40 featurenew subprojects Condense test directory names. 2022-03-29 02:12:02 +03:00
41 rpath order Condense test directory names. 2022-03-29 02:12:02 +03:00
42 dep order Condense test directory names. 2022-03-29 02:12:02 +03:00
43 promote wrap Condense test directory names. 2022-03-29 02:12:02 +03:00
44 vscpp17 Condense test directory names. 2022-03-29 02:12:02 +03:00
45 native dep pkgconfig var Condense test directory names. 2022-03-29 02:12:02 +03:00
46 native file binary Condense test directory names. 2022-03-29 02:12:02 +03:00
47 reconfigure Condense test directory names. 2022-03-29 02:12:02 +03:00
48 testsetup default Condense test directory names. 2022-03-29 02:12:02 +03:00
49 pkgconfig csharp library Condense test directory names. 2022-03-29 02:12:02 +03:00
50 noncross options Condense test directory names. 2022-03-29 02:12:02 +03:00
51 ldflagdedup Condense test directory names. 2022-03-29 02:12:02 +03:00
52 pkgconfig static link order tests: fix targets with no sources 2022-08-17 13:44:08 -07:00
53 clang-format Condense test directory names. 2022-03-29 02:12:02 +03:00
54 introspect buildoptions/subprojects/projectBad Condense test directory names. 2022-03-29 02:12:02 +03:00
55 dedup compiler libs Condense test directory names. 2022-03-29 02:12:02 +03:00
56 introspection Condense test directory names. 2022-03-29 02:12:02 +03:00
57 pkg_config_path option Condense test directory names. 2022-03-29 02:12:02 +03:00
58 introspect buildoptions Condense test directory names. 2022-03-29 02:12:02 +03:00
59 native file override Condense test directory names. 2022-03-29 02:12:02 +03:00
60 identity cross Condense test directory names. 2022-03-29 02:12:02 +03:00
61 pkgconfig relative paths/pkgconfig Condense test directory names. 2022-03-29 02:12:02 +03:00
62 cmake_prefix_path Condense test directory names. 2022-03-29 02:12:02 +03:00
63 cmake parser dependencies: tighten type checking and fix cmake API violation for get_variable 2022-04-13 17:27:09 -04:00
64 alias target Condense test directory names. 2022-03-29 02:12:02 +03:00
65 static archive stripping Condense test directory names. 2022-03-29 02:12:02 +03:00
66 static link Condense test directory names. 2022-03-29 02:12:02 +03:00
67 test env value Condense test directory names. 2022-03-29 02:12:02 +03:00
68 clang-tidy Condense test directory names. 2022-03-29 02:12:02 +03:00
69 cross Condense test directory names. 2022-03-29 02:12:02 +03:00
70 cross test passed Condense test directory names. 2022-03-29 02:12:02 +03:00
71 summary Accept disablers in summary values 2022-10-24 11:17:18 +02:00
72 wrap file url Condense test directory names. 2022-03-29 02:12:02 +03:00
73 dep files Condense test directory names. 2022-03-29 02:12:02 +03:00
74 pkgconfig prefixes Condense test directory names. 2022-03-29 02:12:02 +03:00
75 subdir libdir Condense test directory names. 2022-03-29 02:12:02 +03:00
76 as link whole Condense test directory names. 2022-03-29 02:12:02 +03:00
77 nostdlib Condense test directory names. 2022-03-29 02:12:02 +03:00
78 user options for subproject Condense test directory names. 2022-03-29 02:12:02 +03:00
79 global-rpath Condense test directory names. 2022-03-29 02:12:02 +03:00
80 wrap-git Condense test directory names. 2022-03-29 02:12:02 +03:00
81 meson version compare Condense test directory names. 2022-03-29 02:12:02 +03:00
82 cross only introspect Condense test directory names. 2022-03-29 02:12:02 +03:00
83 change option choices Condense test directory names. 2022-03-29 02:12:02 +03:00
84 nested subproject regenerate depends Require CMake 3.14 for all tests that use the cmake module 2022-05-10 07:56:59 -04:00
85 cpp modules Add some scaffolding needed for C++ modules in GCC. 2022-05-06 18:48:15 +03:00
86 prelinking Condense test directory names. 2022-03-29 02:12:02 +03:00
87 run native test Condense test directory names. 2022-03-29 02:12:02 +03:00
88 multiple envvars Condense test directory names. 2022-03-29 02:12:02 +03:00
89 pkgconfig build rpath order Condense test directory names. 2022-03-29 02:12:02 +03:00
90 devenv Condense test directory names. 2022-03-29 02:12:02 +03:00
91 install skip subprojects Condense test directory numbers. 2022-10-25 00:03:32 +03:00
92 new subproject in configured project Condense test directory numbers. 2022-10-25 00:03:32 +03:00
93 clangformat Condense test directory numbers. 2022-10-25 00:03:32 +03:00
94 custominc Condense test directory numbers. 2022-10-25 00:03:32 +03:00
95 implicit force fallback Condense test directory numbers. 2022-10-25 00:03:32 +03:00
96 compiler.links file arg Condense test directory numbers. 2022-10-25 00:03:32 +03:00
97 link full name Condense test directory numbers. 2022-10-25 00:03:32 +03:00
98 install all targets backends: Try guessing install tag for all installed files 2022-11-02 14:53:35 +02:00
99 custom target name Condense test directory numbers. 2022-10-25 00:03:32 +03:00
100 relative find program Condense test directory numbers. 2022-10-25 00:03:32 +03:00
101 rlib linkage Condense test directory numbers. 2022-10-25 00:03:32 +03:00
102 python without pkgconfig Fix various spelling errors 2022-11-24 15:17:23 -05:00
103 strip minstall: make do_strip run with -Sx for macOS targets 2022-11-01 17:56:18 +02:00
104 debug function Condense test directory numbers. 2022-10-25 00:03:32 +03:00
105 pkgconfig relocatable with absolute path Condense test directory numbers. 2022-10-25 00:03:32 +03:00
106 subproject symlink Condense test directory numbers. 2022-10-25 00:03:32 +03:00
107 new subproject on reconfigure Condense test directory numbers. 2022-10-25 00:03:32 +03:00
108 configure same noop Condense test directory numbers. 2022-10-25 00:03:32 +03:00
109 freeze Handle freezing tests. Fixes #10752. 2022-11-21 16:44:24 +02:00
110 classpath depfixer: silence fix_jar() and make it do something 2022-12-14 15:37:59 -05:00