aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/unit/60 native file override
diff options
context:
space:
mode:
authorAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
committerAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
commitaf1a266670d040d2f4083ff309d732d648afba2a (patch)
tree2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/unit/60 native file override
parente02cda008591317b1625707ff8e115a4841aa889 (diff)
Add submodule dependency filesHEADmaster
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/unit/60 native file override')
-rw-r--r--meson/test cases/unit/60 native file override/crossfile16
-rw-r--r--meson/test cases/unit/60 native file override/crossfile24
-rw-r--r--meson/test cases/unit/60 native file override/meson.build10
-rw-r--r--meson/test cases/unit/60 native file override/meson_options.txt13
-rw-r--r--meson/test cases/unit/60 native file override/nativefile16
5 files changed, 59 insertions, 0 deletions
diff --git a/meson/test cases/unit/60 native file override/crossfile b/meson/test cases/unit/60 native file override/crossfile
new file mode 100644
index 000000000..9dc4fbcfc
--- /dev/null
+++ b/meson/test cases/unit/60 native file override/crossfile
@@ -0,0 +1,16 @@
+[paths]
+bindir = 'binbar'
+datadir = 'databar'
+includedir = 'includebar'
+infodir = 'infobar'
+libdir = 'libbar'
+libexecdir = 'libexecbar'
+localedir = 'localebar'
+localstatedir = 'localstatebar'
+mandir = 'manbar'
+prefix = '/prefix'
+sbindir = 'sbinbar'
+sharedstatedir = 'sharedstatebar'
+sysconfdir = 'sysconfbar'
+
+; vim: ft=dosini
diff --git a/meson/test cases/unit/60 native file override/crossfile2 b/meson/test cases/unit/60 native file override/crossfile2
new file mode 100644
index 000000000..70946c9e7
--- /dev/null
+++ b/meson/test cases/unit/60 native file override/crossfile2
@@ -0,0 +1,4 @@
+[paths]
+bindir = 'binbar2'
+
+; vim: ft=dosini
diff --git a/meson/test cases/unit/60 native file override/meson.build b/meson/test cases/unit/60 native file override/meson.build
new file mode 100644
index 000000000..8318abaef
--- /dev/null
+++ b/meson/test cases/unit/60 native file override/meson.build
@@ -0,0 +1,10 @@
+project('native file overrides')
+
+foreach o : ['bindir', 'datadir', 'includedir', 'infodir', 'libdir',
+ 'libexecdir', 'localedir', 'localstatedir', 'mandir', 'prefix',
+ 'sbindir', 'sharedstatedir', 'sysconfdir']
+ expected = get_option('def_' + o)
+ actual = get_option(o)
+ assert(expected == actual,
+ '@0@ should have been @1@, but was @2@!'.format(o, expected, actual))
+endforeach
diff --git a/meson/test cases/unit/60 native file override/meson_options.txt b/meson/test cases/unit/60 native file override/meson_options.txt
new file mode 100644
index 000000000..4d2abf9c6
--- /dev/null
+++ b/meson/test cases/unit/60 native file override/meson_options.txt
@@ -0,0 +1,13 @@
+option('def_bindir', type: 'string', value : 'binfoo',)
+option('def_datadir', type: 'string', value : 'datafoo',)
+option('def_includedir', type: 'string', value : 'includefoo',)
+option('def_infodir', type: 'string', value : 'infofoo',)
+option('def_libdir', type: 'string', value : 'libfoo',)
+option('def_libexecdir', type: 'string', value : 'libexecfoo',)
+option('def_localedir', type: 'string', value : 'localefoo',)
+option('def_localstatedir', type: 'string', value : 'localstatefoo',)
+option('def_mandir', type: 'string', value : 'manfoo',)
+option('def_prefix', type: 'string', value : '/prefix',)
+option('def_sbindir', type: 'string', value : 'sbinfoo',)
+option('def_sharedstatedir', type: 'string', value : 'sharedstatefoo',)
+option('def_sysconfdir', type: 'string', value : 'sysconffoo',)
diff --git a/meson/test cases/unit/60 native file override/nativefile b/meson/test cases/unit/60 native file override/nativefile
new file mode 100644
index 000000000..a39072579
--- /dev/null
+++ b/meson/test cases/unit/60 native file override/nativefile
@@ -0,0 +1,16 @@
+[paths]
+bindir = 'binfoo'
+datadir = 'datafoo'
+includedir = 'includefoo'
+infodir = 'infofoo'
+libdir = 'libfoo'
+libexecdir = 'libexecfoo'
+localedir = 'localefoo'
+localstatedir = 'localstatefoo'
+mandir = 'manfoo'
+prefix = '/prefix'
+sbindir = 'sbinfoo'
+sharedstatedir = 'sharedstatefoo'
+sysconfdir = 'sysconffoo'
+
+; vim: ft=dosini