origen_testers 0.48.2 → 0.48.3

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
  SHA256:
3
- metadata.gz: 55301a17d683ca18d323223ba90def92f9d4696152f160e2cd48f6a60f34fa01
4
- data.tar.gz: 1049c5cd883d006bba7702acf5090355de254c3e44e8ff76b391b9a10a610199
3
+ metadata.gz: 3c67bc8fcc8e5ee79fccb2b53ab691ce22f5635811bedcb2cc6cbd6a247d0af7
4
+ data.tar.gz: 94966a015d097731c5a8320bbe2f0f8d7238b988151af466b213c2017e3f1c53
5
5
  SHA512:
6
- metadata.gz: c8065dab6a6d37ae9c6e8346c6cba7c4a95be66360edfb667727921f85e5ba712172b5266bb7eba4280426c70294342fdea1d6b17fc79997c92e5dab3f3a3bbd
7
- data.tar.gz: f52e174c381f347ae489a5c5cced814a844675b5ee0b13f33e7cf2d7c43617efbfe2dffe51818eafa3a63655eb1e749486974776b86dcfe467f22553331a6922
6
+ metadata.gz: 4628a25c96b619ddc665fc49c958468f9192ea16af3609d04cbb40f27ef714e13ccfba33a111b632e1842f7fb70018eb6665a70f57bfcdc316e829bd1cd1560c
7
+ data.tar.gz: 7fa99d5a51d669bb845bc529d91dcf69a77c19851313b1cacfca0e1d704f122c23dda8f7495de9893af6ab89103ea2e2648eaa5561cad96ddf2269fdc8f73a4f
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module OrigenTesters
2
2
  MAJOR = 0
3
3
  MINOR = 48
4
- BUGFIX = 2
4
+ BUGFIX = 3
5
5
  DEV = nil
6
6
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
7
7
  end
@@ -430,7 +430,8 @@ module OrigenTesters
430
430
  end
431
431
 
432
432
  def clean_flag(flag)
433
- flag = flag.to_s
433
+ # Added .dup to below line to get an unfrozen copy of the string, corrects a run time error
434
+ flag = flag.to_s.dup
434
435
  if flag[0] == '$'
435
436
  flag[0] = ''
436
437
  end
@@ -23,6 +23,7 @@ module OrigenTesters
23
23
  limit.type = :use_limit
24
24
  limit.opcode = 'Use-Limit'
25
25
  limit.parameter = nil
26
+ limit.tnum = nil # Don't duplate test numbers, allow auto-increment by leaving blank
26
27
  if ins.respond_to?(:lo_limit)
27
28
  lo = ins.lo_limit
28
29
  hi = ins.hi_limit
@@ -36,7 +36,7 @@ module OrigenTesters
36
36
  unless options[:subroutine_pat]
37
37
  stage.with_bank(:body) do
38
38
  # find the first vector
39
- stage.bank.delete_at(0) until stage.bank[0].is_a?(OrigenTesters::Vector)
39
+ stage.bank.delete_at(0) until stage.bank[0].is_a?(OrigenTesters::Vector) || stage.bank.empty?
40
40
  end
41
41
  end
42
42
  end
@@ -0,0 +1,25 @@
1
+ # Flow to exercise the Flow Control API
2
+ #
3
+ # Some of the other flows also cover the flow control API and those tests are used
4
+ # to guarantee that the test ID references work when sub-flows are involved.
5
+ # This flow provides a full checkout of all flow control methods.
6
+ Flow.create interface: 'OrigenTesters::Test::Interface', flow_name: "Flow Control Testing" do
7
+ flow.flow_description = 'Flow to exercise the Flow Control API' if tester.v93k?
8
+
9
+ self.resources_filename = 'flow_control'
10
+
11
+ log "Mixed-case manual flags"
12
+ test :test1, on_fail: { set_flag: :$My_Mixed_Flag }, continue: true, number: 51420
13
+ test :test2, if_flag: "$My_Mixed_Flag", number: 51430
14
+ unless_flag "$My_Mixed_Flag" do
15
+ test :test3, number: 51440
16
+ end
17
+
18
+ log "Mixed-case manual flags - induce frozen string error"
19
+ test :test4, on_fail: { set_flag: :$My_Mixed_Flag }, continue: true, number: 51450
20
+ test :test5, if_flag: "$My_Mixed_Flag", number: 51460
21
+ unless_flag "$My_Mixed_Flag" do
22
+ test :test6, number: 51470
23
+ end
24
+
25
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen_testers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.48.2
4
+ version: 0.48.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-30 00:00:00.000000000 Z
11
+ date: 2021-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: origen
@@ -516,6 +516,7 @@ files:
516
516
  - program/components/_temp.rb
517
517
  - program/custom_tests.rb
518
518
  - program/flow_control.rb
519
+ - program/flow_control_flag_bug.rb
519
520
  - program/prb1.rb
520
521
  - program/prb1_resources.rb
521
522
  - program/prb2.rb