summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorttt2018-08-31 12:27:40 +0530
committerttt2018-08-31 12:27:40 +0530
commited4222b7c187ee448b3ba5672ad25bb456e6601d (patch)
tree59883885de7613074548f581bef47902785e48e8
parent15aa4ec879a3c640da1bcea26c58cd1513f83534 (diff)
downloadFOSSEE-Signal-Processing-Toolbox-ed4222b7c187ee448b3ba5672ad25bb456e6601d.tar.gz
FOSSEE-Signal-Processing-Toolbox-ed4222b7c187ee448b3ba5672ad25bb456e6601d.tar.bz2
FOSSEE-Signal-Processing-Toolbox-ed4222b7c187ee448b3ba5672ad25bb456e6601d.zip
calling all tests from tests.sce
-rw-r--r--test.sce17
-rw-r--r--test1.sce11
-rw-r--r--test2.sce11
-rw-r--r--test3.sce13
4 files changed, 25 insertions, 27 deletions
diff --git a/test.sce b/test.sce
index c4f7535..939414f 100644
--- a/test.sce
+++ b/test.sce
@@ -1,6 +1,19 @@
exec loader.sce
exec builder.sce
-disp(whos)
+exec test1.sce
+exec test2.sce
+exec test3.sce
+
+if test1==1
+ exit(1)
+elseif test2==1
+ exit(1)
+elseif test3==1
+ exit(1)
+else
+ disp("ALL OK")
+ exit()
+end
+
-exit()
diff --git a/test1.sce b/test1.sce
index 7b9885d..19176c8 100644
--- a/test1.sce
+++ b/test1.sce
@@ -1,10 +1,8 @@
-exec loader.sce
-exec builder.sce
test_pass=[]
res=[]
-
+test1=0
/////////Test case for 2) arburg //////////
a = arburg([1,2,3,4,5],2);
@@ -722,9 +720,6 @@ end
res=find(test_pass==0)
if(res~=[])
- disp("One or more tests failed")
- exit(1)
-else
- disp("pass")
- exit
+ disp("One or more tests failed in test1")
+ test1=1;
end
diff --git a/test2.sce b/test2.sce
index e9c3d4c..bea5a03 100644
--- a/test2.sce
+++ b/test2.sce
@@ -1,10 +1,8 @@
-exec loader.sce
-exec builder.sce
test_pass=[]
res=[]
-
+test2=0
/////////Test case for 1)armcov //////////
A = [1 -2.7607 3.8106 -2.6535 0.9238];
@@ -594,9 +592,6 @@ end
res=find(test_pass==0)
if(res~=[])
- disp("One or more tests failed")
- exit(1)
-else
- disp("pass")
- exit
+ disp("One or more tests failed in test2")
+ test2=1;
end
diff --git a/test3.sce b/test3.sce
index 7d3dbac..2dbc6b5 100644
--- a/test3.sce
+++ b/test3.sce
@@ -1,11 +1,8 @@
-exec loader.sce
-exec builder.sce
-
test_pass=[]
res=[]
-
+test3=0
@@ -825,10 +822,8 @@ res=find(test_pass==0)
+
if(res~=[])
- disp("One or more tests failed")
- exit(1)
-else
- disp("pass")
- exit
+ disp("One or more tests failed in test2")
+ test3=1;
end