Commit 0f78f2d0 authored by Tyler Wilson's avatar Tyler Wilson
Browse files

PROG: Added Fedora25 truthdata for SqlRecord/Calculator/ProgramLauncher. References #4809.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/branches/Fedora25@8007 41f8697f-d340-4b68-9986-7bafba869bb8
parent 6d338c78
Loading
Loading
Loading
Loading
+56 −0
Original line number Diff line number Diff line
-------------------------------------------------------
v1: [ 1 2 3 ]
v2: [ 4 5 6 ]
v4: [ 2 2 2 ]
Scalar: [ 2 ]
Big: [ 2.22045e-16 ]
-------------------------------------------------------
Negative (-v1): [ -1 -2 -3 ]
Multiply (v1*v2): [ 4 10 18 ]
Multiply (v1*scalar): [ 2 4 6 ]
Multiply (big*big): [ 4.93038e-32 ]
Add (v1+v2): [ 5 7 9 ]
Add (v1+scalar): [ 3 4 5 ]
Subtract (v1-v2): [ -3 -3 -3 ]
Subtract (v1-scalar): [ -1 0 1 ]
Divide (v1/v2): [ 0.25 0.4 0.5 ]
Divide (v1/scalar): [ 0.5 1 1.5 ]
Divide (1/0): [ inf ]
Divide (-1/0): [ -inf ]
Exponent (v1^scalar): [ 1 4 9 ]
Square Root (sqrt[v1]): [ 1 1.41421 1.73205 ]
Absolute value (-v1): [ 1 2 3 ]
Log (log[v1]): [ 0 0.693147 1.09861 ]
Log10 (log10[v1]): [ 0 0.30103 0.477121 ]
LeftShift (v1<<scalar): [ 3 -nan -nan ]
RightShift (v1>>scalar): [ -nan -nan 1 ]
Min (v1): [ 1 ]
Max (v1): [ 3 ]
GreaterThan (v1>v4): [ 0 0 1 ]
LessThan (v1<v4): [ 1 0 0 ]
Equal (v1==v4): [ 0 1 0 ]
LessThanOrEqual (v1<=v4): [ 1 1 0 ]
GreaterThanOrEqual (v1>=v4): [ 0 1 1 ]
NotEqual (v1!=v4): [ 1 0 1 ]
Sine (v1): [ 0.841471 0.909297 0.14112 ]
Cosine (v1): [ 0.540302 -0.416147 -0.989992 ]
Tangent (v1): [ 1.55741 -2.18504 -0.142547 ]
Secant (v1): [ 1.85082 -2.403 -1.01011 ]
Cosecant (v1): [ 1.1884 1.09975 7.08617 ]
Cotangent (v1): [ 0.642093 -0.457658 -7.01525 ]
Arcsine (v1): [ 1.5708 nan nan ]
Arccosine (v1): [ 0 nan nan ]
Arctangent (v1): [ 0.785398 1.10715 1.24905 ]
SineH (v1): [ 1.1752 3.62686 10.0179 ]
CosineH (v1): [ 1.54308 3.7622 10.0677 ]
TangentH (v1): [ 0.761594 0.964028 0.995055 ]
Modulus (v1%v4): [ 1 0 1 ]
Bitwise And (v1,v4): [ 0 2 2 ]
Bitwise Or (v1,v4): [ 3 2 3 ]
Square Root(-1): [ -nan ]
Log(of 0): [ -inf ]
-------------------------------------------------------
**ERROR** When trying to do a left shift calculation, a shift value greater than the data size was encountered. Shifting by this value would erase all of the data.
**ERROR** When trying to do a right shift calculation, a shift value greater than the data size was encountered. Shifting by this value would erase all of the data.
**PROGRAMMER ERROR** The stack based calculator cannot operate on vectors of differing sizes.
**ERROR** Math calculator stack is empty, cannot perform any more operations.
+87 −0
Original line number Diff line number Diff line
Testing ProgramLauncher Class ... 

Testing ls, grep, sed and pipes ... 

ProgramLauncher.cpp
ProgramLauncher.h
ProgramLauncher.o
ProgramLauncher.truth
Testing stats ... 

greyscale: Working
0% Processed
10% Processed
20% Processed
30% Processed
40% Processed
50% Processed
60% Processed
70% Processed
80% Processed
90% Processed
100% Processed
hist: Computing min/max for histogram
0% Processed
10% Processed
20% Processed
30% Processed
40% Processed
50% Processed
60% Processed
70% Processed
80% Processed
90% Processed
100% Processed
hist: Gathering histogram
0% Processed
10% Processed
20% Processed
30% Processed
40% Processed
50% Processed
60% Processed
70% Processed
80% Processed
90% Processed
100% Processed
Group = Results
  From                    = unitTest.cub
  Band                    = 1
  Average                 = 24.999999961853
  StandardDeviation       = 14.728323083889
  Variance                = 216.92350086341
  Median                  = 24.489967193103
  Mode                    = 0.0
  Skew                    = 0.10388815464838
  Minimum                 = 0.0
  Maximum                 = 50.0
  Sum                     = 62499.999904633
  TotalPixels             = 2500
  ValidPixels             = 2500
  OverValidMaximumPixels  = 0
  UnderValidMinimumPixels = 0
  NullPixels              = 0
  LisPixels               = 0
  LrsPixels               = 0
  HisPixels               = 0
  HrsPixels               = 0
End_Group

Testing malformed command... 
NOTE: The exit code for this test differs on each OS.
That is the reason for the OS specific truth files. Please ignore the exit codes.

sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file
**PROGRAMMER ERROR** Executing command [ls -l * | grep Program | sed 's/\(.*\)\(ProgramLauncher.*\)/\2/] failed with return status [256].

Testing non-existant Isis 3 program... 

**ERROR** Program [chocolatelab] does not appear to be a valid Isis 3 program.

Testing using Isis 3 program as a system program... 
NOTE: The exit code for this test differs on each OS.
That is the reason for the OS specific truth files. Please ignore the exit codes.

terminate called after throwing an instance of 'Isis::IException'
  what():  **ERROR** This process (program) was executed by an existing Isis 3 process. However, we failed to establish a communication channel with the parent (launcher) process. The parent process has a PID of [999].
**PROGRAMMER ERROR** Executing command [$ISISROOT/bin/stats from=\$base/testData/ab102401_ideal.cub -pid=999 -preference=\$ISISROOT/src/base/objs/Preference/TestPreferences] failed with return status [134].

Testing using Isis 3 program as a system program without pid... 

stats: Computing min/max for histogram
0% Processed
10% Processed
20% Processed
30% Processed
40% Processed
50% Processed
60% Processed
70% Processed
80% Processed
90% Processed
100% Processed
stats: Gathering histogram
0% Processed
10% Processed
20% Processed
30% Processed
40% Processed
50% Processed
60% Processed
70% Processed
80% Processed
90% Processed
100% Processed
Group = Results
  From                    = unitTest.cub
  Band                    = 1
  Average                 = 24.999999961853
  StandardDeviation       = 14.728323083889
  Variance                = 216.92350086341
  Median                  = 24.489967193103
  Mode                    = 0.0
  Skew                    = 0.10388815464838
  Minimum                 = 0.0
  Maximum                 = 50.0
  Sum                     = 62499.999904633
  TotalPixels             = 2500
  ValidPixels             = 2500
  OverValidMaximumPixels  = 0
  UnderValidMinimumPixels = 0
  NullPixels              = 0
  LisPixels               = 0
  LrsPixels               = 0
  HisPixels               = 0
  HrsPixels               = 0
End_Group
+12 −0
Original line number Diff line number Diff line
v1: test text
v2: 7
v3: 123.4
Is null (v1): 0
Is null (blank): 1
Size: 3
Has field(v2): 1
Field index(v3): 2
Older sqlite versions report the double fields as string fields. Until the problematic 3rd party software is fixed, systems that report double will need OS truth data.
Col 0) Name: v1, Type: string
Col 1) Name: v2, Type: int
Col 2) Name: v3, Type: double