Commit 99c4a3b4 authored by Ian Humphrey's avatar Ian Humphrey
Browse files

Added CentOS7 truth data for Calculator, ProgramLauncher, and SqlRecord.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/branches/v006LibrariesV2@6713 41f8697f-d340-4b68-9986-7bafba869bb8
parent f9120801
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.
+83 −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 ... 

hist: Computing min/max for histogram
0% Processed10% Processed20% Processed30% Processed40% Processed50% Processed60% Processed70% Processed80% Processed90% Processed100% Processed
hist: Gathering histogram
0% Processed10% Processed20% Processed30% Processed40% Processed50% Processed60% Processed70% Processed80% Processed90% Processed100% Processed
Group = Results
  From                    = /usgs/cpkgs/isis3/data/base/testData/ab102401_ide-
                            al.cub
  Band                    = 1
  Average                 = 0.040536894512714
  StandardDeviation       = 0.01519314883071
  Variance                = 2.30831771392117e-04
  Median                  = 0.037797920878468
  Mode                    = 0.034160507255072
  Skew                    = 0.54083067271281
  Minimum                 = 0.010204331949353
  Maximum                 = 0.095491595566273
  Sum                     = 31525.745547011
  TotalPixels             = 1152000
  ValidPixels             = 777705
  OverValidMaximumPixels  = 0
  UnderValidMinimumPixels = 0
  NullPixels              = 353897
  LisPixels               = 0
  LrsPixels               = 0
  HisPixels               = 0
  HrsPixels               = 20398
End_Group

Testing malformed command... 

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... 

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 [6].

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

stats: Computing min/max for histogram
0% Processed10% Processed20% Processed30% Processed40% Processed50% Processed60% Processed70% Processed80% Processed90% Processed100% Processed
stats: Gathering histogram
0% Processed10% Processed20% Processed30% Processed40% Processed50% Processed60% Processed70% Processed80% Processed90% Processed100% Processed
Group = Results
  From                    = /usgs/cpkgs/isis3/data/base/testData/ab102401_ide-
                            al.cub
  Band                    = 1
  Average                 = 0.040536894512714
  StandardDeviation       = 0.01519314883071
  Variance                = 2.30831771392117e-04
  Median                  = 0.037797920878468
  Mode                    = 0.034160507255072
  Skew                    = 0.54083067271281
  Minimum                 = 0.010204331949353
  Maximum                 = 0.095491595566273
  Sum                     = 31525.745547011
  TotalPixels             = 1152000
  ValidPixels             = 777705
  OverValidMaximumPixels  = 0
  UnderValidMinimumPixels = 0
  NullPixels              = 353897
  LisPixels               = 0
  LrsPixels               = 0
  HisPixels               = 0
  HrsPixels               = 20398
End_Group
+1 −1
Original line number Diff line number Diff line
v1: test text
v2: 7
v3: 123.4
v3: 123.40000000000001
Is null (v1): 0
Is null (blank): 1
Size: 3