diff options
Diffstat (limited to 'rakelib/gcc.rake')
| -rw-r--r-- | rakelib/gcc.rake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rakelib/gcc.rake b/rakelib/gcc.rake index ce02bb6..abdeb6d 100644 --- a/rakelib/gcc.rake +++ b/rakelib/gcc.rake @@ -147,7 +147,11 @@ namespace :gcc do desc 'Run tests' task :check do + log_file = Pathname.new(HOST_GCC) + 'gcc/testsuite/elna/elna.log' + sh 'make', 'check-elna', chdir: File.join(HOST_GCC, 'gcc') + + fail "\nSee #{log_file}." if log_file.file? and log_file.read =~ /^(FAIL|XPASS|UNRESOLVED|ERROR):/ end desc 'Run clang-tidy' @@ -165,6 +169,9 @@ namespace :gcc do task :doc do sh 'make', 'html', chdir: File.join(HOST_GCC, 'gcc') end + + desc 'Run GCC linters and tests' + task test: %w[gcc:tidy gcc:check] end desc 'Build the bootstrap compiler' |
