diff options
-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 |