origen 0.34.3 → 0.52.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/bin/origen +1 -231
- data/config/application.rb +12 -3
- data/config/boot.rb +2 -7
- data/config/commands.rb +3 -74
- data/config/rubocop/easy_disabled.yml +4 -0
- data/config/rubocop/easy_enabled.yml +0 -4
- data/config/rubocop/strict_disabled.yml +4 -0
- data/config/rubocop/strict_enabled.yml +0 -4
- data/config/version.rb +2 -3
- data/lib/origen.rb +27 -14
- data/lib/origen/application.rb +88 -2
- data/lib/origen/application/deployer.rb +3 -1
- data/lib/origen/application/release.rb +2 -2
- data/lib/origen/application/runner.rb +35 -20
- data/lib/origen/boot.rb +302 -0
- data/lib/origen/boot/api.rb +13 -0
- data/lib/origen/boot/app.rb +284 -0
- data/lib/origen/code_generators.rb +30 -10
- data/lib/origen/code_generators/actions.rb +244 -34
- data/lib/origen/code_generators/base.rb +9 -2
- data/lib/origen/code_generators/block.rb +203 -0
- data/lib/origen/code_generators/block_common.rb +100 -0
- data/lib/origen/code_generators/dut.rb +62 -0
- data/lib/origen/code_generators/feature.rb +50 -0
- data/lib/origen/code_generators/klass.rb +41 -0
- data/lib/origen/code_generators/model.rb +60 -0
- data/lib/origen/code_generators/module.rb +92 -0
- data/lib/origen/commands.rb +30 -13
- data/lib/origen/commands/archive.rb +175 -0
- data/lib/origen/commands/extract.rb +43 -0
- data/lib/origen/commands/generate.rb +1 -0
- data/lib/origen/commands/lint.rb +6 -1
- data/lib/origen/commands/new.rb +48 -24
- data/lib/origen/commands/new_resource.rb +41 -0
- data/lib/origen/commands/site.rb +52 -0
- data/lib/origen/commands/web.rb +11 -6
- data/lib/origen/commands_global.rb +9 -7
- data/lib/origen/core_ext/numeric.rb +20 -0
- data/lib/{option_parser → origen/core_ext/option_parser}/optparse.rb +0 -0
- data/lib/origen/dependencies.rb +0 -0
- data/lib/origen/file_handler.rb +18 -6
- data/lib/origen/generator.rb +19 -10
- data/lib/origen/generator/comparator.rb +2 -1
- data/lib/origen/generator/flow.rb +3 -1
- data/lib/origen/generator/job.rb +60 -16
- data/lib/origen/generator/pattern.rb +132 -72
- data/lib/origen/generator/pattern_finder.rb +3 -3
- data/lib/origen/generator/pattern_sequence.rb +201 -0
- data/lib/origen/generator/pattern_sequencer.rb +99 -0
- data/lib/origen/generator/pattern_thread.rb +175 -0
- data/lib/origen/loader.rb +381 -0
- data/lib/origen/log.rb +250 -108
- data/lib/origen/model.rb +22 -1
- data/lib/origen/model/exporter.rb +50 -10
- data/lib/origen/model_initializer.rb +5 -1
- data/lib/origen/operating_systems.rb +4 -0
- data/lib/origen/parameters.rb +96 -4
- data/lib/origen/parameters/set.rb +4 -3
- data/lib/origen/pins.rb +10 -8
- data/lib/origen/pins/pin.rb +61 -46
- data/lib/origen/ports/port.rb +5 -0
- data/lib/origen/registers.rb +5 -0
- data/lib/origen/registers/bit.rb +57 -53
- data/lib/origen/registers/bit_collection.rb +100 -43
- data/lib/origen/registers/msb0_delegator.rb +47 -0
- data/lib/origen/registers/reg.rb +114 -99
- data/lib/origen/revision_control.rb +1 -1
- data/lib/origen/revision_control/git.rb +23 -3
- data/lib/origen/site_config.rb +251 -60
- data/lib/origen/site_config/config.rb +217 -0
- data/lib/origen/sub_blocks.rb +106 -31
- data/lib/origen/top_level.rb +11 -0
- data/lib/origen/users/user.rb +3 -2
- data/lib/origen/utility/mailer.rb +42 -9
- data/lib/origen/value/bin_str_val.rb +1 -1
- data/lib/origen/value/hex_str_val.rb +1 -1
- data/lib/origen/version_string.rb +6 -1
- data/lib/tasks/gem.rake +6 -1
- data/origen_app_generators/Gemfile +19 -0
- data/origen_app_generators/Gemfile.lock +152 -0
- data/origen_app_generators/LICENSE +21 -0
- data/origen_app_generators/README.md +368 -0
- data/{templates/code_generators/rakefile.rb → origen_app_generators/Rakefile} +0 -0
- data/origen_app_generators/bin/boot.rb +39 -0
- data/origen_app_generators/config/application.rb +153 -0
- data/origen_app_generators/config/boot.rb +1 -0
- data/origen_app_generators/config/commands.rb +63 -0
- data/origen_app_generators/config/shared_commands.rb +177 -0
- data/origen_app_generators/config/version.rb +8 -0
- data/origen_app_generators/doc/history +223 -0
- data/origen_app_generators/lbin/bundle +105 -0
- data/origen_app_generators/lbin/byebug +29 -0
- data/origen_app_generators/lbin/coderay +29 -0
- data/origen_app_generators/lbin/htmldiff +29 -0
- data/origen_app_generators/lbin/httparty +29 -0
- data/origen_app_generators/lbin/httpclient +29 -0
- data/origen_app_generators/lbin/kramdown +29 -0
- data/origen_app_generators/lbin/ldiff +29 -0
- data/origen_app_generators/lbin/nanoc +29 -0
- data/origen_app_generators/lbin/nokogiri +29 -0
- data/origen_app_generators/lbin/origen +62 -0
- data/origen_app_generators/lbin/pry +29 -0
- data/origen_app_generators/lbin/rackup +29 -0
- data/origen_app_generators/lbin/rake +29 -0
- data/origen_app_generators/lbin/rspec +29 -0
- data/origen_app_generators/lbin/rubocop +29 -0
- data/origen_app_generators/lbin/ruby-parse +29 -0
- data/origen_app_generators/lbin/ruby-rewrite +29 -0
- data/origen_app_generators/lbin/thor +29 -0
- data/origen_app_generators/lbin/tilt +29 -0
- data/origen_app_generators/lbin/yard +29 -0
- data/origen_app_generators/lbin/yardoc +29 -0
- data/origen_app_generators/lbin/yri +29 -0
- data/origen_app_generators/lib/origen_app_generators.rb +125 -0
- data/origen_app_generators/lib/origen_app_generators/application.rb +62 -0
- data/origen_app_generators/lib/origen_app_generators/base.rb +257 -0
- data/origen_app_generators/lib/origen_app_generators/empty_application.rb +15 -0
- data/origen_app_generators/lib/origen_app_generators/empty_plugin.rb +15 -0
- data/origen_app_generators/lib/origen_app_generators/new.rb +170 -0
- data/origen_app_generators/lib/origen_app_generators/new_app_tests.rb +4 -0
- data/origen_app_generators/lib/origen_app_generators/origen_infrastructure/app_generator_plugin.rb +107 -0
- data/origen_app_generators/lib/origen_app_generators/plugin.rb +55 -0
- data/origen_app_generators/lib/origen_app_generators/test_engineering/common.rb +29 -0
- data/origen_app_generators/lib/origen_app_generators/test_engineering/stand_alone_application.rb +64 -0
- data/origen_app_generators/lib/origen_app_generators/test_engineering/test_block.rb +61 -0
- data/origen_app_generators/origen_app_generators.gemspec +33 -0
- data/{templates/code_generators → origen_app_generators/spec}/spec_helper.rb +0 -0
- data/origen_app_generators/target/debug.rb +8 -0
- data/origen_app_generators/target/default.rb +8 -0
- data/origen_app_generators/target/production.rb +0 -0
- data/origen_app_generators/templates/app_generators/application/.gitignore +37 -0
- data/origen_app_generators/templates/app_generators/application/.irbrc +9 -0
- data/origen_app_generators/templates/app_generators/application/.rspec +1 -0
- data/origen_app_generators/templates/app_generators/application/.travis.yml +11 -0
- data/origen_app_generators/templates/app_generators/application/Gemfile +34 -0
- data/origen_app_generators/templates/app_generators/application/Rakefile +7 -0
- data/origen_app_generators/templates/app_generators/application/app/blocks/top_level.rb +12 -0
- data/origen_app_generators/templates/app_generators/application/app/lib/module.rb +6 -0
- data/origen_app_generators/templates/app_generators/application/app/templates/web/index.md.erb +19 -0
- data/origen_app_generators/templates/app_generators/application/app/templates/web/layouts/_basic.html.erb +13 -0
- data/origen_app_generators/templates/app_generators/application/app/templates/web/partials/_navbar.html.erb +20 -0
- data/origen_app_generators/templates/app_generators/application/app/templates/web/release_notes.md.erb +5 -0
- data/origen_app_generators/templates/app_generators/application/config/application.rb +121 -0
- data/origen_app_generators/templates/app_generators/application/config/boot.rb +4 -0
- data/origen_app_generators/templates/app_generators/application/config/commands.rb +79 -0
- data/origen_app_generators/templates/app_generators/application/config/maillist_dev.txt +4 -0
- data/origen_app_generators/templates/app_generators/application/config/maillist_prod.txt +3 -0
- data/origen_app_generators/templates/app_generators/application/config/version.rb +8 -0
- data/origen_app_generators/templates/app_generators/application/doc/history +0 -0
- data/origen_app_generators/templates/app_generators/application/dot_keep +0 -0
- data/origen_app_generators/templates/app_generators/application/origen_core_session +2 -0
- data/origen_app_generators/templates/app_generators/application/spec/spec_helper.rb +44 -0
- data/origen_app_generators/templates/app_generators/application/target/debug.rb +8 -0
- data/origen_app_generators/templates/app_generators/application/target/default.rb +1 -0
- data/origen_app_generators/templates/app_generators/application/target/production.rb +4 -0
- data/origen_app_generators/templates/app_generators/new/generator.rb +102 -0
- data/origen_app_generators/templates/app_generators/new/info.md.erb +9 -0
- data/origen_app_generators/templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib/application.rb +54 -0
- data/origen_app_generators/templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib/base.rb +55 -0
- data/origen_app_generators/templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib/module.rb +28 -0
- data/origen_app_generators/templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib/plugin.rb +64 -0
- data/origen_app_generators/templates/app_generators/origen_infrastructure/app_generator_plugin/config/load_generators.rb +6 -0
- data/origen_app_generators/templates/app_generators/plugin/Gemfile +32 -0
- data/origen_app_generators/templates/app_generators/plugin/Rakefile +10 -0
- data/origen_app_generators/templates/app_generators/plugin/app/templates/web/index.md.erb +37 -0
- data/origen_app_generators/templates/app_generators/plugin/app/templates/web/partials/_navbar_external.html.erb +20 -0
- data/origen_app_generators/templates/app_generators/plugin/app/templates/web/partials/_navbar_internal.html.erb +20 -0
- data/origen_app_generators/templates/app_generators/plugin/config/boot.rb +24 -0
- data/origen_app_generators/templates/app_generators/plugin/gemspec.rb +43 -0
- data/origen_app_generators/templates/app_generators/test_engineering/environment/j750.rb +1 -0
- data/origen_app_generators/templates/app_generators/test_engineering/environment/uflex.rb +1 -0
- data/origen_app_generators/templates/app_generators/test_engineering/environment/v93k.rb +1 -0
- data/origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/.keep +0 -0
- data/origen_app_generators/templates/app_generators/test_engineering/test_block/.keep +0 -0
- data/origen_site_config.yml +55 -5
- data/templates/code_generators/attributes.rb +20 -0
- data/templates/code_generators/class.rb +9 -0
- data/templates/code_generators/controller.rb +87 -0
- data/templates/code_generators/model.rb +21 -0
- data/templates/code_generators/module.rb +4 -0
- data/templates/code_generators/parameters.rb +19 -0
- data/templates/code_generators/pins.rb +28 -0
- data/templates/code_generators/registers.rb +20 -0
- data/templates/code_generators/sub_blocks.rb +24 -0
- data/templates/code_generators/timesets.rb +24 -0
- data/templates/code_generators/version.rb +0 -1
- data/templates/git/gitignore.erb +0 -1
- data/vendor/lib/models/origen/export1.rb +77 -0
- data/vendor/lib/models/origen/export1/block1.rb +13 -0
- data/vendor/lib/models/origen/export1/block1/x.rb +36 -0
- data/vendor/lib/models/origen/non_origen_meta_data.md +1 -0
- metadata +149 -68
- data/bin/fix_my_workspace +0 -100
- data/lib/c99/ate_interface.rb +0 -77
- data/lib/c99/nvm.rb +0 -110
- data/lib/c99/target/mock2.rb +0 -1
- data/lib/c99/target/subdir/mock3.rb +0 -1
- data/lib/origen/code_generators/bundler.rb +0 -17
- data/lib/origen/code_generators/gem_setup.rb +0 -49
- data/lib/origen/code_generators/rake.rb +0 -13
- data/lib/origen/code_generators/rspec.rb +0 -12
- data/lib/origen/commands/add.rb +0 -12
- data/lib/tasks/private/build.rake +0 -8
- data/templates/code_generators/gemfile_app.rb +0 -4
- data/templates/code_generators/gemfile_plugin.rb +0 -6
- data/templates/code_generators/gemspec.rb +0 -33
@@ -0,0 +1 @@
|
|
1
|
+
require "origen_app_generators"
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# This file should be used to extend the origen command line tool with tasks
|
2
|
+
# specific to your application.
|
3
|
+
# The comments below should help to get started and you can also refer to
|
4
|
+
# lib/origen/commands.rb in your Origen core workspace for more examples and
|
5
|
+
# inspiration.
|
6
|
+
#
|
7
|
+
# Also see the official docs on adding commands:
|
8
|
+
# http://origen.freescale.net/origen/latest/guides/custom/commands/
|
9
|
+
|
10
|
+
# Map any command aliases here, for example to allow origen -x to refer to a
|
11
|
+
# command called execute you would add a reference as shown below:
|
12
|
+
aliases ={
|
13
|
+
# "-x" => "execute",
|
14
|
+
}
|
15
|
+
|
16
|
+
# The requested command is passed in here as @command, this checks it against
|
17
|
+
# the above alias table and should not be removed.
|
18
|
+
@command = aliases[@command] || @command
|
19
|
+
|
20
|
+
## Now branch to the specific task code
|
21
|
+
case @command
|
22
|
+
|
23
|
+
# Run the unit tests
|
24
|
+
when "specs"
|
25
|
+
require "rspec"
|
26
|
+
exit RSpec::Core::Runner.run(['spec'])
|
27
|
+
|
28
|
+
## Run the example-based (diff) tests
|
29
|
+
#when "examples"
|
30
|
+
# Origen.load_application
|
31
|
+
# status = 0
|
32
|
+
#
|
33
|
+
# # Compiler tests
|
34
|
+
# ARGV = %w(templates/example.txt.erb -t debug -r approved)
|
35
|
+
# load "origen/commands/compile.rb"
|
36
|
+
# # Pattern generator tests
|
37
|
+
# #ARGV = %w(some_pattern -t debug -r approved)
|
38
|
+
# #load "#{Origen.top}/lib/origen/commands/generate.rb"
|
39
|
+
#
|
40
|
+
# if Origen.app.stats.changed_files == 0 &&
|
41
|
+
# Origen.app.stats.new_files == 0 &&
|
42
|
+
# Origen.app.stats.changed_patterns == 0 &&
|
43
|
+
# Origen.app.stats.new_patterns == 0
|
44
|
+
#
|
45
|
+
# Origen.app.stats.report_pass
|
46
|
+
# else
|
47
|
+
# Origen.app.stats.report_fail
|
48
|
+
# status = 1
|
49
|
+
# end
|
50
|
+
# puts
|
51
|
+
# exit status # Exit with a 1 on the event of a failure per std unix result codes
|
52
|
+
#
|
53
|
+
## Always leave an else clause to allow control to fall back through to the
|
54
|
+
## Origen command handler.
|
55
|
+
## You probably want to also add the command details to the help shown via
|
56
|
+
## origen -h, you can do this be assigning the required text to @application_commands
|
57
|
+
## before handing control back to Origen. Un-comment the example below to get started.
|
58
|
+
else
|
59
|
+
# @application_commands = <<-EOT
|
60
|
+
# specs Run the specs (tests), -c will enable coverage
|
61
|
+
# EOT
|
62
|
+
|
63
|
+
end
|
@@ -0,0 +1,177 @@
|
|
1
|
+
# The requested command is passed in here as @command
|
2
|
+
case @command
|
3
|
+
|
4
|
+
when "app_gen:test"
|
5
|
+
options = {}
|
6
|
+
|
7
|
+
opt_parser = OptionParser.new do |opts|
|
8
|
+
opts.banner = <<-END
|
9
|
+
Test the generators by emulating the 'origen new' command execution and building the new
|
10
|
+
application into the output/my_app directory.
|
11
|
+
|
12
|
+
Usage: origen app_gen:test [options]
|
13
|
+
origen app_gen:test --regression # Test all generators
|
14
|
+
origen app_gen:test --inputs 0 # Test with user inputs set 0
|
15
|
+
END
|
16
|
+
opts.on('-d', '--debugger', 'Enable the debugger') { options[:debugger] = true }
|
17
|
+
opts.on('-i', '--inputs INDEX', Integer, "Apply the set of test inputs defined in #{Origen.app.namespace}::TEST_INPUTS[INDEX]") { |f| options[:inputs] = f }
|
18
|
+
opts.on('-r', '--regression', "Run all sets of test inputs defined in #{Origen.app.namespace}::TEST_INPUTS[INDEX]") { options[:regression] = true }
|
19
|
+
opts.on('-a', '--all_generators', "Include the generators from Origen core") { options[:all_generators] = true }
|
20
|
+
opts.separator ''
|
21
|
+
opts.on('-h', '--help', 'Show this message') { puts opts; exit }
|
22
|
+
end
|
23
|
+
|
24
|
+
opt_parser.orig_parse! ARGV
|
25
|
+
|
26
|
+
output_dir = File.join(Origen.root, 'output')
|
27
|
+
FileUtils.rm_rf output_dir if File.exist?(output_dir)
|
28
|
+
FileUtils.mkdir_p output_dir
|
29
|
+
|
30
|
+
if options[:inputs] || options[:regression]
|
31
|
+
if options[:regression]
|
32
|
+
inputs = Origen.app.namespace.constantize::TEST_INPUTS
|
33
|
+
else
|
34
|
+
inputs = [Origen.app.namespace.constantize::TEST_INPUTS[options[:inputs].to_i]]
|
35
|
+
end
|
36
|
+
|
37
|
+
prefix = 'bundle exec ' unless Origen.site_config.gem_manage_bundler
|
38
|
+
|
39
|
+
overall_fail = false
|
40
|
+
|
41
|
+
inputs.each do |vals|
|
42
|
+
test_failed = false
|
43
|
+
post_build_operations = Array(vals.pop)
|
44
|
+
target_load_test_required = false
|
45
|
+
post_build_operations = post_build_operations.map do |op|
|
46
|
+
if op.to_s == 'default'
|
47
|
+
target_load_test_required = true
|
48
|
+
cmds = ['origen -v']
|
49
|
+
# For some reason this command doesn't work in Travis CI, don't know why and
|
50
|
+
# couldn't work out how to fix (looks like a Bundler-related issue)
|
51
|
+
cmds << 'origen lint --no-correct' unless ENV['TRAVIS']
|
52
|
+
cmds << 'bundle exec origen exec tmp/new_app_tests.rb'
|
53
|
+
cmds << 'origen web compile --no-serve'
|
54
|
+
cmds
|
55
|
+
elsif op.to_s == 'load_target'
|
56
|
+
target_load_test_required = true
|
57
|
+
'origen exec tmp/new_app_tests.rb'
|
58
|
+
else
|
59
|
+
op
|
60
|
+
end
|
61
|
+
end.flatten
|
62
|
+
|
63
|
+
str = vals.map { |i| i == :default ? "\n" : "#{i}\n" }.join('')
|
64
|
+
cmd = "#{prefix} origen app_gen:test"
|
65
|
+
cmd += ' --debugger' if options[:debugger]
|
66
|
+
cmd += ' --all_generators' if options[:all_generators]
|
67
|
+
passed = false
|
68
|
+
Bundler.with_clean_env do
|
69
|
+
passed = system "echo '#{str}' | #{cmd}"
|
70
|
+
end
|
71
|
+
|
72
|
+
if passed
|
73
|
+
# The app is successfully built, now see if it works...
|
74
|
+
unless post_build_operations.empty?
|
75
|
+
if target_load_test_required
|
76
|
+
FileUtils.mkdir_p('output/my_app/tmp')
|
77
|
+
FileUtils.cp "#{Origen.root!}/lib/origen_app_generators/new_app_tests.rb", 'output/my_app/tmp'
|
78
|
+
end
|
79
|
+
|
80
|
+
operation_failed = false
|
81
|
+
Bundler.with_clean_env do
|
82
|
+
Dir.chdir "#{Origen.root}/output/my_app" do
|
83
|
+
post_build_operations.each_with_index do |op, i|
|
84
|
+
if i == 0 && !Origen.site_config.gem_manage_bundler
|
85
|
+
system('bundle')
|
86
|
+
end
|
87
|
+
Origen.log.info "Running command: #{op}"
|
88
|
+
if system("#{prefix}#{op}")
|
89
|
+
Origen.log.success "Command passed: #{op}"
|
90
|
+
else
|
91
|
+
Origen.log.error "Command failed: #{op}"
|
92
|
+
operation_failed = true
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
if operation_failed
|
99
|
+
if options[:regression]
|
100
|
+
overall_fail = true
|
101
|
+
else
|
102
|
+
Origen.app.stats.report_fail
|
103
|
+
exit 1
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
else
|
108
|
+
Origen.log.error "The generator failed to build!"
|
109
|
+
if options[:regression]
|
110
|
+
overall_fail = true
|
111
|
+
else
|
112
|
+
Origen.app.stats.report_fail
|
113
|
+
exit 1
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
if options[:regression] && overall_fail
|
119
|
+
Origen.app.stats.report_fail
|
120
|
+
exit 1
|
121
|
+
else
|
122
|
+
Origen.app.stats.report_pass
|
123
|
+
exit 0
|
124
|
+
end
|
125
|
+
|
126
|
+
else
|
127
|
+
|
128
|
+
# Launch the generator in a standalone shell,
|
129
|
+
# this is to emulate how it will run in real life and cause it to fail if there are
|
130
|
+
# any dependencies on running within an Origen app environment
|
131
|
+
boot = "#{Origen.root!}/bin/boot.rb"
|
132
|
+
origen_lib = "#{Origen.top}/lib"
|
133
|
+
app_gen_lib = "#{Origen.root!}/lib"
|
134
|
+
app_lib = "#{Origen.root}/lib"
|
135
|
+
load_generators = "#{Origen.root}/config/load_generators.rb"
|
136
|
+
cmd = "#{boot} #{origen_lib} #{app_gen_lib} #{app_lib} #{load_generators}"
|
137
|
+
cmd = "#{cmd} true" if options[:all_generators] || Origen.app.name == :origen_app_generators
|
138
|
+
cmd = "ruby #{cmd}" if Origen.os.windows?
|
139
|
+
cmd = "bundle exec #{cmd}" unless Origen.site_config.gem_manage_bundler
|
140
|
+
# puts cmd
|
141
|
+
passed = false
|
142
|
+
Bundler.with_clean_env do
|
143
|
+
passed = system cmd
|
144
|
+
end
|
145
|
+
exit passed ? 0 : 1
|
146
|
+
end
|
147
|
+
|
148
|
+
when "app_gen:new"
|
149
|
+
options = {}
|
150
|
+
|
151
|
+
opt_parser = OptionParser.new do |opts|
|
152
|
+
opts.banner = <<-END
|
153
|
+
Create a new application generator.
|
154
|
+
|
155
|
+
Usage: origen app_gen:new [options]
|
156
|
+
END
|
157
|
+
opts.on('-d', '--debugger', 'Enable the debugger') { options[:debugger] = true }
|
158
|
+
opts.separator ''
|
159
|
+
opts.on('-h', '--help', 'Show this message') { puts opts; exit }
|
160
|
+
end
|
161
|
+
|
162
|
+
opt_parser.orig_parse! ARGV
|
163
|
+
|
164
|
+
OrigenAppGenerators::New.start []
|
165
|
+
exit 0
|
166
|
+
|
167
|
+
# Always leave an else clause to allow control to fall back through to the Origen command handler.
|
168
|
+
# You probably want to also add the command details to the help shown via 'origen -h',
|
169
|
+
# you can do this bb adding the required text to @plugin_commands before handing control back to
|
170
|
+
# Origen.
|
171
|
+
else
|
172
|
+
@plugin_commands << <<-EOT
|
173
|
+
app_gen:test Test run the 'origen new' command operation using your latest generators
|
174
|
+
app_gen:new Create a new application or plugin generator
|
175
|
+
EOT
|
176
|
+
|
177
|
+
end
|
@@ -0,0 +1,223 @@
|
|
1
|
+
<a class="anchor release_tag" name="v2_0_0"></a>
|
2
|
+
<h1><a href="#v2_0_0">Tag: v2.0.0</a></h1>
|
3
|
+
|
4
|
+
##### Branch: 'master'
|
5
|
+
|
6
|
+
##### by Stephen McGinty on 27-May-2019 09:28AM
|
7
|
+
|
8
|
+
|
9
|
+
Generated apps now come with an app/ dir as supported by Origen >= 0.50.0
|
10
|
+
|
11
|
+
<a class="anchor release_tag" name="v1_2_0"></a>
|
12
|
+
<h1><a href="#v1_2_0">Tag: v1.2.0</a></h1>
|
13
|
+
|
14
|
+
##### Branch: 'master'
|
15
|
+
|
16
|
+
##### by Stephen McGinty on 20-Jul-2018 10:27AM
|
17
|
+
|
18
|
+
|
19
|
+
* Added a fall back way of working out the latest Origen version if the default way
|
20
|
+
of fetching it from rubygems.org fails (e.g. due to https connection issues in
|
21
|
+
runtime environment).
|
22
|
+
|
23
|
+
* Removed 'https://rubygems.org' as a Gemfile source when the app/plugin type is internal
|
24
|
+
and Origen.site\_config.gem\_server has been configured. Origen.site\_config.gem\_server can
|
25
|
+
be set to an array of sources, so site configurations can put it back in again if they want it.
|
26
|
+
|
27
|
+
* Disabled lint checks in the regression command, couldn't work out why it is failing in
|
28
|
+
CI/Travis, though it still works and is enabled when the regression command
|
29
|
+
(origen app\_gen:test -r) is run locally.
|
30
|
+
|
31
|
+
<a class="anchor release_tag" name="v1_1_4"></a>
|
32
|
+
<h1><a href="#v1_1_4">Tag: v1.1.4</a></h1>
|
33
|
+
|
34
|
+
##### Branch: 'master'
|
35
|
+
|
36
|
+
##### by David Welguisz on 07-Dec-2017 10:23AM
|
37
|
+
|
38
|
+
|
39
|
+
#### Bug Fix
|
40
|
+
* Gemfile.lock was bad. Had windows specific gems. This one is clean.
|
41
|
+
|
42
|
+
<a class="anchor release_tag" name="v1_1_3"></a>
|
43
|
+
<h1><a href="#v1_1_3">Tag: v1.1.3</a></h1>
|
44
|
+
|
45
|
+
##### Branch: 'master'
|
46
|
+
|
47
|
+
##### by David Welguisz on 17-Oct-2017 11:33AM
|
48
|
+
|
49
|
+
|
50
|
+
#### Bug Fix
|
51
|
+
* Previous release had it that copying directories could only happen if they had the same destination and source name. Now source and destination directory can be different.
|
52
|
+
|
53
|
+
<a class="anchor release_tag" name="v1_1_2"></a>
|
54
|
+
<h1><a href="#v1_1_2">Tag: v1.1.2</a></h1>
|
55
|
+
|
56
|
+
##### Branch: 'master'
|
57
|
+
|
58
|
+
##### by David Welguisz on 16-Oct-2017 12:57PM
|
59
|
+
|
60
|
+
|
61
|
+
#### Updates
|
62
|
+
* Added the ability to recursively copy a directory in the app generator
|
63
|
+
* Added examples in the comment section of build\_filelist
|
64
|
+
|
65
|
+
<a class="anchor release_tag" name="v1_1_1"></a>
|
66
|
+
<h1><a href="#v1_1_1">Tag: v1.1.1</a></h1>
|
67
|
+
|
68
|
+
##### Branch: 'master'
|
69
|
+
|
70
|
+
##### by David Welguisz on 06-Oct-2017 13:05PM
|
71
|
+
|
72
|
+
|
73
|
+
#### Updates
|
74
|
+
* Added the ability to recursively copy a directory in the app generator
|
75
|
+
* Added examples in the comment section of build\_filelist
|
76
|
+
|
77
|
+
<a class="anchor release_tag" name="v1_1_0"></a>
|
78
|
+
<h1><a href="#v1_1_0">Tag: v1.1.0</a></h1>
|
79
|
+
|
80
|
+
##### Branch: 'master'
|
81
|
+
|
82
|
+
##### by Stephen McGinty on 29-Aug-2017 05:48AM
|
83
|
+
|
84
|
+
|
85
|
+
* Improvements to the custom app generators application template
|
86
|
+
* Improved the source path lookup for custom app generators, now includes
|
87
|
+
a base dir and should now add dirs for any additional sub-classing that
|
88
|
+
is added
|
89
|
+
* All directories will now include .keep files by default, though this can
|
90
|
+
be inhibited by setting nokeep: true within the directory definition in
|
91
|
+
the filelist
|
92
|
+
|
93
|
+
<a class="anchor release_tag" name="v1_0_1"></a>
|
94
|
+
<h1><a href="#v1_0_1">Tag: v1.0.1</a></h1>
|
95
|
+
|
96
|
+
##### Branch: 'master'
|
97
|
+
|
98
|
+
##### by Stephen McGinty on 18-Aug-2017 18:46PM
|
99
|
+
|
100
|
+
|
101
|
+
Some bug fixes after first trial in the wild, no changes to documented behavior
|
102
|
+
|
103
|
+
<a class="anchor release_tag" name="v1_0_0"></a>
|
104
|
+
<h1><a href="#v1_0_0">Tag: v1.0.0</a></h1>
|
105
|
+
|
106
|
+
##### Branch: 'master'
|
107
|
+
|
108
|
+
##### by Stephen McGinty on 17-Aug-2017 13:47PM
|
109
|
+
|
110
|
+
|
111
|
+
Added support for company customized application generators
|
112
|
+
|
113
|
+
<a class="anchor release_tag" name="v0_4_0"></a>
|
114
|
+
<h1><a href="#v0_4_0">Tag: v0.4.0</a></h1>
|
115
|
+
|
116
|
+
##### Branch: 'master'
|
117
|
+
|
118
|
+
##### by Stephen McGinty on 24-May-2017 17:31PM
|
119
|
+
|
120
|
+
|
121
|
+
Added origen\_updater to all new apps and fixed some bugs
|
122
|
+
|
123
|
+
<a class="anchor release_tag" name="v0_3_2"></a>
|
124
|
+
<h1><a href="#v0_3_2">Tag: v0.3.2</a></h1>
|
125
|
+
|
126
|
+
##### Branch: 'master'
|
127
|
+
|
128
|
+
##### by Stephen McGinty on 06-Jun-2016 21:32PM
|
129
|
+
|
130
|
+
|
131
|
+
Fix for \#1
|
132
|
+
|
133
|
+
<a class="anchor release_tag" name="v0_3_1"></a>
|
134
|
+
<h1><a href="#v0_3_1">Tag: v0.3.1</a></h1>
|
135
|
+
|
136
|
+
##### Branch: 'master'
|
137
|
+
|
138
|
+
##### by Stephen McGinty on 26-May-2016 05:48AM
|
139
|
+
|
140
|
+
|
141
|
+
Added .byebug\_history to generated .gitignore
|
142
|
+
|
143
|
+
<a class="anchor release_tag" name="v0_3_0"></a>
|
144
|
+
<h1><a href="#v0_3_0">Tag: v0.3.0</a></h1>
|
145
|
+
|
146
|
+
##### Branch: 'master'
|
147
|
+
|
148
|
+
##### by Stephen McGinty on 13-May-2016 00:15AM
|
149
|
+
|
150
|
+
|
151
|
+
Added an initial test module template
|
152
|
+
|
153
|
+
<a class="anchor release_tag" name="v0_2_3"></a>
|
154
|
+
<h1><a href="#v0_2_3">Tag: v0.2.3</a></h1>
|
155
|
+
|
156
|
+
##### Branch: 'master'
|
157
|
+
|
158
|
+
##### by Stephen McGinty on 25-Feb-2016 09:15AM
|
159
|
+
|
160
|
+
|
161
|
+
Added maillists
|
162
|
+
|
163
|
+
<a class="anchor release_tag" name="v0_2_2"></a>
|
164
|
+
<h1><a href="#v0_2_2">Tag: v0.2.2</a></h1>
|
165
|
+
|
166
|
+
##### Branch: 'master'
|
167
|
+
|
168
|
+
##### by Stephen McGinty on 22-Sep-2015 09:46AM
|
169
|
+
|
170
|
+
|
171
|
+
Added basic web pages templates to generated apps/plugins
|
172
|
+
|
173
|
+
<a class="anchor release_tag" name="v0_2_1"></a>
|
174
|
+
<h1><a href="#v0_2_1">Tag: v0.2.1</a></h1>
|
175
|
+
|
176
|
+
##### Branch: 'master'
|
177
|
+
|
178
|
+
##### by Stephen McGinty on 21-Sep-2015 10:34AM
|
179
|
+
|
180
|
+
|
181
|
+
Include template .files in the gem build
|
182
|
+
|
183
|
+
<a class="anchor release_tag" name="v0_2_0"></a>
|
184
|
+
<h1><a href="#v0_2_0">Tag: v0.2.0</a></h1>
|
185
|
+
|
186
|
+
##### Branch: 'master'
|
187
|
+
|
188
|
+
##### by Stephen McGinty on 21-Sep-2015 08:18AM
|
189
|
+
|
190
|
+
|
191
|
+
Initial release of stand alone test engineering app template
|
192
|
+
|
193
|
+
<a class="anchor release_tag" name="v0_1_0"></a>
|
194
|
+
<h1><a href="#v0_1_0">Tag: v0.1.0</a></h1>
|
195
|
+
|
196
|
+
##### Branch: 'master'
|
197
|
+
|
198
|
+
##### by Stephen McGinty on 10-Sep-2015 07:47AM
|
199
|
+
|
200
|
+
|
201
|
+
Initial working version of stand alone test engineering app generator
|
202
|
+
|
203
|
+
<a class="anchor release_tag" name="v0_0_3"></a>
|
204
|
+
<h1><a href="#v0_0_3">Tag: v0.0.3</a></h1>
|
205
|
+
|
206
|
+
##### Branch: 'master'
|
207
|
+
|
208
|
+
##### by r49409 on 24-Jun-2015 10:41AM
|
209
|
+
|
210
|
+
|
211
|
+
The generic application and plugin generators now build an app that can boot
|
212
|
+
|
213
|
+
<a class="anchor release_tag" name="v0_0_2"></a>
|
214
|
+
<h1><a href="#v0_0_2">Tag: v0.0.2</a></h1>
|
215
|
+
|
216
|
+
##### Branch: 'master'
|
217
|
+
|
218
|
+
##### by r49409 on 24-Jun-2015 08:06AM
|
219
|
+
|
220
|
+
|
221
|
+
Initial version that can run, the generated new app could have bugs however
|
222
|
+
|
223
|
+
|