Skip to content

Commit

Permalink
Add --validate option to amber/run_tests.py (#1432)
Browse files Browse the repository at this point in the history
  • Loading branch information
dneto0 authored Dec 23, 2024
1 parent d0bb3b8 commit 57de664
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion amber/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ def main():
help='Specify the path to the Vulkan ICD json')
parser.add_argument('--one-dir', dest='one_dir', action='store_true',
help='Avoid large globs and assume tests are directly in --dir')
parser.add_argument( '--validate', dest='validate', action='store_true',
help='Enable Vulkan validation layers')

args = parser.parse_args()

Expand All @@ -72,7 +74,9 @@ def main():
adjusted = os.path.join(args.test_dir, p)
if adjusted in tests:
tests.remove(adjusted)
cmd = [args.amber, '-d', '-V']
cmd = [args.amber, '-V']
if not args.validate:
cmd = cmd + ['-d']
cmd = cmd + tests
p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
(stdout, _) = p.communicate()
Expand Down

0 comments on commit 57de664

Please sign in to comment.