Permalink
Browse files

FAST: For each operator a new test case file is added

For each possible operator a new test case is added.
So, there are files for the followings operators:
None, Copy, Increment, Delta, Constant. Each file
contains fields of all supported types i.e. integer,
unsigned integer, decimal and string and of all
possible presence values i.e. mandatory and optional.

Signed-off-by: Marat Stanichenko <mstanichenko@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
  • Loading branch information...
1 parent 9dd9795 commit 43d3837fb98504b6b8b691979d6be9e7deb2c8ff @mstanichenko mstanichenko committed with Jan 11, 2013
@@ -0,0 +1,14 @@
+8
+int,mandatory,const,0,1
+int,optional,const,1,-1
+uint,mandatory,const,0,2
+uint,optional,const,2,2
+decimal,mandatory,const,0,-3,3
+decimal,optional,const,3,4,-4
+string,mandatory,const,0,one
+string,optional,const,4,four
+1,none,2,2,-3,3,none,one,none
+1,-1,2,none,-3,3,none,one,four
+1,-1,2,2,-3,3,4,-4,one,none
+1,-1,2,2,-3,3,4,-4,one,none
+1,-1,2,2,-3,3,4,-4,one,four
@@ -0,0 +1,15 @@
+8
+int,mandatory,copy,1,0
+int,optional,copy,2,0
+uint,mandatory,copy,3,0
+uint,optional,copy,4,0
+decimal,mandatory,copy,5,0,0
+decimal,optional,copy,6,0,0
+string,mandatory,copy,7,none
+string,optional,copy,8,none
+-1,-1,2,2,-1,-1,-1,-1,one,one
+-2,-2,1,1,-2,-2,-2,-2,two,two
+-2,-2,1,1,-2,-2,-2,-2,two,two
+-1,none,2,none,-1,-1,none,one,none
+-1,none,2,none,-1,-1,none,one,none
+-2,-2,1,1,-2,-2,-2,-2,two,two
@@ -0,0 +1,14 @@
+6
+int,mandatory,delta,0,1
+int,optional,delta,0,-1
+uint,mandatory,delta,0,1
+uint,optional,delta,0,none
+decimal,mandatory,delta,0,-1,1
+decimal,optional,delta,0,1,-1
+-1,-1,2,2,-1,-1,-1,-1
+-2,-2,1,1,-2,-2,-2,-2
+-2,-2,1,1,-2,-2,-2,-2
+-1,none,2,none,-1,-1
+-1,none,2,none,-1,-1
+-2,-2,1,1,-2,-2,-2,-2
+0,0,3,4,-3,-3,-6,-6
@@ -0,0 +1,12 @@
+4
+int,mandatory,incr,1,0
+int,optional,incr,2,0
+uint,mandatory,incr,3,0
+uint,optional,incr,4,0
+-5,-5,1,1
+-4,-4,2,2
+-3,-3,3,3
+-1,-1,5,5
+0,none,6,none
+2,none,8,none
+3,0,9,6
@@ -1,7 +0,0 @@
-4
-int,mandatory,none,0,0
-uint,mandatory,none,0,0
-decimal,mandatory,none,0,0
-string,mandatory,none,0,none
--1,2,1,1,one
--2,1,2,2,two
@@ -0,0 +1,13 @@
+8
+int,mandatory,none,0,0
+int,optional,none,0,0
+uint,mandatory,none,0,0
+uint,optional,none,0,0
+decimal,mandatory,none,0,0,0
+decimal,optional,none,0,0,0
+string,mandatory,none,0,none
+string,optional,none,0,none
+-1,-1,2,2,-1,-1,-1,-1,one,one
+-2,-2,1,1,-2,-2,-2,-2,two,two
+-1,none,2,none,-1,-1,none,one,none
+-2,none,1,none,-2,-2,none,two,none
View
@@ -108,7 +108,11 @@ def popen_fix_client():
sys.exit(result)
fast_tests = [
- "MandatoryNoneOperator"
+ "IncrementOperator",
+ "ConstantOperator",
+ "DeltaOperator",
+ "CopyOperator",
+ "NoneOperator",
]
def popen_fast_server():

0 comments on commit 43d3837

Please sign in to comment.