mirror of
https://github.com/kiwix/java-libkiwix.git
synced 2025-09-08 06:38:41 -04:00
Renamed compile_and_run_test.sh to run_test.sh as now this script is only for running test cases, removed unnecessary check for directory in run_test.sh
This commit is contained in:
parent
cee67f6129
commit
bc93a5deed
@ -281,7 +281,7 @@ task renameLibkiwixSoFile(type: Copy) {
|
||||
|
||||
task createCodeCoverageReport(type: Exec) {
|
||||
workingDir "${projectDir}/src/test/"
|
||||
commandLine 'sh', '-c', "bash 'compile_and_run_test.sh' ${buildDir}/libs/*lib*.jar $buildDir"
|
||||
commandLine 'sh', '-c', "bash 'run_test.sh' ${buildDir}/libs/*lib*.jar $buildDir"
|
||||
}
|
||||
|
||||
task checkCurrentJavaVersion() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# This script compiles and runs the unit test to test the java wrapper.
|
||||
# This script runs the unit test to test the java wrapper.
|
||||
# This is not integrated in meson because ... this is not so easy.
|
||||
|
||||
die()
|
||||
@ -9,25 +9,8 @@ die()
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Copy generated .so file to build directory to run test cases
|
||||
cd ../../../
|
||||
./gradlew copyBuildKiwixSoFile
|
||||
cd lib/src/test
|
||||
|
||||
KIWIX_LIB_JAR=$1
|
||||
if [ -z $KIWIX_LIB_JAR ]
|
||||
then
|
||||
die "You must give the path to the kiwixlib.jar as first argument"
|
||||
fi
|
||||
|
||||
KIWIX_LIB_DIR=$2
|
||||
if [ -z $KIWIX_LIB_DIR ]
|
||||
then
|
||||
die "You must give the path to directory containing libkiwix.so as second argument"
|
||||
fi
|
||||
|
||||
KIWIX_LIB_JAR=$(readlink -f "$KIWIX_LIB_JAR")
|
||||
KIWIX_LIB_DIR=$(readlink -f "$KIWIX_LIB_DIR")
|
||||
KIWIX_LIB_JAR=$(readlink -f "$1")
|
||||
KIWIX_LIB_DIR=$(readlink -f "$2")
|
||||
TEST_SOURCE_DIR=$(dirname "$(readlink -f $0)")
|
||||
|
||||
cd "$TEST_SOURCE_DIR"
|
Loading…
x
Reference in New Issue
Block a user