origen_jtag 0.17.0 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc7646634845207bbbc1605bc114acbcd95ee976
4
- data.tar.gz: 1aee4f18b9d1e40acee402ee56262819a79b600d
3
+ metadata.gz: 6d8dc5d0470447c300d547f88cd60e35157c8e68
4
+ data.tar.gz: 510e6a393835b1a2837f146bac7271e9a3cdc337
5
5
  SHA512:
6
- metadata.gz: 4bc19f67dad01804c92e3c4125e313d718c56f2b6187aa61d102cadf90692c19b3b6b5edfcf80c6d43a9c23052e16288f396419b5618773542552518140c115c
7
- data.tar.gz: 4f365c682bac5996de6d9db62b1c53b102891773a8ec40bdfac3c50490dff20894d5ef0495bf02f28360b54d2307ef2507b06688171f0e31e7389219292d2c00
6
+ metadata.gz: dd8e254bd7804643e0b573738484108578fd5ccd0cb9788d77360afe8efb1d24063d8c057befed6ae1e060fe26523361d1951b827805f1bf49eaf17f1fe106a3
7
+ data.tar.gz: 80b7a152b38f3512769de246f21ab406e863c921f9aab00f62c3592e912a2c54a9c8aaa526c82dc76956d5c9bcde0c5c2562bbbb009d034b290e365797525ad4
@@ -1,64 +1,64 @@
1
- class OrigenJTAGApplication < Origen::Application
2
-
3
- # This file contains examples of some of the most common configuration options,
4
- # to see a real production example from a large application have a look at:
5
- # sync://sync-15088:15088/Projects/common_tester_blocks/blocks/C90TFS_NVM_tester/tool_data/origen_v2/config/application.rb
6
-
7
- # This information is used in headers and email templates, set it specific
8
- # to your application
9
- config.name = "Origen JTAG"
10
- config.initials = "OrigenJTAG"
11
- # Force naming for gem, done here because JTAG will not automatically convert to
12
- # 'jtag' when OrigenJTAG is snakecased
13
- self.name = "origen_jtag"
14
- self.namespace = "OrigenJTAG"
15
- config.rc_url = "git@github.com:Origen-SDK/origen_jtag.git"
16
- config.release_externally = true
17
-
18
- # To enable deployment of your documentation to a web server (via the 'origen web'
19
- # command) fill in these attributes.
20
- config.web_directory = "git@github.com:Origen-SDK/Origen-SDK.github.io.git/jtag"
21
- config.web_domain = "http://origen-sdk.org/jtag"
22
-
23
- config.semantically_version = true
24
-
25
- config.lint_test = {
26
- # Require the lint tests to pass before allowing a release to proceed
27
- run_on_tag: true,
28
- # Auto correct violations where possible whenever 'origen lint' is run
29
- auto_correct: true,
30
- # Limit the testing for large legacy applications
31
- #level: :easy,
32
- # Run on these directories/files by default
33
- #files: ["lib", "config/application.rb"],
34
- }
35
-
36
- # Ensure that all tests pass before allowing a release to continue
37
- def validate_release
38
- if !system("origen examples") #|| !system("origen specs")
39
- puts "Sorry but you can't release with failing tests, please fix them and try again."
40
- exit 1
41
- else
42
- puts "All tests passing, proceeding with release process!"
43
- end
44
- end
45
-
46
- # Run code coverage when deploying the web site
47
- def before_deploy_site
48
- Dir.chdir Origen.root do
49
- system "origen examples -c"
50
- dir = "#{Origen.root}/web/output/coverage"
51
- FileUtils.remove_dir(dir, true) if File.exists?(dir)
52
- system "mv #{Origen.root}/coverage #{dir}"
53
- end
54
- end
55
-
56
- # Deploy the website automatically after a production tag
57
- def after_release_email(tag, note, type, selector, options)
58
- command = "origen web compile --remote --api"
59
- Dir.chdir Origen.root do
60
- system command
61
- end
62
- end
63
-
64
- end
1
+ class OrigenJTAGApplication < Origen::Application
2
+
3
+ # This file contains examples of some of the most common configuration options,
4
+ # to see a real production example from a large application have a look at:
5
+ # sync://sync-15088:15088/Projects/common_tester_blocks/blocks/C90TFS_NVM_tester/tool_data/origen_v2/config/application.rb
6
+
7
+ # This information is used in headers and email templates, set it specific
8
+ # to your application
9
+ config.name = "Origen JTAG"
10
+ config.initials = "OrigenJTAG"
11
+ # Force naming for gem, done here because JTAG will not automatically convert to
12
+ # 'jtag' when OrigenJTAG is snakecased
13
+ self.name = "origen_jtag"
14
+ self.namespace = "OrigenJTAG"
15
+ config.rc_url = "git@github.com:Origen-SDK/origen_jtag.git"
16
+ config.release_externally = true
17
+
18
+ # To enable deployment of your documentation to a web server (via the 'origen web'
19
+ # command) fill in these attributes.
20
+ config.web_directory = "git@github.com:Origen-SDK/Origen-SDK.github.io.git/jtag"
21
+ config.web_domain = "http://origen-sdk.org/jtag"
22
+
23
+ config.semantically_version = true
24
+
25
+ config.lint_test = {
26
+ # Require the lint tests to pass before allowing a release to proceed
27
+ run_on_tag: true,
28
+ # Auto correct violations where possible whenever 'origen lint' is run
29
+ auto_correct: true,
30
+ # Limit the testing for large legacy applications
31
+ #level: :easy,
32
+ # Run on these directories/files by default
33
+ #files: ["lib", "config/application.rb"],
34
+ }
35
+
36
+ # Ensure that all tests pass before allowing a release to continue
37
+ def validate_release
38
+ if !system("origen examples") #|| !system("origen specs")
39
+ puts "Sorry but you can't release with failing tests, please fix them and try again."
40
+ exit 1
41
+ else
42
+ puts "All tests passing, proceeding with release process!"
43
+ end
44
+ end
45
+
46
+ # Run code coverage when deploying the web site
47
+ def before_deploy_site
48
+ Dir.chdir Origen.root do
49
+ system "origen examples -c"
50
+ dir = "#{Origen.root}/web/output/coverage"
51
+ FileUtils.remove_dir(dir, true) if File.exists?(dir)
52
+ system "mv #{Origen.root}/coverage #{dir}"
53
+ end
54
+ end
55
+
56
+ # Deploy the website automatically after a production tag
57
+ def after_release_email(tag, note, type, selector, options)
58
+ command = "origen web compile --remote --api"
59
+ Dir.chdir Origen.root do
60
+ system command
61
+ end
62
+ end
63
+
64
+ end
data/config/boot.rb CHANGED
@@ -1,24 +1,24 @@
1
- # This file is used to boot your plugin when it is running in standalone mode
2
- # from its own workspace - i.e. when the plugin is being developed.
3
- #
4
- # It will not be loaded when the plugin is imported by a 3rd party app - in that
5
- # case only lib/origen_jtag.rb is loaded.
6
- #
7
- # Therefore this file can be used to load anything extra that you need to boot
8
- # the development environment for this app. For example this is typically used
9
- # to load some additional test classes to use your plugin APIs so that they can
10
- # be tested and/or interacted with in the console.
11
- require 'origen_jtag'
12
-
13
- module OrigenJTAGDev
14
- # Example of how to explicitly require a file
15
- # require "origen_jtag_dev/my_file"
16
-
17
- # Load all files in the lib/origen_jtag_dev directory.
18
- # Note that there is no problem from requiring a file twice (Ruby will ignore
19
- # the second require), so if you have a file that must be required first, then
20
- # explicitly require it up above and then let this take care of the rest.
21
- Dir.glob("#{File.dirname(__FILE__)}/../lib/origen_jtag_dev/**/*.rb").sort.each do |file|
22
- require file
23
- end
24
- end
1
+ # This file is used to boot your plugin when it is running in standalone mode
2
+ # from its own workspace - i.e. when the plugin is being developed.
3
+ #
4
+ # It will not be loaded when the plugin is imported by a 3rd party app - in that
5
+ # case only lib/origen_jtag.rb is loaded.
6
+ #
7
+ # Therefore this file can be used to load anything extra that you need to boot
8
+ # the development environment for this app. For example this is typically used
9
+ # to load some additional test classes to use your plugin APIs so that they can
10
+ # be tested and/or interacted with in the console.
11
+ require 'origen_jtag'
12
+
13
+ module OrigenJTAGDev
14
+ # Example of how to explicitly require a file
15
+ # require "origen_jtag_dev/my_file"
16
+
17
+ # Load all files in the lib/origen_jtag_dev directory.
18
+ # Note that there is no problem from requiring a file twice (Ruby will ignore
19
+ # the second require), so if you have a file that must be required first, then
20
+ # explicitly require it up above and then let this take care of the rest.
21
+ Dir.glob("#{File.dirname(__FILE__)}/../lib/origen_jtag_dev/**/*.rb").sort.each do |file|
22
+ require file
23
+ end
24
+ end
data/config/commands.rb CHANGED
@@ -1,83 +1,86 @@
1
- # This file should be used to extend the origen command line tool with tasks
2
- # specific to your application.
3
- #
4
- # Also see the official docs on adding commands:
5
- # http://origen-sdk.org/origen/guides/custom/commands/
6
-
7
- # Map any command aliases here, for example to allow origen -x to refer to a
8
- # command called execute you would add a reference as shown below:
9
- aliases ={
10
- # "-x" => "execute",
11
- }
12
-
13
- # The requested command is passed in here as @command, this checks it against
14
- # the above alias table and should not be removed.
15
- @command = aliases[@command] || @command
16
-
17
- # Now branch to the specific task code
18
- case @command
19
-
20
- ## Run the unit tests
21
- when "specs"
22
- require "rspec"
23
- exit RSpec::Core::Runner.run(['spec'])
24
-
25
- when "examples", "test"
26
- Origen.load_application
27
- status = 0
28
-
29
- # Pattern generator tests
30
- ARGV = %w(jtag_workout -t debug_RH1 -e v93k -r approved)
31
- load "#{Origen.top}/lib/origen/commands/generate.rb"
32
- ARGV = %w(jtag_workout -t debug_RH1 -e j750.rb -r approved)
33
- load "#{Origen.top}/lib/origen/commands/generate.rb"
34
- ARGV = %w(jtag_workout -t debug_RL1 -e j750.rb -r approved)
35
- load "#{Origen.top}/lib/origen/commands/generate.rb"
36
-
37
- ARGV = %w(jtag_workout -t debug_RH2.rb -e j750.rb -r approved)
38
- load "#{Origen.top}/lib/origen/commands/generate.rb"
39
- ARGV = %w(jtag_workout -t debug_RH2_1.rb -e j750.rb -r approved)
40
- load "#{Origen.top}/lib/origen/commands/generate.rb"
41
-
42
- ARGV = %w(jtag_workout -t debug_RH4 -e v93k -r approved)
43
- load "#{Origen.top}/lib/origen/commands/generate.rb"
44
- ARGV = %w(jtag_workout -t debug_RH4 -e j750.rb -r approved)
45
- load "#{Origen.top}/lib/origen/commands/generate.rb"
46
- ARGV = %w(jtag_workout -t debug_RL4 -e j750.rb -r approved)
47
- load "#{Origen.top}/lib/origen/commands/generate.rb"
48
-
49
- ARGV = %w(rww_test -t debug_RH4 -e j750.rb -r approved)
50
- load "#{Origen.top}/lib/origen/commands/generate.rb"
51
-
52
- if Origen.app.stats.changed_files == 0 &&
53
- Origen.app.stats.new_files == 0 &&
54
- Origen.app.stats.changed_patterns == 0 &&
55
- Origen.app.stats.new_patterns == 0
56
-
57
- Origen.app.stats.report_pass
58
- else
59
- Origen.app.stats.report_fail
60
- status = 1
61
- end
62
- puts
63
- if @command == "test"
64
- Origen.app.unload_target!
65
- require "rspec"
66
- result = RSpec::Core::Runner.run(['spec'])
67
- status = status == 1 ? 1 : result
68
- end
69
- exit status
70
-
71
- # Always leave an else clause to allow control to fall back through to the
72
- # Origen command handler.
73
- # You probably want to also add the command details to the help shown via
74
- # origen -h, you can do this be assigning the required text to @application_commands
75
- # before handing control back to Origen. Un-comment the example below to get started.
76
- else
77
- @application_commands = <<-EOT
78
- specs Run the specs (tests), -c will enable coverage
79
- examples Run the examples (tests), -c will enable coverage
80
- test Run both specs and examples, -c will enable coverage
81
- EOT
82
-
83
- end
1
+ # This file should be used to extend the origen command line tool with tasks
2
+ # specific to your application.
3
+ #
4
+ # Also see the official docs on adding commands:
5
+ # http://origen-sdk.org/origen/guides/custom/commands/
6
+
7
+ # Map any command aliases here, for example to allow origen -x to refer to a
8
+ # command called execute you would add a reference as shown below:
9
+ aliases ={
10
+ # "-x" => "execute",
11
+ }
12
+
13
+ # The requested command is passed in here as @command, this checks it against
14
+ # the above alias table and should not be removed.
15
+ @command = aliases[@command] || @command
16
+
17
+ # Now branch to the specific task code
18
+ case @command
19
+
20
+ ## Run the unit tests
21
+ when "specs"
22
+ require "rspec"
23
+ exit RSpec::Core::Runner.run(['spec'])
24
+
25
+ when "examples", "test"
26
+ Origen.load_application
27
+ status = 0
28
+
29
+ # Pattern generator tests
30
+ ARGV = %w(jtag_workout -t debug_RH1 -e v93k -r approved)
31
+ load "#{Origen.top}/lib/origen/commands/generate.rb"
32
+ ARGV = %w(jtag_workout -t debug_RH1 -e j750.rb -r approved)
33
+ load "#{Origen.top}/lib/origen/commands/generate.rb"
34
+ ARGV = %w(jtag_workout -t debug_RL1 -e j750.rb -r approved)
35
+ load "#{Origen.top}/lib/origen/commands/generate.rb"
36
+
37
+ ARGV = %w(jtag_workout -t debug_RH2.rb -e j750.rb -r approved)
38
+ load "#{Origen.top}/lib/origen/commands/generate.rb"
39
+ ARGV = %w(jtag_workout -t debug_RH2_1.rb -e j750.rb -r approved)
40
+ load "#{Origen.top}/lib/origen/commands/generate.rb"
41
+
42
+ ARGV = %w(jtag_workout -t debug_RH4 -e v93k -r approved)
43
+ load "#{Origen.top}/lib/origen/commands/generate.rb"
44
+ ARGV = %w(jtag_workout -t debug_RH4 -e j750.rb -r approved)
45
+ load "#{Origen.top}/lib/origen/commands/generate.rb"
46
+ ARGV = %w(jtag_workout -t debug_RL4 -e j750.rb -r approved)
47
+ load "#{Origen.top}/lib/origen/commands/generate.rb"
48
+
49
+ ARGV = %w(rww_test -t debug_RH4 -e j750.rb -r approved)
50
+ load "#{Origen.top}/lib/origen/commands/generate.rb"
51
+
52
+ ARGV = %w(global_label_test -t debug_RH1 -e j750.rb -r approved)
53
+ load "#{Origen.top}/lib/origen/commands/generate.rb"
54
+
55
+ if Origen.app.stats.changed_files == 0 &&
56
+ Origen.app.stats.new_files == 0 &&
57
+ Origen.app.stats.changed_patterns == 0 &&
58
+ Origen.app.stats.new_patterns == 0
59
+
60
+ Origen.app.stats.report_pass
61
+ else
62
+ Origen.app.stats.report_fail
63
+ status = 1
64
+ end
65
+ puts
66
+ if @command == "test"
67
+ Origen.app.unload_target!
68
+ require "rspec"
69
+ result = RSpec::Core::Runner.run(['spec'])
70
+ status = status == 1 ? 1 : result
71
+ end
72
+ exit status
73
+
74
+ # Always leave an else clause to allow control to fall back through to the
75
+ # Origen command handler.
76
+ # You probably want to also add the command details to the help shown via
77
+ # origen -h, you can do this be assigning the required text to @application_commands
78
+ # before handing control back to Origen. Un-comment the example below to get started.
79
+ else
80
+ @application_commands = <<-EOT
81
+ specs Run the specs (tests), -c will enable coverage
82
+ examples Run the examples (tests), -c will enable coverage
83
+ test Run both specs and examples, -c will enable coverage
84
+ EOT
85
+
86
+ end
@@ -1,15 +1,15 @@
1
- # This file is similar to environment.rb and will be loaded
2
- # automatically at the start of each invocation of Origen.
3
- #
4
- # However the major difference is that it will not be loaded
5
- # if the application is imported by a 3rd party app - in that
6
- # case only environment.rb is loaded.
7
- #
8
- # Therefore this file should be used to load anything you need
9
- # to setup a development environment for this app, normally
10
- # this would be used to define some dummy classes to instantiate
11
- # your objects so that they can be tested and/or interacted with
12
- # in the console.
13
- module OrigenJTAG
14
- autoload :DUT, "origen_jtag/dut"
15
- end
1
+ # This file is similar to environment.rb and will be loaded
2
+ # automatically at the start of each invocation of Origen.
3
+ #
4
+ # However the major difference is that it will not be loaded
5
+ # if the application is imported by a 3rd party app - in that
6
+ # case only environment.rb is loaded.
7
+ #
8
+ # Therefore this file should be used to load anything you need
9
+ # to setup a development environment for this app, normally
10
+ # this would be used to define some dummy classes to instantiate
11
+ # your objects so that they can be tested and/or interacted with
12
+ # in the console.
13
+ module OrigenJTAG
14
+ autoload :DUT, "origen_jtag/dut"
15
+ end
data/config/version.rb CHANGED
@@ -1,8 +1,8 @@
1
- module OrigenJTAG
2
- MAJOR = 0
3
- MINOR = 17
4
- BUGFIX = 0
5
- DEV = nil
6
-
7
- VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
8
- end
1
+ module OrigenJTAG
2
+ MAJOR = 0
3
+ MINOR = 17
4
+ BUGFIX = 1
5
+ DEV = nil
6
+
7
+ VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
8
+ end