aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-03-03 15:08:01 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-03-03 15:52:31 +0530
commit2340fd3d8aa5c6ed829ff3bda8a64137ead4b8eb (patch)
treeba757effaad395bc0af5a637c5f714bbd2725abf
parent0c957b75c69269cb5f7a0d82b2477b7be0fc62e2 (diff)
downloadmeson-2340fd3d8aa5c6ed829ff3bda8a64137ead4b8eb.zip
meson-2340fd3d8aa5c6ed829ff3bda8a64137ead4b8eb.tar.gz
meson-2340fd3d8aa5c6ed829ff3bda8a64137ead4b8eb.tar.bz2
tests/windows: Tests for #1444
Check that pdb files are installed
-rwxr-xr-xrun_project_tests.py3
-rw-r--r--test cases/windows/1 basic/installed_files.txt2
-rw-r--r--test cases/windows/1 basic/meson.build2
-rw-r--r--test cases/windows/8 msvc dll versioning/installed_files.txt2
4 files changed, 8 insertions, 1 deletions
diff --git a/run_project_tests.py b/run_project_tests.py
index f87a121..1457432 100755
--- a/run_project_tests.py
+++ b/run_project_tests.py
@@ -181,6 +181,9 @@ def validate_install(srcdir, installdir):
# Check if there are any unexpected files
found = get_relative_files_list_from_dir(installdir)
for fname in found:
+ # Windows-specific tests check for the existence of installed PDB
+ # files, but common tests do not, for obvious reasons. Ignore any
+ # extra PDB files found.
if fname not in expected and not fname.endswith('.pdb'):
ret_msg += 'Extra file {0} found.\n'.format(fname)
return ret_msg
diff --git a/test cases/windows/1 basic/installed_files.txt b/test cases/windows/1 basic/installed_files.txt
new file mode 100644
index 0000000..8c8464a
--- /dev/null
+++ b/test cases/windows/1 basic/installed_files.txt
@@ -0,0 +1,2 @@
+usr/bin/prog.exe
+usr/bin/prog.pdb
diff --git a/test cases/windows/1 basic/meson.build b/test cases/windows/1 basic/meson.build
index f736b66..03d5436 100644
--- a/test cases/windows/1 basic/meson.build
+++ b/test cases/windows/1 basic/meson.build
@@ -1,4 +1,4 @@
project('wintest', 'c')
-prog = executable('prog', 'prog.c')
+prog = executable('prog', 'prog.c', install : true)
test('wintest', prog)
diff --git a/test cases/windows/8 msvc dll versioning/installed_files.txt b/test cases/windows/8 msvc dll versioning/installed_files.txt
index 5f6e26a..e3f72bc 100644
--- a/test cases/windows/8 msvc dll versioning/installed_files.txt
+++ b/test cases/windows/8 msvc dll versioning/installed_files.txt
@@ -1,4 +1,6 @@
usr/bin/some-0.dll
+usr/bin/some-0.pdb
usr/lib/some.lib
usr/bin/noversion.dll
+usr/bin/noversion.pdb
usr/lib/noversion.lib