diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2018-06-18 10:55:55 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-06-21 20:21:30 +0200 |
commit | 2b14abe26e05418cb9bfe6a2ec12aad8b7f1bee7 (patch) | |
tree | 55105175deedd9bf3cedd626f96fec5b44e6705e /tests/projects/analysis | |
parent | 7a1963f09d9ff9fb917c7c79f87e23b9a5473ab1 (diff) | |
download | sonarqube-2b14abe26e05418cb9bfe6a2ec12aad8b7f1bee7.tar.gz sonarqube-2b14abe26e05418cb9bfe6a2ec12aad8b7f1bee7.zip |
move ITs code to private directory
Diffstat (limited to 'tests/projects/analysis')
98 files changed, 0 insertions, 956 deletions
diff --git a/tests/projects/analysis/case-sensitive-file-extensions/sonar-project.properties b/tests/projects/analysis/case-sensitive-file-extensions/sonar-project.properties deleted file mode 100644 index 795bbeb5cf9..00000000000 --- a/tests/projects/analysis/case-sensitive-file-extensions/sonar-project.properties +++ /dev/null @@ -1,5 +0,0 @@ -sonar.projectKey=case-sensitive-file-extensions -sonar.projectName=Case Sensitive -sonar.projectVersion=1.0-SNAPSHOT -sonar.sources=src -sonar.language=xoo diff --git a/tests/projects/analysis/case-sensitive-file-extensions/src/UPPER.XOO b/tests/projects/analysis/case-sensitive-file-extensions/src/UPPER.XOO deleted file mode 100644 index 7a7569a867b..00000000000 --- a/tests/projects/analysis/case-sensitive-file-extensions/src/UPPER.XOO +++ /dev/null @@ -1,2 +0,0 @@ -File extension is upper case. -It should not be ignored since SQ 4.0. diff --git a/tests/projects/analysis/case-sensitive-file-extensions/src/UPPER.XOO.measures b/tests/projects/analysis/case-sensitive-file-extensions/src/UPPER.XOO.measures deleted file mode 100644 index 5143bc664f8..00000000000 --- a/tests/projects/analysis/case-sensitive-file-extensions/src/UPPER.XOO.measures +++ /dev/null @@ -1 +0,0 @@ -ncloc:2 diff --git a/tests/projects/analysis/case-sensitive-file-extensions/src/lower.xoo b/tests/projects/analysis/case-sensitive-file-extensions/src/lower.xoo deleted file mode 100644 index fd97999fff8..00000000000 --- a/tests/projects/analysis/case-sensitive-file-extensions/src/lower.xoo +++ /dev/null @@ -1,10 +0,0 @@ -public class Sample { - - public Sample(int i) { - int j = i++; - } - - private String myMethod() { - return "hello"; - } -} diff --git a/tests/projects/analysis/case-sensitive-file-extensions/src/lower.xoo.measures b/tests/projects/analysis/case-sensitive-file-extensions/src/lower.xoo.measures deleted file mode 100644 index f82c5911efa..00000000000 --- a/tests/projects/analysis/case-sensitive-file-extensions/src/lower.xoo.measures +++ /dev/null @@ -1 +0,0 @@ -ncloc:5 diff --git a/tests/projects/analysis/custom-module-key/module_a/sonar-project.properties b/tests/projects/analysis/custom-module-key/module_a/sonar-project.properties deleted file mode 100644 index 7c95bd81729..00000000000 --- a/tests/projects/analysis/custom-module-key/module_a/sonar-project.properties +++ /dev/null @@ -1,2 +0,0 @@ -sonar.projectName=Module A -sonar.moduleKey=com.sonarsource.it.samples:moduleA diff --git a/tests/projects/analysis/custom-module-key/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo b/tests/projects/analysis/custom-module-key/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo deleted file mode 100644 index 74d29a4fa08..00000000000 --- a/tests/projects/analysis/custom-module-key/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo +++ /dev/null @@ -1,16 +0,0 @@ -package com.sonar.it.samples.modules.a1; - -public class HelloA1 { - private int i; - private HelloA1() { - - } - - public void hello() { - System.out.println("hello" + " xoo"); - } - - protected String getHello() { - return "hello"; - } -}
\ No newline at end of file diff --git a/tests/projects/analysis/custom-module-key/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures b/tests/projects/analysis/custom-module-key/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures deleted file mode 100644 index 7812e4167fb..00000000000 --- a/tests/projects/analysis/custom-module-key/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures +++ /dev/null @@ -1,2 +0,0 @@ -ncloc:12 -classes:1 diff --git a/tests/projects/analysis/custom-module-key/module_b/sonar-project.properties b/tests/projects/analysis/custom-module-key/module_b/sonar-project.properties deleted file mode 100644 index 04cd79e2247..00000000000 --- a/tests/projects/analysis/custom-module-key/module_b/sonar-project.properties +++ /dev/null @@ -1,2 +0,0 @@ -sonar.projectName=Module B -sonar.moduleKey=com.sonarsource.it.samples:moduleB diff --git a/tests/projects/analysis/custom-module-key/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo b/tests/projects/analysis/custom-module-key/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo deleted file mode 100644 index 42039538a92..00000000000 --- a/tests/projects/analysis/custom-module-key/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo +++ /dev/null @@ -1,12 +0,0 @@ -package com.sonar.it.samples.modules.a2; - -public class HelloA2 { - private int i; - private HelloA2() { - - } - - public void hello() { - System.out.println("hello" + " xoo"); - } -}
\ No newline at end of file diff --git a/tests/projects/analysis/custom-module-key/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures b/tests/projects/analysis/custom-module-key/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures deleted file mode 100644 index 3947d3bdbff..00000000000 --- a/tests/projects/analysis/custom-module-key/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures +++ /dev/null @@ -1,2 +0,0 @@ -ncloc:12 -classes:1
\ No newline at end of file diff --git a/tests/projects/analysis/custom-module-key/sonar-project.properties b/tests/projects/analysis/custom-module-key/sonar-project.properties deleted file mode 100644 index 7935cb5ffb0..00000000000 --- a/tests/projects/analysis/custom-module-key/sonar-project.properties +++ /dev/null @@ -1,12 +0,0 @@ -# Root project information -sonar.projectKey=com.sonarsource.it.samples:multi-modules-sample -sonar.projectName=Sonar :: Integration Tests :: Multi-modules Sample -sonar.projectVersion=1.0-SNAPSHOT - -sonar.language=xoo - -# Some properties that will be inherited by the modules -sonar.sources=src/main/xoo - -# List of the module identifiers -sonar.modules=module_a,module_b diff --git a/tests/projects/analysis/duplicate-source/sonar-project.properties b/tests/projects/analysis/duplicate-source/sonar-project.properties deleted file mode 100644 index cf176850bae..00000000000 --- a/tests/projects/analysis/duplicate-source/sonar-project.properties +++ /dev/null @@ -1,6 +0,0 @@ -sonar.projectKey=com.sonarsource.it.projects.batch:duplicate-source -sonar.projectName=exclusions -sonar.projectVersion=1.0-SNAPSHOT -sonar.sources=src/main/xoo,src/main/xoo2 -sonar.tests=src/test/xoo -sonar.language=xoo diff --git a/tests/projects/analysis/duplicate-source/src/main/xoo/org/sonar/tests/ClassOne.xoo b/tests/projects/analysis/duplicate-source/src/main/xoo/org/sonar/tests/ClassOne.xoo deleted file mode 100644 index 8cf8aec82fe..00000000000 --- a/tests/projects/analysis/duplicate-source/src/main/xoo/org/sonar/tests/ClassOne.xoo +++ /dev/null @@ -1,5 +0,0 @@ -package org.sonar.tests; - -public class ClassOne { - -} diff --git a/tests/projects/analysis/duplicate-source/src/main/xoo2/org/sonar/tests/ClassOne.xoo b/tests/projects/analysis/duplicate-source/src/main/xoo2/org/sonar/tests/ClassOne.xoo deleted file mode 100644 index 8cf8aec82fe..00000000000 --- a/tests/projects/analysis/duplicate-source/src/main/xoo2/org/sonar/tests/ClassOne.xoo +++ /dev/null @@ -1,5 +0,0 @@ -package org.sonar.tests; - -public class ClassOne { - -} diff --git a/tests/projects/analysis/duplicate-source/src/test/xoo/org/sonar/tests/ClassOne.xoo b/tests/projects/analysis/duplicate-source/src/test/xoo/org/sonar/tests/ClassOne.xoo deleted file mode 100644 index 8cf8aec82fe..00000000000 --- a/tests/projects/analysis/duplicate-source/src/test/xoo/org/sonar/tests/ClassOne.xoo +++ /dev/null @@ -1,5 +0,0 @@ -package org.sonar.tests; - -public class ClassOne { - -} diff --git a/tests/projects/analysis/extension-lifecycle/module_a/pom.xml b/tests/projects/analysis/extension-lifecycle/module_a/pom.xml deleted file mode 100644 index 8cc056c4e81..00000000000 --- a/tests/projects/analysis/extension-lifecycle/module_a/pom.xml +++ /dev/null @@ -1,14 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <artifactId>module_a</artifactId> - <packaging>jar</packaging> - <name>Module A</name> - - <parent> - <groupId>com.sonarsource.it.projects.batch</groupId> - <artifactId>extension-lifecycle</artifactId> - <version>1.0-SNAPSHOT</version> - </parent> - -</project>
\ No newline at end of file diff --git a/tests/projects/analysis/extension-lifecycle/module_a/src/main/java/HelloA.java b/tests/projects/analysis/extension-lifecycle/module_a/src/main/java/HelloA.java deleted file mode 100644 index 847098b9a50..00000000000 --- a/tests/projects/analysis/extension-lifecycle/module_a/src/main/java/HelloA.java +++ /dev/null @@ -1,10 +0,0 @@ -public class HelloA { - private int i; - private HelloA() { - - } - - public void hello() { - System.out.println("hello" + " world"); - } -}
\ No newline at end of file diff --git a/tests/projects/analysis/extension-lifecycle/module_b/pom.xml b/tests/projects/analysis/extension-lifecycle/module_b/pom.xml deleted file mode 100644 index 449325b7691..00000000000 --- a/tests/projects/analysis/extension-lifecycle/module_b/pom.xml +++ /dev/null @@ -1,13 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <artifactId>module_b</artifactId> - <packaging>jar</packaging> - <name>Module B</name> - - <parent> - <groupId>com.sonarsource.it.projects.batch</groupId> - <artifactId>extension-lifecycle</artifactId> - <version>1.0-SNAPSHOT</version> - </parent> -</project>
\ No newline at end of file diff --git a/tests/projects/analysis/extension-lifecycle/module_b/src/main/java/HelloB.java b/tests/projects/analysis/extension-lifecycle/module_b/src/main/java/HelloB.java deleted file mode 100644 index afc7d2c906c..00000000000 --- a/tests/projects/analysis/extension-lifecycle/module_b/src/main/java/HelloB.java +++ /dev/null @@ -1,10 +0,0 @@ -public class HelloB { - private int i; - private HelloB() { - - } - - public void hello() { - System.out.println("hello" + " world"); - } -}
\ No newline at end of file diff --git a/tests/projects/analysis/extension-lifecycle/pom.xml b/tests/projects/analysis/extension-lifecycle/pom.xml deleted file mode 100644 index 30de64cef8c..00000000000 --- a/tests/projects/analysis/extension-lifecycle/pom.xml +++ /dev/null @@ -1,13 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>com.sonarsource.it.projects.batch</groupId> - <artifactId>extension-lifecycle</artifactId> - <version>1.0-SNAPSHOT</version> - <packaging>pom</packaging> - <name>Sonar :: Integration Tests :: Extension Lifecycle Sample</name> - <modules> - <module>module_a</module> - <module>module_b</module> - </modules> -</project>
\ No newline at end of file diff --git a/tests/projects/analysis/links-project/pom.xml b/tests/projects/analysis/links-project/pom.xml deleted file mode 100644 index a0bc27aaab6..00000000000 --- a/tests/projects/analysis/links-project/pom.xml +++ /dev/null @@ -1,31 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>com.sonarsource.it.samples</groupId> - <artifactId>simple-sample</artifactId> - <version>1.0-SNAPSHOT</version> - <name>Sonar :: Integration Tests :: Simple Sample</name> - - <url>http://www.simplesample.org</url> - - <issueManagement> - <system>jira</system> - <url>http://jira.codehaus.org/browse/SIMPLESAMPLE</url> - </issueManagement> - - <scm> - <connection>scm:git:git@github.com:SonarSource/simplesample.git</connection> - <developerConnection>scm:git:git@github.com:SonarSource/simplesample.git</developerConnection> - <url>https://github.com/SonarSource/simplesample</url> - </scm> - - <ciManagement> - <system>bamboo</system> - <url>http://bamboo.ci.codehaus.org/browse/SIMPLESAMPLE</url> - </ciManagement> - - <properties> - <!-- The following property MUST override the <url> definition of the POM --> - <sonar.links.homepage>http://www.simplesample.org_OVERRIDDEN</sonar.links.homepage> - </properties> - -</project>
\ No newline at end of file diff --git a/tests/projects/analysis/links-project/sonar-project.properties b/tests/projects/analysis/links-project/sonar-project.properties deleted file mode 100644 index 4352408bd5c..00000000000 --- a/tests/projects/analysis/links-project/sonar-project.properties +++ /dev/null @@ -1,11 +0,0 @@ -sonar.projectKey=com.sonarsource.it.samples:simple-sample -sonar.projectVersion=1.0-SNAPSHOT -sonar.projectName=Sonar :: Integration Tests :: Simple Sample - -sonar.sources=src/main/java - -sonar.links.homepage=http://www.simplesample.org_OVERRIDDEN -sonar.links.ci=http://bamboo.ci.codehaus.org/browse/SIMPLESAMPLE -sonar.links.issue=http://jira.codehaus.org/browse/SIMPLESAMPLE -sonar.links.scm=https://github.com/SonarSource/simplesample -sonar.links.scm_dev=scm:git:git@github.com:SonarSource/simplesample.git diff --git a/tests/projects/analysis/links-project/src/main/java/sample/Sample.java b/tests/projects/analysis/links-project/src/main/java/sample/Sample.java deleted file mode 100644 index b1210973dd9..00000000000 --- a/tests/projects/analysis/links-project/src/main/java/sample/Sample.java +++ /dev/null @@ -1,12 +0,0 @@ -package sample; - -public class Sample { - - public Sample(int i) { - int j = i++; - } - - private String myMethod() { - return "hello"; - } -} diff --git a/tests/projects/analysis/multi-languages/java-module/pom.xml b/tests/projects/analysis/multi-languages/java-module/pom.xml deleted file mode 100644 index 9b9cb11763f..00000000000 --- a/tests/projects/analysis/multi-languages/java-module/pom.xml +++ /dev/null @@ -1,15 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>com.sonarsource.it.projects.batch.multi-languages</groupId> - <artifactId>multi-languages</artifactId> - <version>1.0-SNAPSHOT</version> - </parent> - <artifactId>java-module</artifactId> - <name>Java Module</name> - - <properties> - <sonar.language>java</sonar.language> - </properties> -</project> diff --git a/tests/projects/analysis/multi-languages/java-module/src/main/java/HelloJava.java b/tests/projects/analysis/multi-languages/java-module/src/main/java/HelloJava.java deleted file mode 100644 index c575aeb9d4c..00000000000 --- a/tests/projects/analysis/multi-languages/java-module/src/main/java/HelloJava.java +++ /dev/null @@ -1,10 +0,0 @@ -public class HelloJava { - private int i; - private HelloJava() { - - } - - public void hello() { - System.out.println("hello" + " java"); - } -}
\ No newline at end of file diff --git a/tests/projects/analysis/multi-languages/javascript-module/pom.xml b/tests/projects/analysis/multi-languages/javascript-module/pom.xml deleted file mode 100644 index f0eb641e9e2..00000000000 --- a/tests/projects/analysis/multi-languages/javascript-module/pom.xml +++ /dev/null @@ -1,20 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>com.sonarsource.it.projects.batch.multi-languages</groupId> - <artifactId>multi-languages</artifactId> - <version>1.0-SNAPSHOT</version> - </parent> - <artifactId>javascript-module</artifactId> - <name>Javascript Module</name> - - <properties> - <sonar.language>js</sonar.language> - </properties> - - <build> - <sourceDirectory>src</sourceDirectory> - </build> - -</project>
\ No newline at end of file diff --git a/tests/projects/analysis/multi-languages/javascript-module/src/Person.js b/tests/projects/analysis/multi-languages/javascript-module/src/Person.js deleted file mode 100644 index d5eb180de72..00000000000 --- a/tests/projects/analysis/multi-languages/javascript-module/src/Person.js +++ /dev/null @@ -1,14 +0,0 @@ - -var Person = function(first, last, middle) { - this.first = first; - this.middle = middle; - this.last = last; -}; - -Person.prototype = { - - whoAreYou : function() { - return this.first + (this.middle ? ' ' + this.middle: '') + ' ' + this.last; - } - -}; diff --git a/tests/projects/analysis/multi-languages/pom.xml b/tests/projects/analysis/multi-languages/pom.xml deleted file mode 100644 index bdde8327393..00000000000 --- a/tests/projects/analysis/multi-languages/pom.xml +++ /dev/null @@ -1,16 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>com.sonarsource.it.projects.batch.multi-languages</groupId> - <artifactId>multi-languages</artifactId> - <version>1.0-SNAPSHOT</version> - <packaging>pom</packaging> - <name>Multi Languages</name> - <description>One language per module</description> - - <modules> - <module>java-module</module> - <module>javascript-module</module> - <module>python-module</module> - </modules> -</project>
\ No newline at end of file diff --git a/tests/projects/analysis/multi-languages/python-module/pom.xml b/tests/projects/analysis/multi-languages/python-module/pom.xml deleted file mode 100644 index 02520cd6de9..00000000000 --- a/tests/projects/analysis/multi-languages/python-module/pom.xml +++ /dev/null @@ -1,19 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>com.sonarsource.it.projects.batch.multi-languages</groupId> - <artifactId>multi-languages</artifactId> - <version>1.0-SNAPSHOT</version> - </parent> - <artifactId>python-module</artifactId> - <name>Python Module</name> - - <properties> - <sonar.language>py</sonar.language> - </properties> - - <build> - <sourceDirectory>src</sourceDirectory> - </build> -</project>
\ No newline at end of file diff --git a/tests/projects/analysis/multi-languages/python-module/src/__init__.py b/tests/projects/analysis/multi-languages/python-module/src/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 --- a/tests/projects/analysis/multi-languages/python-module/src/__init__.py +++ /dev/null diff --git a/tests/projects/analysis/multi-languages/python-module/src/badfortune.py b/tests/projects/analysis/multi-languages/python-module/src/badfortune.py deleted file mode 100644 index b0900dc1695..00000000000 --- a/tests/projects/analysis/multi-languages/python-module/src/badfortune.py +++ /dev/null @@ -1,92 +0,0 @@ - -# fortune.py -- chooses a random fortune, as the fortune(8) program in -# the BSD-games package does -# -# Copyright (c) 2010, Andrew M. Kuchling -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -import struct, random, string - -# C long variables are different sizes on 32-bit and 64-bit machines, -# so we have to measure how big they are on the machine where this is running. -LONG_SIZE = struct.calcsize('L') -is_64_bit = (LONG_SIZE == 8) - -def get(filename): - "Select a random quotation, using a pregenerated .dat file" - - # First, we open the .dat file, and read the header information. - # The C structure containing this info looks like: - ## typedef struct { /* information table */ - ## #define VERSION 1 - ## unsigned long str_version; /* version number */ - ## unsigned long str_numstr; /* # of strings in the file */ - ## unsigned long str_longlen; /* length of longest string */ - ## unsigned long str_shortlen; /* length of shortest string */ - ## #define STR_RANDOM 0x1 /* randomized pointers */ - ## #define STR_ORDERED 0x2 /* ordered pointers */ - ## #define STR_ROTATED 0x4 /* rot-13'd text */ - ## unsigned long str_flags; /* bit field for flags */ - ## unsigned char stuff[4]; /* long aligned space */ - ## #define str_delim stuff[0] /* delimiting character */ - ## } STRFILE; - - datfile = open(filename+'.dat', 'r') - data = datfile.read(5 * LONG_SIZE) - if is_64_bit: - v1, v2, n1, n2, l1, l2, s1, s2, f1, f2 = struct.unpack('!10L', data) - version = v1 + (v2 << 32) - numstr = n1 + (n2 << 32) - longlen = l1 + (l2 << 32) - shortlen = s1 + (s2 << 32) - flags = f1 + (f2 << 32) - else: - version, numstr, longlen, shortlen, flags = struct.unpack('5l', data) - - delimiter = datfile.read(1) - datfile.read(3) # Throw away padding bytes - if is_64_bit: datfile.read(4) # 64-bit machines align to 8 bytes - - # Pick a random number - r = random.randint(0, numstr) - datfile.seek(LONG_SIZE * r, 1) # Seek to the chosen pointer - data = datfile.read(LONG_SIZE * 2) - - if is_64_bit: - s1, s2, e1, e2 = struct.unpack('!4L', data) - start, end = s1 + (s2 << 32), e1 + (e2 << 32) - else: - start, end = struct.unpack('!ll', data) - datfile.close() - - file = open(filename, 'r') - file.seek(start) - quotation = file.read(end-start) - L=string.split(quotation, '\n') - while string.strip(L[-1]) == delimiter or string.strip(L[-1]) == "": - L=L[:-1] - return string.join(L, '\n') - -if __name__ == '__main__': - import sys - if len(sys.argv) == 1: - print 'Usage: fortune.py <filename>' - sys.exit() - print get(sys.argv[1]) diff --git a/tests/projects/analysis/multi-languages/sonar-project.properties b/tests/projects/analysis/multi-languages/sonar-project.properties deleted file mode 100644 index ab848fa49f4..00000000000 --- a/tests/projects/analysis/multi-languages/sonar-project.properties +++ /dev/null @@ -1,19 +0,0 @@ -sonar.projectKey=multi-languages -sonar.projectName=Multi Languages -sonar.projectVersion=1.0-SNAPSHOT -sonar.modules=java-module,javascript-module,python-module - -# not used but mandatory parameter because of https://jira.codehaus.org/browse/SONARPLUGINS-2297 -sonar.sources=src - -java-module.sonar.projectName=Java Module -java-module.sonar.sources=src/main/java -java-module.sonar.language=java - -javascript-module.sonar.projectName=Javascript Module -javascript-module.sonar.sources=src -javascript-module.sonar.language=js - -python-module.sonar.projectName=Python Module -python-module.sonar.sources=src -python-module.sonar.language=py
\ No newline at end of file diff --git a/tests/projects/analysis/prevent-common-module/projectAB/module_a/sonar-project.properties b/tests/projects/analysis/prevent-common-module/projectAB/module_a/sonar-project.properties deleted file mode 100644 index 7c95bd81729..00000000000 --- a/tests/projects/analysis/prevent-common-module/projectAB/module_a/sonar-project.properties +++ /dev/null @@ -1,2 +0,0 @@ -sonar.projectName=Module A -sonar.moduleKey=com.sonarsource.it.samples:moduleA diff --git a/tests/projects/analysis/prevent-common-module/projectAB/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo b/tests/projects/analysis/prevent-common-module/projectAB/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo deleted file mode 100644 index 74d29a4fa08..00000000000 --- a/tests/projects/analysis/prevent-common-module/projectAB/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo +++ /dev/null @@ -1,16 +0,0 @@ -package com.sonar.it.samples.modules.a1; - -public class HelloA1 { - private int i; - private HelloA1() { - - } - - public void hello() { - System.out.println("hello" + " xoo"); - } - - protected String getHello() { - return "hello"; - } -}
\ No newline at end of file diff --git a/tests/projects/analysis/prevent-common-module/projectAB/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures b/tests/projects/analysis/prevent-common-module/projectAB/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures deleted file mode 100644 index 7812e4167fb..00000000000 --- a/tests/projects/analysis/prevent-common-module/projectAB/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures +++ /dev/null @@ -1,2 +0,0 @@ -ncloc:12 -classes:1 diff --git a/tests/projects/analysis/prevent-common-module/projectAB/module_b/sonar-project.properties b/tests/projects/analysis/prevent-common-module/projectAB/module_b/sonar-project.properties deleted file mode 100644 index 04cd79e2247..00000000000 --- a/tests/projects/analysis/prevent-common-module/projectAB/module_b/sonar-project.properties +++ /dev/null @@ -1,2 +0,0 @@ -sonar.projectName=Module B -sonar.moduleKey=com.sonarsource.it.samples:moduleB diff --git a/tests/projects/analysis/prevent-common-module/projectAB/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo b/tests/projects/analysis/prevent-common-module/projectAB/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo deleted file mode 100644 index 42039538a92..00000000000 --- a/tests/projects/analysis/prevent-common-module/projectAB/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo +++ /dev/null @@ -1,12 +0,0 @@ -package com.sonar.it.samples.modules.a2; - -public class HelloA2 { - private int i; - private HelloA2() { - - } - - public void hello() { - System.out.println("hello" + " xoo"); - } -}
\ No newline at end of file diff --git a/tests/projects/analysis/prevent-common-module/projectAB/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures b/tests/projects/analysis/prevent-common-module/projectAB/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures deleted file mode 100644 index 3947d3bdbff..00000000000 --- a/tests/projects/analysis/prevent-common-module/projectAB/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures +++ /dev/null @@ -1,2 +0,0 @@ -ncloc:12 -classes:1
\ No newline at end of file diff --git a/tests/projects/analysis/prevent-common-module/projectAB/sonar-project.properties b/tests/projects/analysis/prevent-common-module/projectAB/sonar-project.properties deleted file mode 100644 index e3c23037ee1..00000000000 --- a/tests/projects/analysis/prevent-common-module/projectAB/sonar-project.properties +++ /dev/null @@ -1,12 +0,0 @@ -# Root project information -sonar.projectKey=projectAB -sonar.projectName=Project AB -sonar.projectVersion=1.0-SNAPSHOT - -sonar.language=xoo - -# Some properties that will be inherited by the modules -sonar.sources=src/main/xoo - -# List of the module identifiers -sonar.modules=module_a,module_b diff --git a/tests/projects/analysis/prevent-common-module/projectAC/module_a/sonar-project.properties b/tests/projects/analysis/prevent-common-module/projectAC/module_a/sonar-project.properties deleted file mode 100644 index 7c95bd81729..00000000000 --- a/tests/projects/analysis/prevent-common-module/projectAC/module_a/sonar-project.properties +++ /dev/null @@ -1,2 +0,0 @@ -sonar.projectName=Module A -sonar.moduleKey=com.sonarsource.it.samples:moduleA diff --git a/tests/projects/analysis/prevent-common-module/projectAC/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo b/tests/projects/analysis/prevent-common-module/projectAC/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo deleted file mode 100644 index 74d29a4fa08..00000000000 --- a/tests/projects/analysis/prevent-common-module/projectAC/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo +++ /dev/null @@ -1,16 +0,0 @@ -package com.sonar.it.samples.modules.a1; - -public class HelloA1 { - private int i; - private HelloA1() { - - } - - public void hello() { - System.out.println("hello" + " xoo"); - } - - protected String getHello() { - return "hello"; - } -}
\ No newline at end of file diff --git a/tests/projects/analysis/prevent-common-module/projectAC/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures b/tests/projects/analysis/prevent-common-module/projectAC/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures deleted file mode 100644 index 7812e4167fb..00000000000 --- a/tests/projects/analysis/prevent-common-module/projectAC/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures +++ /dev/null @@ -1,2 +0,0 @@ -ncloc:12 -classes:1 diff --git a/tests/projects/analysis/prevent-common-module/projectAC/module_c/sonar-project.properties b/tests/projects/analysis/prevent-common-module/projectAC/module_c/sonar-project.properties deleted file mode 100644 index 670f26db1db..00000000000 --- a/tests/projects/analysis/prevent-common-module/projectAC/module_c/sonar-project.properties +++ /dev/null @@ -1,2 +0,0 @@ -sonar.projectName=Module C -sonar.moduleKey=com.sonarsource.it.samples:moduleC diff --git a/tests/projects/analysis/prevent-common-module/projectAC/module_c/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo b/tests/projects/analysis/prevent-common-module/projectAC/module_c/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo deleted file mode 100644 index 42039538a92..00000000000 --- a/tests/projects/analysis/prevent-common-module/projectAC/module_c/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo +++ /dev/null @@ -1,12 +0,0 @@ -package com.sonar.it.samples.modules.a2; - -public class HelloA2 { - private int i; - private HelloA2() { - - } - - public void hello() { - System.out.println("hello" + " xoo"); - } -}
\ No newline at end of file diff --git a/tests/projects/analysis/prevent-common-module/projectAC/module_c/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures b/tests/projects/analysis/prevent-common-module/projectAC/module_c/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures deleted file mode 100644 index 3947d3bdbff..00000000000 --- a/tests/projects/analysis/prevent-common-module/projectAC/module_c/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures +++ /dev/null @@ -1,2 +0,0 @@ -ncloc:12 -classes:1
\ No newline at end of file diff --git a/tests/projects/analysis/prevent-common-module/projectAC/sonar-project.properties b/tests/projects/analysis/prevent-common-module/projectAC/sonar-project.properties deleted file mode 100644 index 342fb68ec8f..00000000000 --- a/tests/projects/analysis/prevent-common-module/projectAC/sonar-project.properties +++ /dev/null @@ -1,12 +0,0 @@ -# Root project information -sonar.projectKey=projectAC -sonar.projectName=Project AC -sonar.projectVersion=1.0-SNAPSHOT - -sonar.language=xoo - -# Some properties that will be inherited by the modules -sonar.sources=src/main/xoo - -# List of the module identifiers -sonar.modules=module_a,module_c diff --git a/tests/projects/analysis/project-builder/module_a/src/HelloA.java b/tests/projects/analysis/project-builder/module_a/src/HelloA.java deleted file mode 100644 index 847098b9a50..00000000000 --- a/tests/projects/analysis/project-builder/module_a/src/HelloA.java +++ /dev/null @@ -1,10 +0,0 @@ -public class HelloA { - private int i; - private HelloA() { - - } - - public void hello() { - System.out.println("hello" + " world"); - } -}
\ No newline at end of file diff --git a/tests/projects/analysis/project-builder/module_b/src/HelloB.java b/tests/projects/analysis/project-builder/module_b/src/HelloB.java deleted file mode 100644 index afc7d2c906c..00000000000 --- a/tests/projects/analysis/project-builder/module_b/src/HelloB.java +++ /dev/null @@ -1,10 +0,0 @@ -public class HelloB { - private int i; - private HelloB() { - - } - - public void hello() { - System.out.println("hello" + " world"); - } -}
\ No newline at end of file diff --git a/tests/projects/analysis/project-builder/module_b/src/IgnoredFile.java b/tests/projects/analysis/project-builder/module_b/src/IgnoredFile.java deleted file mode 100644 index 9574c15b0ee..00000000000 --- a/tests/projects/analysis/project-builder/module_b/src/IgnoredFile.java +++ /dev/null @@ -1 +0,0 @@ -this file has been selected by the extension CreateSubProjects.
\ No newline at end of file diff --git a/tests/projects/analysis/project-builder/pom.xml b/tests/projects/analysis/project-builder/pom.xml deleted file mode 100644 index e79f785f013..00000000000 --- a/tests/projects/analysis/project-builder/pom.xml +++ /dev/null @@ -1,15 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>com.sonarsource.it.projects.batch</groupId> - <artifactId>project-builder</artifactId> - <version>1.0-SNAPSHOT</version> - <packaging>pom</packaging> - <name>Sonar :: Integration Tests :: Project Builder Sample</name> - - <!-- modules are not defined in pom but in sonar plugin --> - <!-- <modules> - <module>module_a</module> - <module>module_b</module> - </modules>--> -</project>
\ No newline at end of file diff --git a/tests/projects/analysis/resilience/resilience-purge/sonar-project.properties b/tests/projects/analysis/resilience/resilience-purge/sonar-project.properties deleted file mode 100644 index 9e4aa0e3584..00000000000 --- a/tests/projects/analysis/resilience/resilience-purge/sonar-project.properties +++ /dev/null @@ -1,5 +0,0 @@ -sonar.projectKey=sample -sonar.projectName=Sample -sonar.projectVersion=1.0-SNAPSHOT -sonar.sources=src/main/xoo -sonar.language=xoo diff --git a/tests/projects/analysis/resilience/resilience-purge/src/main/xoo/sample/Sample.xoo b/tests/projects/analysis/resilience/resilience-purge/src/main/xoo/sample/Sample.xoo deleted file mode 100644 index 41871e123a3..00000000000 --- a/tests/projects/analysis/resilience/resilience-purge/src/main/xoo/sample/Sample.xoo +++ /dev/null @@ -1,16 +0,0 @@ -package sample; - -public class Sample { - - public Sample(int i) { - int j = i++; - } - - private String myMethod() { - if (foo == bar) { - return "hello"; - } else { - throw new IllegalStateException(); - } - } -} diff --git a/tests/projects/analysis/resilience/resilience-purge/src/main/xoo/sample/Sample.xoo.measures b/tests/projects/analysis/resilience/resilience-purge/src/main/xoo/sample/Sample.xoo.measures deleted file mode 100644 index 06c9b6c2f38..00000000000 --- a/tests/projects/analysis/resilience/resilience-purge/src/main/xoo/sample/Sample.xoo.measures +++ /dev/null @@ -1,9 +0,0 @@ -ncloc:13 -#Used by dashboard/widgets tests -complexity:3 -complexity_in_classes:3 -cognitive_complexity:4 -classes:1 -comment_lines:3 -public_api:5 -public_undocumented_api:2 diff --git a/tests/projects/analysis/resilience/resilience-sample-v1/sonar-project.properties b/tests/projects/analysis/resilience/resilience-sample-v1/sonar-project.properties deleted file mode 100644 index 9e4aa0e3584..00000000000 --- a/tests/projects/analysis/resilience/resilience-sample-v1/sonar-project.properties +++ /dev/null @@ -1,5 +0,0 @@ -sonar.projectKey=sample -sonar.projectName=Sample -sonar.projectVersion=1.0-SNAPSHOT -sonar.sources=src/main/xoo -sonar.language=xoo diff --git a/tests/projects/analysis/resilience/resilience-sample-v1/src/main/xoo/sample/Sample.xoo b/tests/projects/analysis/resilience/resilience-sample-v1/src/main/xoo/sample/Sample.xoo deleted file mode 100644 index 41871e123a3..00000000000 --- a/tests/projects/analysis/resilience/resilience-sample-v1/src/main/xoo/sample/Sample.xoo +++ /dev/null @@ -1,16 +0,0 @@ -package sample; - -public class Sample { - - public Sample(int i) { - int j = i++; - } - - private String myMethod() { - if (foo == bar) { - return "hello"; - } else { - throw new IllegalStateException(); - } - } -} diff --git a/tests/projects/analysis/resilience/resilience-sample-v1/src/main/xoo/sample/Sample.xoo.measures b/tests/projects/analysis/resilience/resilience-sample-v1/src/main/xoo/sample/Sample.xoo.measures deleted file mode 100644 index 06c9b6c2f38..00000000000 --- a/tests/projects/analysis/resilience/resilience-sample-v1/src/main/xoo/sample/Sample.xoo.measures +++ /dev/null @@ -1,9 +0,0 @@ -ncloc:13 -#Used by dashboard/widgets tests -complexity:3 -complexity_in_classes:3 -cognitive_complexity:4 -classes:1 -comment_lines:3 -public_api:5 -public_undocumented_api:2 diff --git a/tests/projects/analysis/resilience/resilience-sample-v2/sonar-project.properties b/tests/projects/analysis/resilience/resilience-sample-v2/sonar-project.properties deleted file mode 100644 index 1691dc18d68..00000000000 --- a/tests/projects/analysis/resilience/resilience-sample-v2/sonar-project.properties +++ /dev/null @@ -1,5 +0,0 @@ -sonar.projectKey=sample -sonar.projectName=Sample -sonar.projectVersion=2.0-SNAPSHOT -sonar.sources=src/main/xoo -sonar.language=xoo diff --git a/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample.xoo b/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample.xoo deleted file mode 100644 index 41871e123a3..00000000000 --- a/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample.xoo +++ /dev/null @@ -1,16 +0,0 @@ -package sample; - -public class Sample { - - public Sample(int i) { - int j = i++; - } - - private String myMethod() { - if (foo == bar) { - return "hello"; - } else { - throw new IllegalStateException(); - } - } -} diff --git a/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample.xoo.measures b/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample.xoo.measures deleted file mode 100644 index 06c9b6c2f38..00000000000 --- a/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample.xoo.measures +++ /dev/null @@ -1,9 +0,0 @@ -ncloc:13 -#Used by dashboard/widgets tests -complexity:3 -complexity_in_classes:3 -cognitive_complexity:4 -classes:1 -comment_lines:3 -public_api:5 -public_undocumented_api:2 diff --git a/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample2.xoo b/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample2.xoo deleted file mode 100644 index 41871e123a3..00000000000 --- a/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample2.xoo +++ /dev/null @@ -1,16 +0,0 @@ -package sample; - -public class Sample { - - public Sample(int i) { - int j = i++; - } - - private String myMethod() { - if (foo == bar) { - return "hello"; - } else { - throw new IllegalStateException(); - } - } -} diff --git a/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample2.xoo.measures b/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample2.xoo.measures deleted file mode 100644 index 06c9b6c2f38..00000000000 --- a/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample2.xoo.measures +++ /dev/null @@ -1,9 +0,0 @@ -ncloc:13 -#Used by dashboard/widgets tests -complexity:3 -complexity_in_classes:3 -cognitive_complexity:4 -classes:1 -comment_lines:3 -public_api:5 -public_undocumented_api:2 diff --git a/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample3.xoo b/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample3.xoo deleted file mode 100644 index 41871e123a3..00000000000 --- a/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample3.xoo +++ /dev/null @@ -1,16 +0,0 @@ -package sample; - -public class Sample { - - public Sample(int i) { - int j = i++; - } - - private String myMethod() { - if (foo == bar) { - return "hello"; - } else { - throw new IllegalStateException(); - } - } -} diff --git a/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample3.xoo.measures b/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample3.xoo.measures deleted file mode 100644 index 06c9b6c2f38..00000000000 --- a/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample3.xoo.measures +++ /dev/null @@ -1,9 +0,0 @@ -ncloc:13 -#Used by dashboard/widgets tests -complexity:3 -complexity_in_classes:3 -cognitive_complexity:4 -classes:1 -comment_lines:3 -public_api:5 -public_undocumented_api:2 diff --git a/tests/projects/analysis/resilience/resilience-sample-v3/sonar-project.properties b/tests/projects/analysis/resilience/resilience-sample-v3/sonar-project.properties deleted file mode 100644 index 60fded428f3..00000000000 --- a/tests/projects/analysis/resilience/resilience-sample-v3/sonar-project.properties +++ /dev/null @@ -1,5 +0,0 @@ -sonar.projectKey=sample -sonar.projectName=Sample -sonar.projectVersion=3.0-SNAPSHOT -sonar.sources=src/main/xoo -sonar.language=xoo diff --git a/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample.xoo b/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample.xoo deleted file mode 100644 index 41871e123a3..00000000000 --- a/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample.xoo +++ /dev/null @@ -1,16 +0,0 @@ -package sample; - -public class Sample { - - public Sample(int i) { - int j = i++; - } - - private String myMethod() { - if (foo == bar) { - return "hello"; - } else { - throw new IllegalStateException(); - } - } -} diff --git a/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample.xoo.measures b/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample.xoo.measures deleted file mode 100644 index 06c9b6c2f38..00000000000 --- a/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample.xoo.measures +++ /dev/null @@ -1,9 +0,0 @@ -ncloc:13 -#Used by dashboard/widgets tests -complexity:3 -complexity_in_classes:3 -cognitive_complexity:4 -classes:1 -comment_lines:3 -public_api:5 -public_undocumented_api:2 diff --git a/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample3.xoo b/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample3.xoo deleted file mode 100644 index 41871e123a3..00000000000 --- a/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample3.xoo +++ /dev/null @@ -1,16 +0,0 @@ -package sample; - -public class Sample { - - public Sample(int i) { - int j = i++; - } - - private String myMethod() { - if (foo == bar) { - return "hello"; - } else { - throw new IllegalStateException(); - } - } -} diff --git a/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample3.xoo.measures b/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample3.xoo.measures deleted file mode 100644 index 06c9b6c2f38..00000000000 --- a/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample3.xoo.measures +++ /dev/null @@ -1,9 +0,0 @@ -ncloc:13 -#Used by dashboard/widgets tests -complexity:3 -complexity_in_classes:3 -cognitive_complexity:4 -classes:1 -comment_lines:3 -public_api:5 -public_undocumented_api:2 diff --git a/tests/projects/analysis/tracking/v1/sonar-project.properties b/tests/projects/analysis/tracking/v1/sonar-project.properties deleted file mode 100644 index e01f062e51b..00000000000 --- a/tests/projects/analysis/tracking/v1/sonar-project.properties +++ /dev/null @@ -1,5 +0,0 @@ -sonar.projectKey=sample -sonar.projectName=Sample -sonar.projectVersion=1.0-SNAPSHOT -sonar.sources=src/main/xoo -sonar.language=xoo
\ No newline at end of file diff --git a/tests/projects/analysis/tracking/v1/src/main/xoo/sample/Sample.xoo b/tests/projects/analysis/tracking/v1/src/main/xoo/sample/Sample.xoo deleted file mode 100644 index b1210973dd9..00000000000 --- a/tests/projects/analysis/tracking/v1/src/main/xoo/sample/Sample.xoo +++ /dev/null @@ -1,12 +0,0 @@ -package sample; - -public class Sample { - - public Sample(int i) { - int j = i++; - } - - private String myMethod() { - return "hello"; - } -} diff --git a/tests/projects/analysis/tracking/v1/src/main/xoo/sample/Sample.xoo.measures b/tests/projects/analysis/tracking/v1/src/main/xoo/sample/Sample.xoo.measures deleted file mode 100644 index 7bb5f438500..00000000000 --- a/tests/projects/analysis/tracking/v1/src/main/xoo/sample/Sample.xoo.measures +++ /dev/null @@ -1 +0,0 @@ -ncloc:8 diff --git a/tests/projects/analysis/tracking/v2/sonar-project.properties b/tests/projects/analysis/tracking/v2/sonar-project.properties deleted file mode 100644 index e01f062e51b..00000000000 --- a/tests/projects/analysis/tracking/v2/sonar-project.properties +++ /dev/null @@ -1,5 +0,0 @@ -sonar.projectKey=sample -sonar.projectName=Sample -sonar.projectVersion=1.0-SNAPSHOT -sonar.sources=src/main/xoo -sonar.language=xoo
\ No newline at end of file diff --git a/tests/projects/analysis/tracking/v2/src/main/xoo/sample/Sample.xoo b/tests/projects/analysis/tracking/v2/src/main/xoo/sample/Sample.xoo deleted file mode 100644 index 3f624a15b08..00000000000 --- a/tests/projects/analysis/tracking/v2/src/main/xoo/sample/Sample.xoo +++ /dev/null @@ -1,14 +0,0 @@ -package sample; - -public class Sample { - - public Sample(int i) { - int j = i++; - System.out.println("foo"); - } - - private String myMethod() { - System.out.println("foo"); - return "hello"; - } -} diff --git a/tests/projects/analysis/tracking/v2/src/main/xoo/sample/Sample.xoo.measures b/tests/projects/analysis/tracking/v2/src/main/xoo/sample/Sample.xoo.measures deleted file mode 100644 index 69a10eb19d4..00000000000 --- a/tests/projects/analysis/tracking/v2/src/main/xoo/sample/Sample.xoo.measures +++ /dev/null @@ -1 +0,0 @@ -ncloc:10 diff --git a/tests/projects/analysis/xoo-history-v2/sonar-project.properties b/tests/projects/analysis/xoo-history-v2/sonar-project.properties deleted file mode 100644 index e01f062e51b..00000000000 --- a/tests/projects/analysis/xoo-history-v2/sonar-project.properties +++ /dev/null @@ -1,5 +0,0 @@ -sonar.projectKey=sample -sonar.projectName=Sample -sonar.projectVersion=1.0-SNAPSHOT -sonar.sources=src/main/xoo -sonar.language=xoo
\ No newline at end of file diff --git a/tests/projects/analysis/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo b/tests/projects/analysis/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo deleted file mode 100644 index b0fd1087030..00000000000 --- a/tests/projects/analysis/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo +++ /dev/null @@ -1,12 +0,0 @@ -package sample; - -public class ClassAdded { - - public ClassAdded(int i) { - int j = i++; - } - - private String myMethod() { - return "hello"; - } -} diff --git a/tests/projects/analysis/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo.measures b/tests/projects/analysis/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo.measures deleted file mode 100644 index 66ba834e1ef..00000000000 --- a/tests/projects/analysis/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo.measures +++ /dev/null @@ -1,3 +0,0 @@ -ncloc:12 -classes:1 - diff --git a/tests/projects/analysis/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo b/tests/projects/analysis/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo deleted file mode 100644 index 393111bbab0..00000000000 --- a/tests/projects/analysis/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo +++ /dev/null @@ -1,16 +0,0 @@ -package sample; - -public class ClassToModify { - - public ClassToModify(int i) { - int j = i++; - } - - public String addedMethod() { - return "This method was added in v2"; - } - - private String myMethod() { - return "hello"; - } -} diff --git a/tests/projects/analysis/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo.measures b/tests/projects/analysis/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo.measures deleted file mode 100644 index 71d60758637..00000000000 --- a/tests/projects/analysis/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo.measures +++ /dev/null @@ -1,3 +0,0 @@ -ncloc:16 -classes:1 - diff --git a/tests/projects/analysis/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo b/tests/projects/analysis/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo deleted file mode 100644 index 2b0288fc971..00000000000 --- a/tests/projects/analysis/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo +++ /dev/null @@ -1,12 +0,0 @@ -package sample; - -public class ClassToModify { - - public ClassToModify(int i) { - int j = i++; - } - - private String myMethod() { - return "hello"; - } -} diff --git a/tests/projects/analysis/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo.measures b/tests/projects/analysis/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo.measures deleted file mode 100644 index 7812e4167fb..00000000000 --- a/tests/projects/analysis/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo.measures +++ /dev/null @@ -1,2 +0,0 @@ -ncloc:12 -classes:1 diff --git a/tests/projects/analysis/xoo-module-b-without-source/module_a/sonar-project.properties b/tests/projects/analysis/xoo-module-b-without-source/module_a/sonar-project.properties deleted file mode 100644 index 6063a2316fc..00000000000 --- a/tests/projects/analysis/xoo-module-b-without-source/module_a/sonar-project.properties +++ /dev/null @@ -1,6 +0,0 @@ -sonar.projectKey=module_a -sonar.projectName=Module A - -sonar.sources=src/main/xoo - - diff --git a/tests/projects/analysis/xoo-module-b-without-source/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo b/tests/projects/analysis/xoo-module-b-without-source/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo deleted file mode 100644 index 74d29a4fa08..00000000000 --- a/tests/projects/analysis/xoo-module-b-without-source/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo +++ /dev/null @@ -1,16 +0,0 @@ -package com.sonar.it.samples.modules.a1; - -public class HelloA1 { - private int i; - private HelloA1() { - - } - - public void hello() { - System.out.println("hello" + " xoo"); - } - - protected String getHello() { - return "hello"; - } -}
\ No newline at end of file diff --git a/tests/projects/analysis/xoo-module-b-without-source/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures b/tests/projects/analysis/xoo-module-b-without-source/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures deleted file mode 100644 index f3953ccd0fe..00000000000 --- a/tests/projects/analysis/xoo-module-b-without-source/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures +++ /dev/null @@ -1,4 +0,0 @@ -ncloc:12 -classes:1 -complexity:3 -cognitive_complexity:4 diff --git a/tests/projects/analysis/xoo-module-b-without-source/module_b/sonar-project.properties b/tests/projects/analysis/xoo-module-b-without-source/module_b/sonar-project.properties deleted file mode 100644 index 6025243d074..00000000000 --- a/tests/projects/analysis/xoo-module-b-without-source/module_b/sonar-project.properties +++ /dev/null @@ -1,4 +0,0 @@ -sonar.projectKey=module_b -sonar.projectName=Module B - -sonar.sources=. diff --git a/tests/projects/analysis/xoo-module-b-without-source/sonar-project.properties b/tests/projects/analysis/xoo-module-b-without-source/sonar-project.properties deleted file mode 100644 index 8bed48f65c5..00000000000 --- a/tests/projects/analysis/xoo-module-b-without-source/sonar-project.properties +++ /dev/null @@ -1,9 +0,0 @@ -# Root project information -sonar.projectKey=com.sonarsource.it.samples:multi-modules-sample -sonar.projectName=Sonar :: Integration Tests :: Multi-modules Sample -sonar.projectVersion=1.0-SNAPSHOT - -sonar.language=xoo - -# List of the module identifiers -sonar.modules=module_a,module_b diff --git a/tests/projects/analysis/xoo-multi-languages/sonar-project.properties b/tests/projects/analysis/xoo-multi-languages/sonar-project.properties deleted file mode 100644 index a2941788c41..00000000000 --- a/tests/projects/analysis/xoo-multi-languages/sonar-project.properties +++ /dev/null @@ -1,4 +0,0 @@ -sonar.projectKey=multi-language-sample -sonar.projectName=Multi-Language Sample -sonar.projectVersion=1.0-SNAPSHOT -sonar.sources=src diff --git a/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo b/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo deleted file mode 100644 index b1210973dd9..00000000000 --- a/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo +++ /dev/null @@ -1,12 +0,0 @@ -package sample; - -public class Sample { - - public Sample(int i) { - int j = i++; - } - - private String myMethod() { - return "hello"; - } -} diff --git a/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo.measures b/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo.measures deleted file mode 100644 index 5dc0154b75d..00000000000 --- a/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo.measures +++ /dev/null @@ -1,7 +0,0 @@ -ncloc:13 -#Used by dashboard/widgets tests -complexity_in_classes:3 -classes:1 -comment_lines:3 -public_api:5 -public_undocumented_api:2 diff --git a/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo2 b/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo2 deleted file mode 100644 index b1210973dd9..00000000000 --- a/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo2 +++ /dev/null @@ -1,12 +0,0 @@ -package sample; - -public class Sample { - - public Sample(int i) { - int j = i++; - } - - private String myMethod() { - return "hello"; - } -} diff --git a/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo2.measures b/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo2.measures deleted file mode 100644 index 5dc0154b75d..00000000000 --- a/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo2.measures +++ /dev/null @@ -1,7 +0,0 @@ -ncloc:13 -#Used by dashboard/widgets tests -complexity_in_classes:3 -classes:1 -comment_lines:3 -public_api:5 -public_undocumented_api:2 diff --git a/tests/projects/analysis/xoo-sample-with-spaces/v1/my sources/main/xoo/sample/My Sample.xoo b/tests/projects/analysis/xoo-sample-with-spaces/v1/my sources/main/xoo/sample/My Sample.xoo deleted file mode 100644 index b1210973dd9..00000000000 --- a/tests/projects/analysis/xoo-sample-with-spaces/v1/my sources/main/xoo/sample/My Sample.xoo +++ /dev/null @@ -1,12 +0,0 @@ -package sample; - -public class Sample { - - public Sample(int i) { - int j = i++; - } - - private String myMethod() { - return "hello"; - } -} diff --git a/tests/projects/analysis/xoo-sample-with-spaces/v1/my sources/main/xoo/sample/My Sample.xoo.measures b/tests/projects/analysis/xoo-sample-with-spaces/v1/my sources/main/xoo/sample/My Sample.xoo.measures deleted file mode 100644 index 641332a5013..00000000000 --- a/tests/projects/analysis/xoo-sample-with-spaces/v1/my sources/main/xoo/sample/My Sample.xoo.measures +++ /dev/null @@ -1,8 +0,0 @@ -ncloc:13 -#Used by dashboard/widgets tests -complexity:3 -complexity_in_classes:3 -classes:1 -comment_lines:3 -public_api:5 -public_undocumented_api:2 diff --git a/tests/projects/analysis/xoo-sample-with-spaces/v1/sonar-project.properties b/tests/projects/analysis/xoo-sample-with-spaces/v1/sonar-project.properties deleted file mode 100644 index bae5f7f152c..00000000000 --- a/tests/projects/analysis/xoo-sample-with-spaces/v1/sonar-project.properties +++ /dev/null @@ -1,5 +0,0 @@ -sonar.projectKey=sample -sonar.projectName=Sample -sonar.projectVersion=1.0-SNAPSHOT -sonar.sources=my sources/main/xoo -sonar.language=xoo
\ No newline at end of file diff --git a/tests/projects/analysis/xoo-sample-with-spaces/v2/my sources/main/xoo/sample/My Sample.xoo b/tests/projects/analysis/xoo-sample-with-spaces/v2/my sources/main/xoo/sample/My Sample.xoo deleted file mode 100644 index 8c91df8b6cf..00000000000 --- a/tests/projects/analysis/xoo-sample-with-spaces/v2/my sources/main/xoo/sample/My Sample.xoo +++ /dev/null @@ -1,12 +0,0 @@ -package sample; - -public class Sample { - - public Sample(int i) { - int j = i++; - } - - private String myMethod_modified() { - return "hello"; - } -} diff --git a/tests/projects/analysis/xoo-sample-with-spaces/v2/my sources/main/xoo/sample/My Sample.xoo.measures b/tests/projects/analysis/xoo-sample-with-spaces/v2/my sources/main/xoo/sample/My Sample.xoo.measures deleted file mode 100644 index 641332a5013..00000000000 --- a/tests/projects/analysis/xoo-sample-with-spaces/v2/my sources/main/xoo/sample/My Sample.xoo.measures +++ /dev/null @@ -1,8 +0,0 @@ -ncloc:13 -#Used by dashboard/widgets tests -complexity:3 -complexity_in_classes:3 -classes:1 -comment_lines:3 -public_api:5 -public_undocumented_api:2 diff --git a/tests/projects/analysis/xoo-sample-with-spaces/v2/sonar-project.properties b/tests/projects/analysis/xoo-sample-with-spaces/v2/sonar-project.properties deleted file mode 100644 index bae5f7f152c..00000000000 --- a/tests/projects/analysis/xoo-sample-with-spaces/v2/sonar-project.properties +++ /dev/null @@ -1,5 +0,0 @@ -sonar.projectKey=sample -sonar.projectName=Sample -sonar.projectVersion=1.0-SNAPSHOT -sonar.sources=my sources/main/xoo -sonar.language=xoo
\ No newline at end of file |