62 Commits
Author SHA1 Message Date
Dylan Baker cbca191948 interpreter: Handle BuildTarget.vala_args as Files in the interpreter
Way back in Meson 0.25, support was added to `vala_args` for Files.
Strangely, this was never added to any other language, though it's been
discussed before. For type safety, it makes more sense to handle this in
the interpreter level, and pass only strings into the build IR.

This is accomplished by adding a `depend_files` field to the
`BuildTarget` class (which is not exposed to the user), and adding the
depend files into that field, while converting the arguments to relative
string paths. This ensures both the proper build dependencies happen, as
well as that the arguments are always strings.
2023-10-09 17:33:48 -04:00
Josh Soref cf9fd56bc9 fix various spelling issues
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-11 19:21:05 -04:00
Eli Schwartz 72e0a95f7f Add stable regression test
This tests stable maintenance branches, to ensure that build directories
created with older versions of Meson continue to work without wiping,
after updating to a bugfix release.
2022-10-02 14:22:21 -04:00
Eli Schwartz 59d4f771d2 editorconfig: add setting to trim trailing whitespace
and clean up all outstanding issues

Skip 'test cases/common/141 special characters/meson.build' since it
intentionally uses trailing newlines.
2021-08-15 09:36:18 -04:00
Xavier Claessens 1c403e20e7 Interpreter: Fix c_stdlib usage
- Exceptions raised during subproject setup were ignored.
- Allow c_stdlib in native file, was already half supported.
- Eliminate usage of subproject variable name by overriding
  '<lang>_stdlib' dependency name.
2020-08-18 14:47:38 -04:00
Michael Hirsch, Ph.D d9b8dce975 wrap: check whitelist subdomain
wrap: add imposter URL test

this test shows that meson wrap subsystem historically allows
imposter URLs like https://wrapdb.mesonwrap.com.evil/v1/foo.zip
while the new code does no.
2019-12-05 23:14:13 -05:00
Michael Hirsch, Ph.D 0494a76340 c/cpp: removed unused args 2019-12-05 23:07:17 -05:00
Michael Hirsch, Ph.D 83b4e981c4 Use strict function prototypes 2019-11-18 22:21:36 +02:00
Dylan Baker d505a68e34 Fix crlf line endings
mark .icns files as binary so git will stop trying to fix the line
endings, and recommit the remaining .crlf files
2018-10-30 00:28:02 +02:00
Andrei Antonov 8f7781f1d6 using urlopen() with explicit timeout 2018-08-27 00:55:45 +03:00
Jussi Pakkanen b400cbe058 Kill tabs dead! For good! 2018-08-15 22:28:42 +03:00
Aleksey Filippov 917fd96435 Update 'manual tests/2 multiwrap' libpng dependency to 1.6.34
1.6.17-6 has a bug with missing -lm linking on ArchLinux.
2018-04-18 21:09:58 +03:00
Goncalo Carvalho 5faf7f1a96 fix fallback variable name 2018-04-17 12:00:57 -07:00
Leif Middelschulte 3c36cf1d5e updates test svn-url to point to meson controlled repository 2017-09-30 19:47:38 +02:00
Leif Middelschulte 667d5d2d9f introduce svn wrap support 2017-09-25 22:26:42 +02:00
Tim Sheridan cfb714d42a Stop manual test helper scripts on errors (#2149)
* Stop manual test helper scripts on errors
2017-08-02 18:02:37 +03:00
Jussi Pakkanen 6662f36ed3 Updated wrap definitions to the latest in wrapdb. 2017-06-01 17:09:48 +03:00
Jussi Pakkanen 24890bac98 Update multiwrap urls for libpng. 2017-06-01 16:02:40 +03:00
Stefan Graupner f4b20a1cc3 Re-add comment about hdiutil output 2017-05-21 21:51:22 +03:00
Stefan Graupner 80f252bb5c Change hdiutil detach
The detach now always fetches the correct mountpoint.
2017-05-21 21:48:49 +03:00
kalmiya fa10703124 fix "Meson encountered an error in file meson.build, line 19, column … (#1536)
fix "Meson encountered an error in file meson.build, line 19, column 8: Unknown method "set_install_script" in object."
2017-03-29 23:37:51 +03:00
Mike Sinkovsky 0dd1e33898 style: [E251] unexpected spaces around keyword / parameter equals 2017-01-11 12:33:27 -05:00
Igor Gnatenko ef3cc6b3fa style: fix E127 violations
E127: continuation line over-indented for visual indent

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2017-01-02 19:16:56 +01:00
Jussi Pakkanen df4af2d122 Renamed test to plug hole in numbering. 2016-11-20 00:50:25 +02:00
Nirbheek Chauhan 14c5e17b0a tests: Remove outdated qt4 manual test and rename qt5 automated test
qt5 framework test now also tests qt4, and will test qt6 if/when it
comes out.
2016-11-11 01:51:03 +05:30
AlexandreFoley 263cb6a5f0 add support of mercurial repo for wrap,… (#937)
* add support for wrap of mercurial repo, and a test with a clone of the sample subproject used for the git test into a mercuriel repo.

* Added myself to author list, and switched the URL of the sample subproject in the wrap file to one under the control of the project's maintainers.
2016-10-20 00:10:00 +03:00
Jussi Pakkanen 2ea1fb849c Doc clarification. 2016-08-08 22:53:39 +03:00
Jussi Pakkanen 156149388e Updated manual test 1. 2016-07-24 12:43:47 +03:00
Jussi Pakkanen c0057da133 Can get arbitrary data from cross file properties. 2016-07-02 00:00:03 +03:00
Jussi Pakkanen afe7252476 Can specify a stdlib subproject that is used implicitly on all targets with said language. 2016-05-21 21:46:03 +03:00
Jussi Pakkanen 695aa0b8c2 Made cstdlib a subproject. 2016-05-21 19:35:36 +03:00
Haakon Sporsheim 7ec9b50f8e Fix manual tests using host.name() 2015-10-13 14:56:05 +02:00
Jussi Pakkanen 192c96acef Use of libdl is optional. Closes #248. 2015-08-27 20:31:31 +03:00
Igor Gnatenko 6b5734385f fix building vala composite test
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-08-24 15:24:09 +03:00
Igor Gnatenko 79bf392866 Revert "simplify GResources in vala composite test"
This reverts commit d2fa9301ac.
2015-08-24 15:23:20 +03:00
Igor Gnatenko d2fa9301ac simplify GResources in vala composite test 2015-07-27 16:57:07 +03:00
Jussi Pakkanen fa74ef4c57 Added timeout kwarg to tests. 2015-07-23 22:28:03 +03:00
Igor Gnatenko 04f165842f manual tests: add example for composite widgets
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-07-02 12:19:40 +03:00
Jussi Pakkanen b03ee73ace Made multiwrap use wrabdb where possible. 2015-05-29 21:34:05 +03:00
Jussi Pakkanen eba69f3560 Updated wrap example to use wrapdb. 2015-05-29 21:17:57 +03:00
Jussi Pakkanen 9117e2b076 Typo fixes. 2015-05-02 13:34:49 +03:00
Jussi Pakkanen 45d7b589eb Added module for Qt4 support. 2015-04-29 17:38:29 +03:00
Jussi Pakkanen 67fdfd5d05 Copy with -R to preserve symlinks. 2015-04-03 15:37:47 +03:00
Jussi Pakkanen 6d9e1312a0 Mode fix. 2015-03-27 21:38:38 +02:00
Jussi Pakkanen d0d2508562 Build windows installer for SDL2 sample app. 2015-03-27 21:29:03 +02:00
Igor Gnatenko db2b7601c8 modules/rpm: workaround when ext_prog not found locally
Traceback (most recent call last):
  File "../../../meson.py", line 184, in <module>
    app.generate()
  File "../../../meson.py", line 130, in generate
    intr.run()
  File "/home/brain/git/upstream/meson/interpreter.py", line 828, in run
    self.evaluate_codeblock(self.ast)
  File "/home/brain/git/upstream/meson/interpreter.py", line 850, in
evaluate_codeblock
    raise e
  File "/home/brain/git/upstream/meson/interpreter.py", line 844, in
evaluate_codeblock
    self.evaluate_statement(cur)
  File "/home/brain/git/upstream/meson/interpreter.py", line 897, in
evaluate_statement
    return self.method_call(cur)
  File "/home/brain/git/upstream/meson/interpreter.py", line 1620, in
method_call
    return obj.method_call(method_name, args, kwargs)
  File "/home/brain/git/upstream/meson/interpreter.py", line 625, in
method_call
    value = fn(state, args, kwargs)
  File "/home/brain/git/upstream/meson/modules/rpm.py", line 98, in
generate_spec_template
    fn.write('BuildRequires: %s\n' % ' '.join(prog.fullpath))
TypeError: sequence item 0: expected str instance, NoneType found

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-03-23 20:33:00 +03:00
Igor Gnatenko d8c2f18706 modules/rpm: rename 4 to 5 in tests dir
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-03-21 00:51:09 +03:00
Igor Gnatenko 6e7c921d15 modules/rpm: rename to generate_spec_template
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-03-21 00:50:21 +03:00
Igor Gnatenko bcf6ff15a4 modules/rpm: add example
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-03-21 00:50:20 +03:00
Jussi Pakkanen faa623eb93 A few minor tweaks. 2015-03-20 15:55:57 +02:00