tests/windows: Tests for #1444

Check that pdb files are installed
pull/1444/head
Nirbheek Chauhan 8 years ago
parent 0c957b75c6
commit 2340fd3d8a
  1. 3
      run_project_tests.py
  2. 2
      test cases/windows/1 basic/installed_files.txt
  3. 2
      test cases/windows/1 basic/meson.build
  4. 2
      test cases/windows/8 msvc dll versioning/installed_files.txt

@ -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

@ -0,0 +1,2 @@
usr/bin/prog.exe
usr/bin/prog.pdb

@ -1,4 +1,4 @@
project('wintest', 'c')
prog = executable('prog', 'prog.c')
prog = executable('prog', 'prog.c', install : true)
test('wintest', prog)

@ -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

Loading…
Cancel
Save