SpoonLabs / astor

Automatic program repair for Java with generate-and-validate techniques :v::v:: jGenProg (2014) - jMutRepair (2016) - jKali (2016) - DeepRepair (2017) - Cardumen (2018) - 3sfix (2018)
https://hal.archives-ouvertes.fr/hal-01321615/document
GNU General Public License v2.0
207 stars 106 forks source link

ERROR AstorCoreEngine - Initial run of test suite fails #316

Open juliamanfrindias opened 3 years ago

juliamanfrindias commented 3 years ago

I was running the command from inside the Astor folder instead of the target folder

Now when I run the command inside the target folder, using the example Math-issue-280 at location:

java -cp astor-1.1.0-jar-with-dependencies.jar fr.inria.main.evolution.AstorMain -mode jgenprog -srcjavafolder /src/java/ -srctestfolder /src/test/ -binjavafolder /target/classes/ - bintestfolder /target/test-classes/ -location /home/astor/Documents/A3/astor/examples/Math-issue-280/

Returns the expected response:

Astor Output:

general stats:

EXECUTION_IDENTIFIER=
TOTAL_TIME=143,384
NR_GENERATIONS=200

But I'm only getting this successful answer for the example Math-issue-280.

When I run the command, using the example math_20 at location:

java -cp astor-1.1.0-jar-with-dependencies.jar fr.inria.main.evolution.AstorMain -mode jgenprog -srcjavafolder /src/java/ -srctestfolder /src/test/ -binjavafolder /target/classes/ - bintestfolder /target/test-classes/ -location /home/astor/Documents/A3/astor/examples/math_20/

Returns an error:

ERROR AstorCoreEngine - Initial run of test suite fails

martinezmatias commented 3 years ago

Hi @juliamanfrindias

I suspect that the reason of the failure could be that in the command is missing the parameter -dependencies which indicates the dependencies (as a set of jars) of the program under repair.

Regards Matias

juliamanfrindias commented 3 years ago

What should I use for dependencies? There's no libs folder in the math_20 example, when I use the libs folder from the path "examples/libs" its return the same error.

[astor@julia-note target]$ java -cp astor-1.1.0-jar-with-dependencies.jar fr.inria.main.evolution.AstorMain -mode jgenprog -srcjavafolder /src/java/ -srctestfolder /src/test/ -binjavafolder /target/classes/ -bintestfolder /target/test-classes/ -location /home/astor/Documentos/A3/astor/examples/math_20/ -dependencies examples/libs 13:14:04.490 [main] ERROR AstorCoreEngine - Initial run of test suite fails