summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorPawin Vongmasa <pawin@google.com>2019-08-09 21:49:46 -0700
committerPawin Vongmasa <pawin@google.com>2019-08-22 07:29:05 +0000
commita54bf6ed5a011a7261124fbe19a011f9c75cc133 (patch)
tree520f2186ae27d23e6b337498489374fb5da89d16 /media
parent02376b9e1117cda33b7c383c98dca260f9f9365f (diff)
downloadplatform_hardware_interfaces-a54bf6ed5a011a7261124fbe19a011f9c75cc133.tar.gz
platform_hardware_interfaces-a54bf6ed5a011a7261124fbe19a011f9c75cc133.tar.bz2
platform_hardware_interfaces-a54bf6ed5a011a7261124fbe19a011f9c75cc133.zip
OMX VTS: Move device resource files to data/local/tmp
Some devices make /sdcard a symbolic link to a non-constant target. The target changes between the setup and the execution, so files pushed to /sdcard during the setup cannot be found when the test runs. Test: vts-tradefed run vts -m VtsHalMediaOmxV1_0Host Bug: 138388013 Change-Id: I824b84ef8570ba501cf8137d695f98c335f92c7b
Diffstat (limited to 'media')
-rw-r--r--media/omx/1.0/vts/functional/README.md10
-rw-r--r--media/omx/1.0/vts/functional/common/media_hidl_test_common.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/media/omx/1.0/vts/functional/README.md b/media/omx/1.0/vts/functional/README.md
index acffc42943..274b30d8be 100644
--- a/media/omx/1.0/vts/functional/README.md
+++ b/media/omx/1.0/vts/functional/README.md
@@ -18,17 +18,17 @@ This folder includes test fixtures associated with testing audio encoder and dec
usage:
-VtsHalMediaOmxV1\_0TargetAudioDecTest -I default -C <comp name> -R audio_decoder.<comp class> -P /sdcard/media/
+VtsHalMediaOmxV1\_0TargetAudioDecTest -I default -C <comp name> -R audio_decoder.<comp class> -P /data/local/tmp/media/
-VtsHalMediaOmxV1\_0TargetAudioEncTest -I default -C <comp name> -R audio_encoder.<comp class> -P /sdcard/media/
+VtsHalMediaOmxV1\_0TargetAudioEncTest -I default -C <comp name> -R audio_encoder.<comp class> -P /data/local/tmp/media/
#### video :
This folder includes test fixtures associated with testing video encoder and decoder components such as simple encoding of a raw clip or decoding of an elementary stream, end of stream test, timestamp deviations test, flush test and so on. These tests are aimed towards testing the plugin that connects the component to the omx core.
usage:
-VtsHalMediaOmxV1\_0TargetVideoDecTest -I default -C <comp name> -R video_decoder.<comp class> -P /sdcard/media/
+VtsHalMediaOmxV1\_0TargetVideoDecTest -I default -C <comp name> -R video_decoder.<comp class> -P /data/local/tmp/media/
-VtsHalMediaOmxV1\_0TargetVideoEncTest -I default -C <comp name> -R video_encoder.<comp class> -P /sdcard/media/
+VtsHalMediaOmxV1\_0TargetVideoEncTest -I default -C <comp name> -R video_encoder.<comp class> -P /data/local/tmp/media/
-While tesing audio/video encoder, decoder components, test fixtures require input files. These input are files are present in the folder 'res'. Before running the tests all the files in 'res' have to be placed in '/media/sdcard/' or a path of your choice and this path needs to be provided as an argument to the test application \ No newline at end of file
+While tesing audio/video encoder, decoder components, test fixtures require input files. These input are files are present in the folder 'res'. Before running the tests all the files in 'res' have to be placed in '/data/local/tmp/media' or a path of your choice and this path needs to be provided as an argument to the test application
diff --git a/media/omx/1.0/vts/functional/common/media_hidl_test_common.h b/media/omx/1.0/vts/functional/common/media_hidl_test_common.h
index 08af26bd82..ac077a3c76 100644
--- a/media/omx/1.0/vts/functional/common/media_hidl_test_common.h
+++ b/media/omx/1.0/vts/functional/common/media_hidl_test_common.h
@@ -408,7 +408,7 @@ class ComponentTestEnvironment : public ::testing::VtsHalHidlTargetTestEnvBase {
public:
virtual void registerTestServices() override { registerTestService<IOmx>(); }
- ComponentTestEnvironment() : res("/sdcard/media/") {}
+ ComponentTestEnvironment() : res("/data/local/tmp/media/") {}
void setComponent(const char* _component) { component = _component; }