From a4f14a7d04546a45dee082c14668f41577342e2a Mon Sep 17 00:00:00 2001 From: Thomas Pohl Date: Sun, 15 Mar 2020 07:29:38 +0100 Subject: [PATCH] Add trace test to sample workspace --- .gitignore | 4 +- pom.xml | 47 +--- sampleWorkspace/sonar-project.properties | 2 + sampleWorkspace/trace.esql | 8 + sampleWorkspace/trace/trace.xml | 343 +++++++++++++++++++++++ 5 files changed, 356 insertions(+), 48 deletions(-) create mode 100644 sampleWorkspace/trace.esql create mode 100644 sampleWorkspace/trace/trace.xml diff --git a/.gitignore b/.gitignore index 93a1ed90..489456e2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -/target/ -/bin/ +target/ +bin/ esql-plugin/.settings/ esql-frontend/.settings/ esql-checks/.settings/ diff --git a/pom.xml b/pom.xml index 79cdbf74..cb2bd60f 100644 --- a/pom.xml +++ b/pom.xml @@ -322,33 +322,6 @@ maven-install-plugin ${version.install.plugin} - - - - org.sonatype.plugins jarjar-maven-plugin @@ -449,11 +422,6 @@ - org.apache.maven.plugins maven-compiler-plugin @@ -584,20 +552,7 @@ - + org.codehaus.gmaven groovy-maven-plugin diff --git a/sampleWorkspace/sonar-project.properties b/sampleWorkspace/sonar-project.properties index 9cf8e1e7..93c29922 100644 --- a/sampleWorkspace/sonar-project.properties +++ b/sampleWorkspace/sonar-project.properties @@ -13,3 +13,5 @@ sonar.sources=. # Encoding of the source code. Default is default system encoding sonar.sourceEncoding=UTF-8 + +sonar.esql.trace.reportPaths=trace/trace.xml diff --git a/sampleWorkspace/trace.esql b/sampleWorkspace/trace.esql new file mode 100644 index 00000000..25d5d842 --- /dev/null +++ b/sampleWorkspace/trace.esql @@ -0,0 +1,8 @@ +CREATE COMPUTE MODULE Test_Compute +CREATE FUNCTION Main() RETURNS BOOLEAN +BEGIN +DECLARE i INTEGER 1; +SET i = 2; +CALL dec(i); +END; +END MODULE; diff --git a/sampleWorkspace/trace/trace.xml b/sampleWorkspace/trace/trace.xml new file mode 100644 index 00000000..d17e144e --- /dev/null +++ b/sampleWorkspace/trace/trace.xml @@ -0,0 +1,343 @@ + + + +'default' +'3e243ae7-6b29-4ce8-b525-4e58a2edcbb6' +ConfigurationManager + +'InputNode' +'' + +'ABCDE' +Test.Timeout Notification + +'Properties' +0 +0 +Test.Timeout Notification + +Test.Timeout Notification + +'.Test_Compute.Main' +'2.2' +'BEGIN ... END;' +Test.Compute + +'.Test_Compute.Main' +'3.3' +'DECLARE i INTEGER 1;' +Test.Compute + +'.Test_Compute.Main' +'4.3' +'SET i = 2;' +Test.Compute + +'.Test_Compute.Main' +'5.3' +'CALL dec(i);' +Test.Compute + +'.Test_Compute.Main' +'5.8' +'dec(i)' +Test.Compute + +'.Test_Compute.Main' +'5.14' +'i' +'2' +'i' + + +'.Test_Compute.dec' +'2.2' +'BEGIN ... END;' +Test.Compute + +'.Test_Compute.dec' +'3.3' +'SET var = var - 1;' +Test.Compute + +'.Test_Compute.dec' +'3.13' +'var' +'2' +'var' + + +'.Test_Compute.dec' +'3.16' +'2 - 1' +'1' +'var - 1' + + +'.Test_Compute.Main' +'6.3' +'RETURN TRUE;' +Test.Compute + +'' +Test.Compute + + +'0.5' +'1' + +'ABCDE' +Test.Timeout Notification + +'Properties' +0 +0 +Test.Timeout Notification + +Test.Timeout Notification + +'.Test_Compute.Main' +'2.2' +'BEGIN ... END;' +Test.Compute + +'.Test_Compute.Main' +'3.3' +'DECLARE i INTEGER 1;' +Test.Compute + +'.Test_Compute.Main' +'4.3' +'SET i = 2;' +Test.Compute + +'.Test_Compute.Main' +'5.3' +'CALL dec(i);' +Test.Compute + +'.Test_Compute.Main' +'5.8' +'dec(i)' +Test.Compute + +'.Test_Compute.Main' +'5.14' +'i' +'2' +'i' + + +'.Test_Compute.dec' +'2.2' +'BEGIN ... END;' +Test.Compute + +'.Test_Compute.dec' +'3.3' +'SET var = var - 1;' +Test.Compute + +'.Test_Compute.dec' +'3.13' +'var' +'2' +'var' + + +'.Test_Compute.dec' +'3.16' +'2 - 1' +'1' +'var - 1' + + +'.Test_Compute.Main' +'6.3' +'RETURN TRUE;' +Test.Compute + +'' +Test.Compute + + +'TESTMQ' + +'TESTMQ' + +'0.5' +'1' + +'ABCDE' +Test.Timeout Notification + +'Properties' +0 +0 +Test.Timeout Notification + +Test.Timeout Notification + +'.Test_Compute.Main' +'2.2' +'BEGIN ... END;' +Test.Compute + +'.Test_Compute.Main' +'3.3' +'DECLARE i INTEGER 1;' +Test.Compute + +'.Test_Compute.Main' +'4.3' +'SET i = 2;' +Test.Compute + +'.Test_Compute.Main' +'5.3' +'CALL dec(i);' +Test.Compute + +'.Test_Compute.Main' +'5.8' +'dec(i)' +Test.Compute + +'.Test_Compute.Main' +'5.14' +'i' +'2' +'i' + + +'.Test_Compute.dec' +'2.2' +'BEGIN ... END;' +Test.Compute + +'.Test_Compute.dec' +'3.3' +'SET var = var - 1;' +Test.Compute + +'.Test_Compute.dec' +'3.13' +'var' +'2' +'var' + + +'.Test_Compute.dec' +'3.16' +'2 - 1' +'1' +'var - 1' + + +'.Test_Compute.Main' +'6.3' +'RETURN TRUE;' +Test.Compute + +'' +Test.Compute + + +'0.5' +'1' + +'ABCDE' +Test.Timeout Notification + +'Properties' +0 +0 +Test.Timeout Notification + +Test.Timeout Notification + +'.Test_Compute.Main' +'2.2' +'BEGIN ... END;' +Test.Compute + +'.Test_Compute.Main' +'3.3' +'DECLARE i INTEGER 1;' +Test.Compute + +'.Test_Compute.Main' +'4.3' +'SET i = 2;' +Test.Compute + +'.Test_Compute.Main' +'5.3' +'CALL dec(i);' +Test.Compute + +'.Test_Compute.Main' +'5.8' +'dec(i)' +Test.Compute + +'.Test_Compute.Main' +'5.14' +'i' +'2' +'i' + + +'.Test_Compute.dec' +'2.2' +'BEGIN ... END;' +Test.Compute + +'.Test_Compute.dec' +'3.3' +'SET var = var - 1;' +Test.Compute + +'.Test_Compute.dec' +'3.13' +'var' +'2' +'var' + + +'.Test_Compute.dec' +'3.16' +'2 - 1' +'1' +'var - 1' + + +'.Test_Compute.Main' +'6.3' +'RETURN TRUE;' +Test.Compute + +'' +Test.Compute + + +'.InputNode' +'out' +.InputNode + +'Properties' +0 +0 +.InputNode + +'MQMD' +0 +364 +'MQHMD' +.InputNode + +'XMLS' +364 +298 +'XMLS' +.InputNode