From 1087627df9524a09aa12f646213bc77bccbc6b63 Mon Sep 17 00:00:00 2001 From: Simmo Saan Date: Mon, 22 Apr 2024 15:44:03 +0300 Subject: [PATCH] Add quiet (-q) argument to update_suite (issue #1392) --- scripts/update_suite.rb | 9 +++++---- tests/incremental/dune | 4 ++-- tests/regression/24-octagon/dune | 2 +- tests/regression/36-apron/dune | 2 +- tests/regression/46-apron2/dune | 2 +- tests/regression/52-apron-mukherjee/dune | 2 +- tests/regression/56-witness/dune | 20 ++++++++++---------- tests/regression/63-affeq/dune | 2 +- tests/regression/77-lin2vareq/dune | 2 +- tests/regression/78-termination/dune | 2 +- tests/regression/dune | 2 +- 11 files changed, 25 insertions(+), 24 deletions(-) diff --git a/scripts/update_suite.rb b/scripts/update_suite.rb index 70be6b6d85..208de14066 100755 --- a/scripts/update_suite.rb +++ b/scripts/update_suite.rb @@ -63,6 +63,7 @@ def clearline #Command line parameters #Either only run a single test, or #"future" will also run tests we normally skip +quiet = ARGV.last == "-q" && ARGV.pop $dump = ARGV.last == "-d" && ARGV.pop sequential = ARGV.last == "-s" && ARGV.pop marshal = ARGV.last == "-m" && ARGV.pop @@ -608,9 +609,9 @@ def run () dirname = File.dirname(filepath) filename = File.basename(filepath) Dir.chdir(dirname) - clearline + clearline unless quiet id = "#{p.id} #{p.group}/#{p.name}" - print "Testing #{id}" + print "Testing #{id}" unless quiet begin Dir.mkdir(File.join($testresults, p.group)) unless Dir.exist?(File.join($testresults, p.group)) rescue @@ -635,7 +636,7 @@ def run () end end $alliswell = projects.map{|p| p.testset.ok}.all? -clearline +clearline unless quiet #Outputting header = <