aboutsummaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-07-13 01:17:44 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-07-13 01:17:46 +0530
commitcc4826b85f3e3ddf209553f579dd567769ceebfb (patch)
tree1f12712c6dbdb9a2895c1584334c809fa00d82ae /run_tests.py
parent666083795369abbffc7d5d0c31c5420cf8a0d40b (diff)
downloadmeson-cc4826b85f3e3ddf209553f579dd567769ceebfb.zip
meson-cc4826b85f3e3ddf209553f579dd567769ceebfb.tar.gz
meson-cc4826b85f3e3ddf209553f579dd567769ceebfb.tar.bz2
run_tests.py: Make 'no-installed-files' stricter
When the file 'no-installed-files' is installed, require that the test not install any other files. A test for this is pending.
Diffstat (limited to 'run_tests.py')
-rwxr-xr-xrun_tests.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/run_tests.py b/run_tests.py
index 1130bad..0919d84 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -144,15 +144,17 @@ def platform_fix_exe_name(fname):
return fname
def validate_install(srcdir, installdir):
+ # List of installed files
info_file = os.path.join(srcdir, 'installed_files.txt')
+ # If this exists, the test does not install any other files
+ noinst_file = 'usr/no-installed-files'
expected = {}
found = {}
ret_msg = ''
- # Test expects to not install any files
- if os.path.exists(os.path.join(installdir, 'usr', 'no-installed-files')):
- return ''
# Generate list of expected files
- if os.path.exists(info_file):
+ if os.path.exists(os.path.join(installdir, noinst_file)):
+ expected[noinst_file] = False
+ elif os.path.exists(info_file):
for line in open(info_file):
expected[platform_fix_exe_name(line.strip())] = False
# Check if expected files were found