Skip to content

Commit

Permalink
Merge pull request #8549 from peterschrammel/ps/compile-java-regressi…
Browse files Browse the repository at this point in the history
…on-test-sources3

Compile Java regression test sources (3/n)
  • Loading branch information
tautschnig authored Jan 3, 2025
2 parents 736fb6e + b51acc4 commit 189e49b
Show file tree
Hide file tree
Showing 38 changed files with 298 additions and 8 deletions.
26 changes: 26 additions & 0 deletions jbmc/regression/janalyzer-taint/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>org.cprover.regression</groupId>
<artifactId>regression.janalyzer-taint</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>

<parent>
<groupId>org.cprover.regression</groupId>
<artifactId>regression</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<modules>
<module>taint-aliasing1</module>
<module>taint-basic1</module>
<module>taint-basic2</module>
<module>taint-interface1</module>
<module>taint-interproc1</module>
<module>taint-map1</module>
</modules>

</project>
Binary file not shown.
30 changes: 30 additions & 0 deletions jbmc/regression/janalyzer-taint/taint-aliasing1/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>org.cprover.regression</groupId>
<artifactId>regression.janalyzer-taint.taint-aliasing1</artifactId>
<version>1.0-SNAPSHOT</version>

<parent>
<groupId>org.cprover.regression</groupId>
<artifactId>regression.janalyzer-taint</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>default-jar</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
2 changes: 1 addition & 1 deletion jbmc/regression/janalyzer-taint/taint-aliasing1/test.desc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CORE
aliasing1
--taint taint.json
--taint taint.json --cp target/classes
^EXIT=0$
^SIGNAL=0$
^file aliasing1.java line 10( function .*)?: There is a flow \(taint rule my_sink\)$
Expand Down
Binary file not shown.
30 changes: 30 additions & 0 deletions jbmc/regression/janalyzer-taint/taint-basic1/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>org.cprover.regression</groupId>
<artifactId>regression.janalyzer-taint.taint-basic1</artifactId>
<version>1.0-SNAPSHOT</version>

<parent>
<groupId>org.cprover.regression</groupId>
<artifactId>regression.janalyzer-taint</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>default-jar</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
2 changes: 1 addition & 1 deletion jbmc/regression/janalyzer-taint/taint-basic1/test.desc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CORE
basic1
--taint taint.json
--taint taint.json -cp target/classes
^EXIT=0$
^SIGNAL=0$
^file basic1.java line 8( function .*)?: There is a T1 flow \(taint rule my_h1\)$
Expand Down
Binary file not shown.
30 changes: 30 additions & 0 deletions jbmc/regression/janalyzer-taint/taint-basic2/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>org.cprover.regression</groupId>
<artifactId>regression.janalyzer-taint.taint-basic2</artifactId>
<version>1.0-SNAPSHOT</version>

<parent>
<groupId>org.cprover.regression</groupId>
<artifactId>regression.janalyzer-taint</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>default-jar</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
2 changes: 1 addition & 1 deletion jbmc/regression/janalyzer-taint/taint-basic2/test.desc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CORE
basic2
--taint taint.json
--taint taint.json -cp target/classes
^EXIT=0$
^SIGNAL=0$
^file basic2.java line 8( function .*)?: There is a T1 flow \(taint rule my_h1\)$
Expand Down
Binary file not shown.
Binary file not shown.
30 changes: 30 additions & 0 deletions jbmc/regression/janalyzer-taint/taint-interface1/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>org.cprover.regression</groupId>
<artifactId>regression.janalyzer-taint.taint-interface1</artifactId>
<version>1.0-SNAPSHOT</version>

<parent>
<groupId>org.cprover.regression</groupId>
<artifactId>regression.janalyzer-taint</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>default-jar</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
Binary file not shown.
2 changes: 1 addition & 1 deletion jbmc/regression/janalyzer-taint/taint-interface1/test.desc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CORE
interface1
--taint taint.json
--taint taint.json -cp target/classes
^EXIT=0$
^SIGNAL=0$
^file interface1.java line 18( function .*)?: There is a flow! \(taint rule sink_rule\)$
Expand Down
Binary file not shown.
30 changes: 30 additions & 0 deletions jbmc/regression/janalyzer-taint/taint-interproc1/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>org.cprover.regression</groupId>
<artifactId>regression.janalyzer-taint.taint-interproc1</artifactId>
<version>1.0-SNAPSHOT</version>

<parent>
<groupId>org.cprover.regression</groupId>
<artifactId>regression.janalyzer-taint</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>default-jar</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
2 changes: 1 addition & 1 deletion jbmc/regression/janalyzer-taint/taint-interproc1/test.desc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CORE
interproc1
--taint taint.json
--taint taint.json -cp target/classes
^EXIT=0$
^SIGNAL=0$
^file interproc1.java line 13( function .*)?: There is a T1 flow \(taint rule my_h1\)$
Expand Down
Binary file removed jbmc/regression/janalyzer-taint/taint-map1/map1.class
Binary file not shown.
30 changes: 30 additions & 0 deletions jbmc/regression/janalyzer-taint/taint-map1/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>org.cprover.regression</groupId>
<artifactId>regression.janalyzer-taint.taint-map1</artifactId>
<version>1.0-SNAPSHOT</version>

<parent>
<groupId>org.cprover.regression</groupId>
<artifactId>regression.janalyzer-taint</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>default-jar</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
2 changes: 1 addition & 1 deletion jbmc/regression/janalyzer-taint/taint-map1/test.desc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CORE
map1
--taint taint.json
--taint taint.json -cp target/classes
^EXIT=0$
^SIGNAL=0$
^file map1.java line 12( function .*)?: There is a flow \(taint rule my_sink\)$
Expand Down
22 changes: 22 additions & 0 deletions jbmc/regression/janalyzer/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>org.cprover.regression</groupId>
<artifactId>regression.janalyzer</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>

<parent>
<groupId>org.cprover.regression</groupId>
<artifactId>regression</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<modules>
<module>string-initializer</module>
<module>too-many-args</module>
</modules>

</project>
Binary file not shown.
30 changes: 30 additions & 0 deletions jbmc/regression/janalyzer/string-initializer/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>org.cprover.regression</groupId>
<artifactId>regression.janalyzer.string-initializer</artifactId>
<version>1.0-SNAPSHOT</version>

<parent>
<groupId>org.cprover.regression</groupId>
<artifactId>regression.janalyzer</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>default-jar</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
2 changes: 1 addition & 1 deletion jbmc/regression/janalyzer/string-initializer/test.desc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CORE
Basic1
--location-sensitive --constants --show
--location-sensitive --constants --show -cp target/classes
^EXIT=0$
^SIGNAL=0$
Hello_20 := \{ "java::java\.lang\.String" \}
Expand Down
Binary file removed jbmc/regression/janalyzer/too-many-args/A.class
Binary file not shown.
Binary file removed jbmc/regression/janalyzer/too-many-args/B.class
Binary file not shown.
30 changes: 30 additions & 0 deletions jbmc/regression/janalyzer/too-many-args/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>org.cprover.regression</groupId>
<artifactId>regression.janalyzer.too-many-args</artifactId>
<version>1.0-SNAPSHOT</version>

<parent>
<groupId>org.cprover.regression</groupId>
<artifactId>regression.janalyzer</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>default-jar</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
2 changes: 1 addition & 1 deletion jbmc/regression/janalyzer/too-many-args/test.desc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CORE
A
B
B -cp target/classes
Please give exactly one class name, and/or use -jar jarfile or --gb goto-binary
^EXIT=1$
^SIGNAL=0$
2 changes: 2 additions & 0 deletions jbmc/regression/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
</properties>

<modules>
<module>janalyzer</module>
<module>janalyzer-taint</module>
<module>jbmc</module>
<module>book-examples</module>
</modules>
Expand Down

0 comments on commit 189e49b

Please sign in to comment.