Commonize versioning.

Eliminate the redundant test case version file from the recently re-merged
regression testing suite. Regression tests are now automatically versioned
the same as the current tidy source version.
This commit is contained in:
Jim Derry 2021-06-30 09:41:19 -04:00
parent 1622342783
commit 4153b5784c
2 changed files with 2 additions and 2 deletions

View File

@ -1 +0,0 @@
5.7.49

View File

@ -32,6 +32,7 @@ module TidyRegressionTestModule
###########################################################
DIR_TEST_SETS = File.expand_path('cases')
EXE_TIDY = File.expand_path(File.join('..', 'build', 'cmake', 'tidy'))
VERSION_FILE = File.join(File.expand_path('..', File.dirname(__FILE__)), 'version.txt')
###########################################################
@ -851,7 +852,7 @@ module TidyRegressionTestModule
def print_report_footer( total_tested, total_passed )
tidy_version = %x( #{self.tidy_path} --version )
tidy_version = tidy_version[/^.*(\d+\.\d+\.\d+).*/,1]
cases_version = File.open(File.join(DIR_TEST_SETS, '_version.txt')).first.chomp
cases_version = File.open(VERSION_FILE).first.chomp
puts
puts "Note that no valid cases were found." if total_tested < 1