@@ -10,15 +10,21 @@ require "yard"
1010require "minitest/test_task"
1111
1212require_relative $root / "lib" / "architecture"
13+ require_relative $root / "lib" / "design"
14+ require_relative $root / "lib" / "portfolio_design"
1315
1416directory "#{ $root} /.stamps"
1517
18+ # Load and execute Rakefile for each backend.
1619Dir . glob ( "#{ $root} /backends/*/tasks.rake" ) do |rakefile |
20+ puts "UPDATE: Loading #{ rakefile } "
1721 load rakefile
1822end
1923
2024directory "#{ $root} /.stamps"
2125
26+ # @param config_name [String] Name of configuration
27+ # @return [ConfiguredArchitecture]
2228def cfg_arch_for ( config_name )
2329 Rake ::Task [ "#{ $root} /.stamps/resolve-#{ config_name } .stamp" ] . invoke
2430
@@ -117,7 +123,7 @@ namespace :test do
117123 end
118124 task schema : "gen:resolved_arch" do
119125 puts "Checking arch files against schema.."
120- Architecture . new ( "#{ $root} /resolved_arch" ) . validate ( show_progress : true )
126+ Architecture . new ( "rv64" , " #{ $root} /resolved_arch") . validate ( show_progress : true )
121127 puts "All files validate against their schema"
122128 end
123129 task idl : [ "gen:resolved_arch" , "#{ $root} /.stamps/resolve-rv32.stamp" , "#{ $root} /.stamps/resolve-rv64.stamp" ] do
@@ -289,9 +295,13 @@ namespace :test do
289295 These are basic but fast-running tests to check the database and tools
290296 DESC
291297 task :smoke do
298+ puts "UPDATE: Running test:idl_compiler"
292299 Rake ::Task [ "test:idl_compiler" ] . invoke
300+ puts "UPDATE: Running test:lib"
293301 Rake ::Task [ "test:lib" ] . invoke
302+ puts "UPDATE: Running test:schema"
294303 Rake ::Task [ "test:schema" ] . invoke
304+ puts "UPDATE: Running test:idl"
295305 Rake ::Task [ "test:idl" ] . invoke
296306 end
297307
@@ -313,7 +323,7 @@ namespace :test do
313323
314324 Rake ::Task [ "gen:html" ] . invoke ( "generic_rv64" )
315325
316- Rake ::Task [ "#{ $root} /gen/certificate_doc /pdf/MockCertificateModel .pdf" ] . invoke
326+ Rake ::Task [ "#{ $root} /gen/crd /pdf/MockProcCertModel .pdf" ] . invoke
317327 Rake ::Task [ "#{ $root} /gen/profile_doc/pdf/MockProfileRelease.pdf" ] . invoke
318328
319329 puts
@@ -337,31 +347,31 @@ desc <<~DESC
337347 Generate all portfolio-based PDF artifacts (certificates and profiles)
338348DESC
339349task :portfolios do
340- portfolio_start_msg ( "MockCertificateModel " )
341- Rake ::Task [ "#{ $root} /gen/certificate_doc /pdf/MockCertificateModel .pdf" ] . invoke
342- portfolio_start_msg ( "MockProfileRelease" )
350+ portfolio_start_msg ( "MockProcCertModel CRD " )
351+ Rake ::Task [ "#{ $root} /gen/crd /pdf/MockProcCertModel .pdf" ] . invoke
352+ portfolio_start_msg ( "MockProfileRelease CRD " )
343353 Rake ::Task [ "#{ $root} /gen/profile_doc/pdf/MockProfileRelease.pdf" ] . invoke
344- portfolio_start_msg ( "MC100-32" )
345- Rake ::Task [ "#{ $root} /gen/certificate_doc /pdf/MC100-32.pdf" ] . invoke
346- portfolio_start_msg ( "MC100-64" )
347- Rake ::Task [ "#{ $root} /gen/certificate_doc /pdf/MC100-64.pdf" ] . invoke
348- portfolio_start_msg ( "MC200-32" )
349- Rake ::Task [ "#{ $root} /gen/certificate_doc /pdf/MC200-32.pdf" ] . invoke
350- portfolio_start_msg ( "MC200-64" )
351- Rake ::Task [ "#{ $root} /gen/certificate_doc /pdf/MC200-64.pdf" ] . invoke
352- portfolio_start_msg ( "MC300-32" )
353- Rake ::Task [ "#{ $root} /gen/certificate_doc /pdf/MC300-32.pdf" ] . invoke
354- portfolio_start_msg ( "MC300-64" )
355- Rake ::Task [ "#{ $root} /gen/certificate_doc /pdf/MC300-64.pdf" ] . invoke
356- portfolio_start_msg ( "RVI20" )
354+ portfolio_start_msg ( "MC100-32 CRD " )
355+ Rake ::Task [ "#{ $root} /gen/crd /pdf/MC100-32.pdf" ] . invoke
356+ portfolio_start_msg ( "MC100-64 CRD " )
357+ Rake ::Task [ "#{ $root} /gen/crd /pdf/MC100-64.pdf" ] . invoke
358+ portfolio_start_msg ( "MC200-32 CRD " )
359+ Rake ::Task [ "#{ $root} /gen/crd /pdf/MC200-32.pdf" ] . invoke
360+ portfolio_start_msg ( "MC200-64 CRD " )
361+ Rake ::Task [ "#{ $root} /gen/crd /pdf/MC200-64.pdf" ] . invoke
362+ portfolio_start_msg ( "MC300-32 CRD " )
363+ Rake ::Task [ "#{ $root} /gen/crd /pdf/MC300-32.pdf" ] . invoke
364+ portfolio_start_msg ( "MC300-64 CRD " )
365+ Rake ::Task [ "#{ $root} /gen/crd /pdf/MC300-64.pdf" ] . invoke
366+ portfolio_start_msg ( "RVI20 Profile Release " )
357367 Rake ::Task [ "#{ $root} /gen/profile_doc/pdf/RVI20.pdf" ] . invoke
358- portfolio_start_msg ( "RVA20" )
368+ portfolio_start_msg ( "RVA20 Profile Release " )
359369 Rake ::Task [ "#{ $root} /gen/profile_doc/pdf/RVA20.pdf" ] . invoke
360- portfolio_start_msg ( "RVA22" )
370+ portfolio_start_msg ( "RVA22 Profile Release " )
361371 Rake ::Task [ "#{ $root} /gen/profile_doc/pdf/RVA22.pdf" ] . invoke
362- portfolio_start_msg ( "RVA23" )
372+ portfolio_start_msg ( "RVA23 Profile Release " )
363373 Rake ::Task [ "#{ $root} /gen/profile_doc/pdf/RVA23.pdf" ] . invoke
364- portfolio_start_msg ( "RVB23" )
374+ portfolio_start_msg ( "RVB23 Profile Release " )
365375 Rake ::Task [ "#{ $root} /gen/profile_doc/pdf/RVB23.pdf" ] . invoke
366376end
367377
@@ -374,13 +384,13 @@ def portfolio_start_msg(name)
374384end
375385
376386# Shortcut targets for building profiles and certificates.
377- task "MockCertificateModel " : "#{ $root} /gen/certificate_doc /pdf/MockCertificateModel .pdf"
378- task "MC100-32" : "#{ $root} /gen/certificate_doc /pdf/MC100-32.pdf"
379- task "MC100-64" : "#{ $root} /gen/certificate_doc /pdf/MC100-64.pdf"
380- task "MC200-32" : "#{ $root} /gen/certificate_doc /pdf/MC200-32.pdf"
381- task "MC200-64" : "#{ $root} /gen/certificate_doc /pdf/MC200-64.pdf"
382- task "MC300-32" : "#{ $root} /gen/certificate_doc /pdf/MC300-32.pdf"
383- task "MC300-64" : "#{ $root} /gen/certificate_doc /pdf/MC300-64.pdf"
387+ task "MockProcCertModel " : "#{ $root} /gen/crd /pdf/MockProcCertModel .pdf"
388+ task "MC100-32" : "#{ $root} /gen/crd /pdf/MC100-32.pdf"
389+ task "MC100-64" : "#{ $root} /gen/crd /pdf/MC100-64.pdf"
390+ task "MC200-32" : "#{ $root} /gen/crd /pdf/MC200-32.pdf"
391+ task "MC200-64" : "#{ $root} /gen/crd /pdf/MC200-64.pdf"
392+ task "MC300-32" : "#{ $root} /gen/crd /pdf/MC300-32.pdf"
393+ task "MC300-64" : "#{ $root} /gen/crd /pdf/MC300-64.pdf"
384394task "MockProfileRelease" : "#{ $root} /gen/profile_doc/pdf/MockProfileRelease.pdf"
385395task "RVI20" : "#{ $root} /gen/profile_doc/pdf/RVI20.pdf"
386396task "RVA20" : "#{ $root} /gen/profile_doc/pdf/RVA20.pdf"
0 commit comments