origen_std_lib 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90e033ed9a86e3be90b87659b9c9e5dc7f861240
4
- data.tar.gz: b24eb49d30dba303bf7660150872b8a7a82269ff
3
+ metadata.gz: eadbc4a0b2fcc29034f683af9e445734b77c33a0
4
+ data.tar.gz: 44f4f6b42699e19027062da331d333a22a289b1a
5
5
  SHA512:
6
- metadata.gz: ebca35973aa2876aa8d8d9586958ea342d305e2c963aa0948afb62dfaf64160937b514e01bca3bf1716705ceb953af207bff30935337b4a8cde3ed46ef89e05e
7
- data.tar.gz: 4f134a1d9a9013d8217b93bae014dd4f42e34b9729b9c6ca6f7493f54db7246d56b54e4c4729f9bfe91ed7efbbac7d0b577acb7cd6075de4e0fd17c459f5ca60
6
+ metadata.gz: 01ed8d65d50cd94b129f3c81428fe564d65b53ca17463a5f9eec024d7f9890cb386b2673f2dc1cb107ee01079271aab54579bb90d7b4746e522ec1ab34774ba1
7
+ data.tar.gz: 5542819ce7d70fb88193e112a2c9854ae5112e10cb7b3547feed65844c6eb80d9deda49c4e94df37a3bf48ea33f940703233efb8fb589eb19dd50374c37598ab
@@ -1,6 +1,6 @@
1
1
  module OrigenStdLib
2
2
  MAJOR = 0
3
- MINOR = 9
3
+ MINOR = 10
4
4
  BUGFIX = 0
5
5
  DEV = nil
6
6
 
@@ -1,7 +1,7 @@
1
1
  #ifndef ORIGEN_HPP_INCLUDED
2
2
  #define ORIGEN_HPP_INCLUDED
3
3
 
4
- #define ORIGEN_VERSION "0.9.0"
4
+ #define ORIGEN_VERSION "0.10.0"
5
5
 
6
6
  #ifndef debugger
7
7
  #define debugger __asm__("int $3");
@@ -154,14 +154,14 @@ void DCMeasurement::execute() {
154
154
  void DCMeasurement::serialProcessing(int site) {
155
155
  if (_processResults) {
156
156
  logFunctionalTest(testSuiteName, site, funcResultsPre[site] == 1, label);
157
- TESTSET().testnumber(testnumber()).cont(true).judgeAndLog_FunctionalTest(funcResultsPre[site] == 1);
157
+ TESTSET().testnumber(testnumber()).cont(true).testname(testSuiteName + "_PRE").judgeAndLog_FunctionalTest(funcResultsPre[site] == 1);
158
158
 
159
159
  logParametricTest(testSuiteName, site, filterResult(results[site]), limits(), _pin);
160
160
  TESTSET().testnumber(testnumber() + 1).judgeAndLog_ParametricTest(_pin, testSuiteName, limits(), filterResult(results[site]));
161
161
 
162
162
  if (_applyShutdown && _checkShutdown) {
163
163
  logFunctionalTest(testSuiteName, site, funcResultsPost[site] == 1, _shutdownPattern);
164
- TESTSET().testnumber(testnumber() + 1).cont(true).judgeAndLog_FunctionalTest(funcResultsPost[site] == 1);
164
+ TESTSET().testnumber(testnumber() + 2).cont(true).testname(testSuiteName + "_POST").judgeAndLog_FunctionalTest(funcResultsPost[site] == 1);
165
165
  }
166
166
  }
167
167
  }
@@ -77,7 +77,7 @@ void FrequencyMeasurement::serialProcessing(int site) {
77
77
  result = calculateFrequency(captureData, _periodInNs);
78
78
  }
79
79
  logFunctionalTest(testSuiteName, site, funcResults[site] == 1, label);
80
- TESTSET().testnumber(testnumber()).judgeAndLog_FunctionalTest(funcResults[site] == 1);
80
+ TESTSET().testnumber(testnumber()).testname(testSuiteName).judgeAndLog_FunctionalTest(funcResults[site] == 1);
81
81
 
82
82
  logParametricTest(testSuiteName, site, filterResult(result), limits(), _pin);
83
83
  TESTSET().testnumber(testnumber() + 1).judgeAndLog_ParametricTest(_pin, testSuiteName, limits(), filterResult(result));
@@ -11,6 +11,7 @@ FunctionalTest::FunctionalTest() {
11
11
  capture(0);
12
12
  processResults(1);
13
13
  bitPerWord(1);
14
+ pattern("");
14
15
  }
15
16
 
16
17
  FunctionalTest::~FunctionalTest() { }
@@ -23,6 +24,8 @@ FunctionalTest & FunctionalTest::pin(string v) { _pin = v; return *this; }
23
24
  FunctionalTest & FunctionalTest::bitPerWord(int v) { _bitPerWord = v; return *this; }
24
25
  /// When set to 0 the results of the test will not be judged or logged
25
26
  FunctionalTest & FunctionalTest::processResults(int v) { _processResults = v; return *this; }
27
+ /// Override the pattern argument from the test suite
28
+ FunctionalTest & FunctionalTest::pattern(string v) { _pattern = v; return *this; }
26
29
 
27
30
  // All test methods must implement this function
28
31
  FunctionalTest & FunctionalTest::getThis() { return *this; }
@@ -41,7 +44,11 @@ void FunctionalTest::execute() {
41
44
  GET_TESTSUITE_NAME(testSuiteName);
42
45
  // testSuiteName = testSuiteName + toStr(CURRENT_SITE_NUMBER());
43
46
  // cout << testSuiteName << endl;
44
- label = Primary.getLabel();
47
+ if (_pattern == "") {
48
+ label = Primary.getLabel();
49
+ } else {
50
+ label = _pattern;
51
+ }
45
52
 
46
53
  if (_capture) {
47
54
  pinName = extractPinsFromGroup(_pin);
@@ -100,7 +107,7 @@ void FunctionalTest::serialProcessing(int site) {
100
107
  if (_processResults) {
101
108
  // cout << "POST " << site << ": " << results[site] << endl;
102
109
  logFunctionalTest(testSuiteName, site, results[site] == 1, label);
103
- TESTSET().testnumber(testnumber()).judgeAndLog_FunctionalTest(results[site] == 1);
110
+ TESTSET().testnumber(testnumber()).testname(testSuiteName).judgeAndLog_FunctionalTest(results[site] == 1);
104
111
  }
105
112
  }
106
113
 
@@ -17,6 +17,7 @@ class FunctionalTest: public Base {
17
17
  int _capture;
18
18
  int _bitPerWord;
19
19
  int _processResults;
20
+ string _pattern;
20
21
 
21
22
  public:
22
23
  FunctionalTest();
@@ -29,7 +30,7 @@ public:
29
30
  FunctionalTest & pin(string v);
30
31
  FunctionalTest & bitPerWord(int v);
31
32
  FunctionalTest & processResults(int v);
32
-
33
+ FunctionalTest & pattern(string v);
33
34
 
34
35
  protected:
35
36
  FunctionalTest & getThis();
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen_std_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-10 00:00:00.000000000 Z
11
+ date: 2017-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: origen