Enable CI for Junit tests (#7436)
authormudathirmahgoub <mudathirmahgoub@gmail.com>
Wed, 3 Nov 2021 21:32:10 +0000 (16:32 -0500)
committerGitHub <noreply@github.com>
Wed, 3 Nov 2021 21:32:10 +0000 (21:32 +0000)
commit690a3926569a29217df5000cfb673cc407ada356
treed7147990f2e5f8b92244ec1fbb148b6bcd5cb1c5
parentb8504ef92ef609ddeaf093299811aa8d6d6396ad
Enable CI for Junit tests (#7436)

This PR enables CI for java tests by adding --java-bindings to ci.yml.
It also replaces the unreliable finalize method and instead uses AutoCloseable and explicit close method to clean up dynamic memory allocated by java native interface.
The PR fixes compile errors for SolverTest.java and runtime errors for Solver.defineFun.
57 files changed:
.github/workflows/ci.yml
examples/api/java/BitVectors.java
examples/api/java/BitVectorsAndArrays.java
examples/api/java/Combination.java
examples/api/java/Datatypes.java
examples/api/java/Exceptions.java
examples/api/java/Extract.java
examples/api/java/FloatingPointArith.java
examples/api/java/HelloWorld.java
examples/api/java/LinearArith.java
examples/api/java/QuickStart.java
examples/api/java/Relations.java
examples/api/java/Sequences.java
examples/api/java/Sets.java
examples/api/java/Statistics.java
examples/api/java/Strings.java
examples/api/java/SygusFun.java
examples/api/java/SygusGrammar.java
examples/api/java/SygusInv.java
examples/api/java/Transcendentals.java
examples/api/java/UnsatCores.java
src/api/java/io/github/cvc5/api/AbstractPointer.java
src/api/java/io/github/cvc5/api/Datatype.java
src/api/java/io/github/cvc5/api/DatatypeConstructor.java
src/api/java/io/github/cvc5/api/DatatypeConstructorDecl.java
src/api/java/io/github/cvc5/api/DatatypeDecl.java
src/api/java/io/github/cvc5/api/DatatypeSelector.java
src/api/java/io/github/cvc5/api/Grammar.java
src/api/java/io/github/cvc5/api/Op.java
src/api/java/io/github/cvc5/api/OptionInfo.java
src/api/java/io/github/cvc5/api/Result.java
src/api/java/io/github/cvc5/api/Solver.java
src/api/java/io/github/cvc5/api/Sort.java
src/api/java/io/github/cvc5/api/Stat.java
src/api/java/io/github/cvc5/api/Statistics.java
src/api/java/io/github/cvc5/api/Term.java
src/api/java/jni/datatype.cpp
src/api/java/jni/datatype_constructor.cpp
src/api/java/jni/datatype_constructor_decl.cpp
src/api/java/jni/datatype_decl.cpp
src/api/java/jni/datatype_selector.cpp
src/api/java/jni/grammar.cpp
src/api/java/jni/op.cpp
src/api/java/jni/option_info.cpp
src/api/java/jni/result.cpp
src/api/java/jni/solver.cpp
src/api/java/jni/sort.cpp
src/api/java/jni/stat.cpp
src/api/java/jni/statistics.cpp
src/api/java/jni/term.cpp
test/unit/api/java/DatatypeTest.java
test/unit/api/java/GrammarTest.java
test/unit/api/java/OpTest.java
test/unit/api/java/ResultTest.java
test/unit/api/java/SolverTest.java
test/unit/api/java/SortTest.java
test/unit/api/java/TermTest.java