aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/129 build by default/checkexists.py
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/common/129 build by default/checkexists.py')
-rw-r--r--meson/test cases/common/129 build by default/checkexists.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/meson/test cases/common/129 build by default/checkexists.py b/meson/test cases/common/129 build by default/checkexists.py
new file mode 100644
index 000000000..6664f7291
--- /dev/null
+++ b/meson/test cases/common/129 build by default/checkexists.py
@@ -0,0 +1,10 @@
+#!/usr/bin/env python3
+
+import os.path, sys
+
+invert = False
+for path in sys.argv[1:]:
+ if path == '--not':
+ invert = True
+ elif not os.path.exists(path) ^ invert:
+ sys.exit(1)