Skip to content
Snippets Groups Projects
Commit 31c123d2 authored by Brian Carrier's avatar Brian Carrier
Browse files

Updated build-unix to be more similar to the Autopsy one

parent 53c9020f
Branches
Tags
No related merge requests found
......@@ -2,7 +2,7 @@
<project name="TSKTestTargets">
<target name="test-precond"
description="Traverses the Images stored in the path represented by test-input variable, creates results files stored in the path represented by test-results, and compares them to the standards stored in the path represented by the test-standards variable, always run test-create-standards at least once before before running test."
depends="compile-test, depender">
depends="compile-test, copyTSKLibs">
<junit fork="on" haltonfailure="yes" dir=".">
<sysproperty key="rslt" value="${test-results}"/>
<sysproperty key="gold" value="${test-standards}"/>
......@@ -14,25 +14,38 @@
</target>
<target name="test-create-standards-precond"
description="Traverses the Images stored in the path represented by test-input variable and creates then stores them to the path represented by the test-standards variable, run test-download-imgs at least once before this."
depends="compile-test, depender">
depends="compile-test, copyTSKLibs">
<java classname="org.sleuthkit.datamodel.DataModelTestSuite" classpathref="libraries" fork="true" failonerror="true">
<sysproperty key="gold" value="${test-standards}"/>
<sysproperty key="inpt" value="${test-input}"/>
<sysproperty key="types" value="${test-types}"/>
</java>
</target>
<target name="depender"
depends="depender1"
unless="present">
<copy file="./jni/.libs/libtsk_jni.la" tofile="./libtsk_jni.la"/>
<copy file="./jni/.libs/libtsk_jni.0.0.0.dylib" tofile="./libtsk_jni.0.0.0.dylib"/>
<copy file="./jni/.libs/libtsk_jni.0.dylib" tofile="./libtsk_jni.0.dylib"/>
<copy file="./jni/.libs/libtsk_jni.a" tofile="./libtsk_jni.a"/>
<copy file="./jni/.libs/libtsk_jni.dylib" tofile="./libtsk_jni.dylib"/>
</target>
<target name="depender1">
<available file="./jni/.libs/libtsk_jni.a" property="pres"/>
<fail unless="pres" message="Run make install on The Sleuthkit."/>
<available file="./libtsk_jni.dylib" property="present"/>
</target>
</project>
\ No newline at end of file
<target name="testTSKLibs">
<property environment="env"/>
<available file="./jni/.libs/libtsk_jni.dylib" property="tsk_dylib.present"/>
<available file="./jni/.libs/libtsk_jni.so" property="tsk_so.present"/>
<!-- TODO: Add a check here to give a warning if none of these are found
<fail unless="pres" message="Run make install on The Sleuthkit."/> -->
</target>
<!-- OS X -->
<target name="copyTskLibs_dylib" depends="testTSKLibs" if="tsk_dylib.present">
<property environment="env"/>
<copy file="./jni/.libs/libtsk_jni.dylib" tofile="./libtsk_jni.jnilib"/>
</target>
<!-- Non-OS X -->
<target name="copyTskLibs_so" depends="testTSKLibs" if="tsk_so.present">
<property environment="env"/>
<copy file="./jni/.libs/libtsk_jni.so" tofile="./libtsk_jni.so"/>
</target>
<target name="copyTSKLibs" depends="copyTskLibs_so,copyTskLibs_dylib">
<!-- depends targets take care of the actual copying since the file differs on OS X and Linux -->
<!-- This assumes that TSK, libewf, and zlib have been installed on the system and those libraries will be with normal loading approaches -->
</target>
</project>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment