summaryrefslogtreecommitdiff
path: root/test cases/common/12 data
AgeCommit message (Collapse)Author
2023-07-26Fix install_data() default install pathDaniele Nicolodi
This fixes two issues in constructing the default installation path when install_dir is not specified: - inside a subproject, install_data() would construct the destination path using the parent project name instead than the current project name, - when specifying preserve_path, install_data() would construct the destination path omitting the project name. Fixes #11910.
2022-08-23tests: remove compiler requirement in various unneeded casesEli Schwartz
Compiled languages are Meson's bread and butter, but hardly required. This is convenient, because many test caases specifically, do not care about testing the compiler interactions. In such cases, we can skip doing compiler lookups which aren't used, as they only slow down test setup.
2020-02-25test: merge installed_files.txt into test.jsonDaniel Mensinger
2018-04-18Update default of install-umask to 022Filipe Brandenburger
And, with that, update the test cases that checked that preserving the original permissions worked to set install_umask=preserve explicitly in those projects' default_options. Tested: ./run_tests.py
2018-03-17Add install_data() succeeding rename testsAleksey Filippov
2018-02-22Allow for missing install_dir in install_data()Peter Hutterer
The documentation doesn't require it and the interpreter code works around the possibility of it being None. The ninja backend code however fails with File "/home/whot/code/meson/mesonbuild/backend/ninjabackend.py", line 796, in generate_data_install dstabs = os.path.join(subdir or None, plain_f) File "/usr/lib64/python3.6/posixpath.py", line 78, in join a = os.fspath(a) TypeError: expected str, bytes or os.PathLike object, not NoneType If install_dir is missing, default to datadir/projectname
2017-01-24Support file perms for install_data and install_subdirNirbheek Chauhan
With the 'install_mode' kwarg, you can now specify the file and directory permissions and the owner and the group to be used while installing. You can pass either: * A single string specifying just the permissions * A list of strings with: - The first argument a string of permissions - The second argument a string specifying the owner or an int specifying the uid - The third argument a string specifying the group or an int specifying the gid Specifying `false` as any of the arguments skips setting that one. The format of the permissions kwarg is the same as the symbolic notation used by ls -l with the first character that specifies 'd', '-', 'c', etc for the file type omitted since that is always obvious from the context. Includes unit tests for the same. Sadly these only run on Linux right now, but we want them to run on all platforms. We do set the mode in the integration tests for all platforms but we don't check if they were actually set correctly.
2016-11-18Always specify installed data with a File object. Closes #858.Jussi Pakkanen
2016-04-09Strip leading source tree dir name from install files if it exists.Jussi Pakkanen
2015-02-15Changed install_data to get rid of useless and confusing target subdir name.Jussi Pakkanen
2015-02-04Rework installation logic so we can go outside the install prefix.Jussi Pakkanen
2014-11-03Can install data files from subdirectories.Jussi Pakkanen
2014-10-11Renamed data() to install_data().Jussi Pakkanen
2013-09-13Added installed_files.txt files to all places that needed them.Jussi Pakkanen
2013-03-03Split test suite into common and platform dependent parts.Jussi Pakkanen