specify test options in the build.gradle

This commit is contained in:
Taner Sener 2021-09-18 12:36:22 +01:00
parent 4c2fdb2bfc
commit dc8f5b635c
6 changed files with 10 additions and 13 deletions

View File

@ -28,6 +28,9 @@ android {
testOptions {
unitTests.returnDefaultValues = true
unitTests.all {
systemProperty 'enable.ffmpeg.kit.test.mode', 'true'
}
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018-2020 Taner Sener
* Copyright (c) 2018-2021 Taner Sener
*
* This file is part of FFmpegKit.
*
@ -32,10 +32,6 @@ import java.util.List;
*/
public class FFmpegKitConfigTest {
static {
System.setProperty("enable.ffmpeg.kit.test.mode", "true");
}
private static final String externalLibrariesCommandOutput = " configuration:\n" +
" --cross-prefix=i686-linux-android-\n" +
" --sysroot=/Users/taner/Library/Android/sdk/ndk-bundle/toolchains/ffmpeg-kit-i686/sysroot\n" +

View File

@ -26,10 +26,6 @@ import java.util.List;
public class FFmpegSessionTest {
static {
System.setProperty("enable.ffmpeg.kit.test.mode", "true");
}
private static final String[] TEST_ARGUMENTS = new String[]{"argument1", "argument2"};
@Test

View File

@ -26,10 +26,6 @@ import java.util.List;
public class FFprobeSessionTest {
static {
System.setProperty("enable.ffmpeg.kit.test.mode", "true");
}
private static final String[] TEST_ARGUMENTS = new String[]{"argument1", "argument2"};
@Test

View File

@ -28,6 +28,9 @@ android {
testOptions {
unitTests.returnDefaultValues = true
unitTests.all {
systemProperty 'enable.ffmpeg.kit.test.mode', 'true'
}
}
}

View File

@ -28,6 +28,9 @@ android {
testOptions {
unitTests.returnDefaultValues = true
unitTests.all {
systemProperty 'enable.ffmpeg.kit.test.mode', 'true'
}
}
}