Commit 2c28cc2e authored by Kevin Bi's avatar Kevin Bi
Browse files

"Moved the build file to the project base direcotry, changed the target names"

parent c7efe4f9
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -73,11 +73,11 @@ the dir to be evaluated and the tacoco directory, see the script for more inform
	- ./run-jacoco /absolute/path/to/repo/triangle triangle /absolute/path/to/repo/tacoco

4. Compile the Tarantula classes (in the tarantula dir)
	- ant compile	
	- ant compile-tarantula	

NOTE: currently the run target is not working, it is unable to find the second argument
5. Run Tarantula's Main: Main requires two args(see the file for more details), the first is the absolute path to the cov-matrix.json file, the second is the name of the Test class, if the test program belongs to a package make sure to specify the package, ex: Triangle.TestSuite. 
	-  ant -Darg0=/abs/path/to/triangle-compact-cov-matrix.json -Darg1=triangle.src.test.java.TestSuite run
	-  ant -Darg0=/abs/path/to/triangle-compact-cov-matrix.json -Darg1=triangle.src.test.java.TestSuite run-tarantula

6. Clean the tacoco dir: Run clean-tacoco in order to clean the dir so it can be reused, this means tacoco will have to be recompiled
	- ./clean-tacoco
@@ -93,8 +93,6 @@ The directory structure is as follows
		|
		|--- gzoltar:			Scripts that run the gzoltar jar file
		|
		|--- lib:			Additional jars or files used in the repo
		|
		|--- primitive-hamcrest:	Repo, used by tacoco
		|
		|--- tacoco:			Repo, used to obtain per-test line coverage information
+38 −0
Original line number Diff line number Diff line
<project name="tarantula" default="compile" basedir=".">

<property name="tarantula.src.dir" value="./tarantula/src/tarantula"/>
<property name="tarantula.bin.dir" value ="./tarantula/bin"/>

<!-- Target to clean up -->
    <target name="clean" description="Clean">
        <delete dir="bin"/>
    <target name="clean-tarantula" description="Clean">
        <delete dir="./tarantula/bin"/>
    </target>

<!-- Target to initialize build -->
    <target name="init">
        <mkdir dir="bin"/>
    <target name="init-tarantula">
        <mkdir dir="./tarantula/bin"/>
    </target>

<!-- Target to compile the project -->
    <target name="compile" depends="init" description="Compile">
        <javac includeantruntime="true" srcdir="src" destdir="bin" debug="yes" fork="no">
    <target name="compile-tarantula" depends="init-tarantula" description="Compile">
        <javac includeantruntime="true" srcdir="${tarantula.src.dir}" destdir="${tarantula.bin.dir}" debug="yes" fork="no">
            <classpath>
                <pathelement path="lib/json-simple-1.1.1.jar"/>
                <pathelement path="lib/junit-4.11.jar"/>
                <pathelement path="tarantula/lib/json-simple-1.1.1.jar"/>
                <pathelement path="tarantula/lib/junit-4.11.jar"/>
            </classpath>
        </javac>
    </target>

<!-- Target to run the main-->
    <target name="run" depends="compile">
    <target name="run-tarantula" depends="compile-tarantula">
        <java classname="tarantula.Main">
            <classpath>
               <pathelement path="lib/json-simple-1.1.1.jar"/>