Unverified Commit 4ca6daf8 authored by Kaitlyn Lee's avatar Kaitlyn Lee Committed by GitHub
Browse files

Merge pull request #418 from SgStapleton/cmakeTests

Cmake tests
parents a48af9a9 a2a8db44
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
equalizerTruth4.cub.TOLERANCE = .00005
equalizerTruth5.cub.TOLERANCE = .00007

APPNAME = equalizer

include $(ISISROOT)/make/isismake.tsts
@@ -19,4 +22,3 @@ commands:
	$(APPNAME) fromlist=$(OUTPUT)/files.lis holdlist=$(OUTPUT)/hold.lis \
	  adjust=gain tolist=$(OUTPUT)/tolist.lis > /dev/null;
	$(RM) $(OUTPUT)/files.lis $(OUTPUT)/hold.lis $(OUTPUT)/tolist.lis;
+3 −3
Original line number Diff line number Diff line
@@ -22,8 +22,8 @@ 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 ]
LeftShift (v1<<scalar): [ 3 -nan -nan ]
RightShift (v1>>scalar): [ -nan -nan 1 ]
Min (v1): [ 1 ]
Max (v1): [ 3 ]
GreaterThan (v1>v4): [ 0 0 1 ]
@@ -47,7 +47,7 @@ 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 ]
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.
+4 −4
Original line number Diff line number Diff line
@@ -40,9 +40,8 @@ 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].
sh: 1: Syntax error: Unterminated quoted string
**PROGRAMMER ERROR** Executing command [ls -l * | grep Program | sed 's/\(.*\)\(ProgramLauncher.*\)/\2/] failed with return status [512].

Testing non-existant Isis 3 program... 

@@ -54,7 +53,8 @@ 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/TestPreferences] failed with return status [134].
Aborted (core dumped)
**PROGRAMMER ERROR** Executing command [$ISISROOT/bin/stats from=\$base/testData/ab102401_ideal.cub -pid=999 -preference=\$ISISROOT/TestPreferences] failed with return status [34304].

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