From ed4222b7c187ee448b3ba5672ad25bb456e6601d Mon Sep 17 00:00:00 2001 From: ttt Date: Fri, 31 Aug 2018 12:27:40 +0530 Subject: calling all tests from tests.sce --- test.sce | 17 +++++++++++++++-- test1.sce | 11 +++-------- test2.sce | 11 +++-------- test3.sce | 13 ++++--------- 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 -- cgit