diff options
author | ttt | 2018-08-31 12:27:40 +0530 |
---|---|---|
committer | ttt | 2018-08-31 12:27:40 +0530 |
commit | ed4222b7c187ee448b3ba5672ad25bb456e6601d (patch) | |
tree | 59883885de7613074548f581bef47902785e48e8 | |
parent | 15aa4ec879a3c640da1bcea26c58cd1513f83534 (diff) | |
download | FOSSEE-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.sce | 17 | ||||
-rw-r--r-- | test1.sce | 11 | ||||
-rw-r--r-- | test2.sce | 11 | ||||
-rw-r--r-- | test3.sce | 13 |
4 files changed, 25 insertions, 27 deletions
@@ -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() @@ -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 @@ -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 @@ -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 |