diff options
author | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/common/12 data | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/common/12 data')
14 files changed, 51 insertions, 0 deletions
diff --git a/meson/test cases/common/12 data/datafile.dat b/meson/test cases/common/12 data/datafile.dat new file mode 100644 index 000000000..ff3104ba1 --- /dev/null +++ b/meson/test cases/common/12 data/datafile.dat @@ -0,0 +1 @@ +this is a data file diff --git a/meson/test cases/common/12 data/etcfile.dat b/meson/test cases/common/12 data/etcfile.dat new file mode 100644 index 000000000..93db8cb06 --- /dev/null +++ b/meson/test cases/common/12 data/etcfile.dat @@ -0,0 +1 @@ +This goes into /etc/etcfile.dat diff --git a/meson/test cases/common/12 data/fileobject_datafile.dat b/meson/test cases/common/12 data/fileobject_datafile.dat new file mode 100644 index 000000000..872aa5a8f --- /dev/null +++ b/meson/test cases/common/12 data/fileobject_datafile.dat @@ -0,0 +1 @@ +This is a data file that is installed via a File object. diff --git a/meson/test cases/common/12 data/meson.build b/meson/test cases/common/12 data/meson.build new file mode 100644 index 000000000..b5b1e8a62 --- /dev/null +++ b/meson/test cases/common/12 data/meson.build @@ -0,0 +1,24 @@ +project('data install test', 'c', + default_options : ['install_umask=preserve']) +install_data(sources : 'datafile.dat', install_dir : 'share/progname') +# Some file in /etc that is only read-write by root; add a sticky bit for testing +install_data(sources : 'etcfile.dat', install_dir : '/etc', install_mode : 'rw------T') +# Some script that needs to be executable by the group +install_data('runscript.sh', + install_dir : get_option('bindir'), + install_mode : ['rwxr-sr-x', 'root', 0]) +install_data(files('fileobject_datafile.dat'), + install_dir : 'share/progname', + install_mode : [false, false, 0]) + +install_data(files('somefile.txt')) + +subdir('vanishing') + +install_data(sources : 'vanishing/vanishing2.dat', install_dir : 'share/progname') + +install_data(sources : 'to_be_renamed_1.txt', rename : 'renamed file.txt') +install_data(sources : ['vanishing/to_be_renamed_2.txt', 'to_be_renamed_3.txt'], + install_dir : 'share/renamed', + rename : ['renamed 2.txt', 'renamed 3.txt']) +install_data(sources : 'to_be_renamed_4.txt', rename : 'some/nested/path.txt') diff --git a/meson/test cases/common/12 data/runscript.sh b/meson/test cases/common/12 data/runscript.sh new file mode 100644 index 000000000..8bc5ca6ce --- /dev/null +++ b/meson/test cases/common/12 data/runscript.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Runscript" diff --git a/meson/test cases/common/12 data/somefile.txt b/meson/test cases/common/12 data/somefile.txt new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/meson/test cases/common/12 data/somefile.txt diff --git a/meson/test cases/common/12 data/test.json b/meson/test cases/common/12 data/test.json new file mode 100644 index 000000000..f392e9a03 --- /dev/null +++ b/meson/test cases/common/12 data/test.json @@ -0,0 +1,15 @@ +{ + "installed": [ + {"type": "file", "file": "usr/share/progname/datafile.dat"}, + {"type": "file", "file": "usr/share/progname/fileobject_datafile.dat"}, + {"type": "file", "file": "usr/share/progname/vanishing.dat"}, + {"type": "file", "file": "usr/share/progname/vanishing2.dat"}, + {"type": "file", "file": "usr/share/data install test/renamed file.txt"}, + {"type": "file", "file": "usr/share/data install test/somefile.txt"}, + {"type": "file", "file": "usr/share/data install test/some/nested/path.txt"}, + {"type": "file", "file": "usr/share/renamed/renamed 2.txt"}, + {"type": "file", "file": "usr/share/renamed/renamed 3.txt"}, + {"type": "file", "file": "etc/etcfile.dat"}, + {"type": "file", "file": "usr/bin/runscript.sh"} + ] +} diff --git a/meson/test cases/common/12 data/to_be_renamed_1.txt b/meson/test cases/common/12 data/to_be_renamed_1.txt new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/meson/test cases/common/12 data/to_be_renamed_1.txt diff --git a/meson/test cases/common/12 data/to_be_renamed_3.txt b/meson/test cases/common/12 data/to_be_renamed_3.txt new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/meson/test cases/common/12 data/to_be_renamed_3.txt diff --git a/meson/test cases/common/12 data/to_be_renamed_4.txt b/meson/test cases/common/12 data/to_be_renamed_4.txt new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/meson/test cases/common/12 data/to_be_renamed_4.txt diff --git a/meson/test cases/common/12 data/vanishing/meson.build b/meson/test cases/common/12 data/vanishing/meson.build new file mode 100644 index 000000000..1a27137c8 --- /dev/null +++ b/meson/test cases/common/12 data/vanishing/meson.build @@ -0,0 +1 @@ +install_data(sources : 'vanishing.dat', install_dir : 'share/progname') diff --git a/meson/test cases/common/12 data/vanishing/to_be_renamed_2.txt b/meson/test cases/common/12 data/vanishing/to_be_renamed_2.txt new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/meson/test cases/common/12 data/vanishing/to_be_renamed_2.txt diff --git a/meson/test cases/common/12 data/vanishing/vanishing.dat b/meson/test cases/common/12 data/vanishing/vanishing.dat new file mode 100644 index 000000000..b7d06090e --- /dev/null +++ b/meson/test cases/common/12 data/vanishing/vanishing.dat @@ -0,0 +1 @@ +This is a data file to be installed in a subdirectory. diff --git a/meson/test cases/common/12 data/vanishing/vanishing2.dat b/meson/test cases/common/12 data/vanishing/vanishing2.dat new file mode 100644 index 000000000..99c923b88 --- /dev/null +++ b/meson/test cases/common/12 data/vanishing/vanishing2.dat @@ -0,0 +1,4 @@ +This is a data file to be installed in a subdirectory. + +It is installed from a different subdir to test that the +installer strips the source tree dir prefix. |