Skip to content
Snippets Groups Projects
Commit 731f332f authored by Sean-M's avatar Sean-M
Browse files

Merge remote-tracking branch 'upstream/master'

parents 0c0b7ea7 31c123d2
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<project name="TSKTestTargets"> <project name="TSKTestTargets">
<target name="test-precond" <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." 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="."> <junit fork="on" haltonfailure="yes" dir=".">
<sysproperty key="rslt" value="${test-results}"/> <sysproperty key="rslt" value="${test-results}"/>
<sysproperty key="gold" value="${test-standards}"/> <sysproperty key="gold" value="${test-standards}"/>
...@@ -14,25 +14,38 @@ ...@@ -14,25 +14,38 @@
</target> </target>
<target name="test-create-standards-precond" <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." 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"> <java classname="org.sleuthkit.datamodel.DataModelTestSuite" classpathref="libraries" fork="true" failonerror="true">
<sysproperty key="gold" value="${test-standards}"/> <sysproperty key="gold" value="${test-standards}"/>
<sysproperty key="inpt" value="${test-input}"/> <sysproperty key="inpt" value="${test-input}"/>
<sysproperty key="types" value="${test-types}"/> <sysproperty key="types" value="${test-types}"/>
</java> </java>
</target> </target>
<target name="depender"
depends="depender1"
unless="present"> <target name="testTSKLibs">
<copy file="./jni/.libs/libtsk_jni.la" tofile="./libtsk_jni.la"/> <property environment="env"/>
<copy file="./jni/.libs/libtsk_jni.0.0.0.dylib" tofile="./libtsk_jni.0.0.0.dylib"/> <available file="./jni/.libs/libtsk_jni.dylib" property="tsk_dylib.present"/>
<copy file="./jni/.libs/libtsk_jni.0.dylib" tofile="./libtsk_jni.0.dylib"/> <available file="./jni/.libs/libtsk_jni.so" property="tsk_so.present"/>
<copy file="./jni/.libs/libtsk_jni.a" tofile="./libtsk_jni.a"/> <!-- TODO: Add a check here to give a warning if none of these are found
<copy file="./jni/.libs/libtsk_jni.dylib" tofile="./libtsk_jni.dylib"/> <fail unless="pres" message="Run make install on The Sleuthkit."/> -->
</target> </target>
<target name="depender1">
<available file="./jni/.libs/libtsk_jni.a" property="pres"/> <!-- OS X -->
<fail unless="pres" message="Run make install on The Sleuthkit."/> <target name="copyTskLibs_dylib" depends="testTSKLibs" if="tsk_dylib.present">
<available file="./libtsk_jni.dylib" property="present"/> <property environment="env"/>
</target> <copy file="./jni/.libs/libtsk_jni.dylib" tofile="./libtsk_jni.jnilib"/>
</project> </target>
\ No newline at end of file
<!-- 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