mirror of https://github.com/OpenVidu/openvidu.git
Manage stt-test.wav as a fake audio file instead of a fake video file
parent
078c13ac80
commit
1b5979e8f7
|
@ -281,7 +281,6 @@ if [[ "${PREPARE}" == true || "${EXECUTE_ALL}" == true ]]; then
|
|||
# Download fake videos
|
||||
FAKE_VIDEO1=/opt/openvidu/barcode.y4m
|
||||
FAKE_VIDEO2=/opt/openvidu/girl.mjpeg
|
||||
FAKE_VIDEO3=/opt/openvidu/stt-test.wav
|
||||
if [ ! -f ${FAKE_VIDEO1} ]; then
|
||||
sudo curl --location https://github.com/OpenVidu/openvidu/raw/master/openvidu-test-e2e/docker/barcode.y4m --create-dirs --output /opt/openvidu/barcode.y4m
|
||||
else
|
||||
|
@ -292,20 +291,25 @@ if [[ "${PREPARE}" == true || "${EXECUTE_ALL}" == true ]]; then
|
|||
else
|
||||
echo "File ${FAKE_VIDEO2} already exists"
|
||||
fi
|
||||
if [ ! -f ${FAKE_VIDEO3} ]; then
|
||||
sudo curl --location https://github.com/OpenVidu/openvidu/raw/master/openvidu-test-e2e/docker/stt-test.wav --create-dirs --output /opt/openvidu/stt-test.wav
|
||||
else
|
||||
echo "File ${FAKE_VIDEO3} already exists"
|
||||
fi
|
||||
|
||||
# Download fake audio
|
||||
FAKE_AUDIO=/opt/openvidu/fakeaudio.wav
|
||||
if [ ! -f ${FAKE_AUDIO} ]; then
|
||||
# Download fake audios
|
||||
FAKE_AUDIO1=/opt/openvidu/fakeaudio.wav
|
||||
FAKE_AUDIO2=/opt/openvidu/stt-test.wav
|
||||
if [ ! -f ${FAKE_AUDIO1} ]; then
|
||||
sudo curl --location https://github.com/OpenVidu/openvidu/raw/master/openvidu-test-e2e/docker/fakeaudio.wav --create-dirs --output /opt/openvidu/fakeaudio.wav
|
||||
else
|
||||
echo "File ${FAKE_AUDIO} already exists"
|
||||
echo "File ${FAKE_AUDIO1} already exists"
|
||||
fi
|
||||
curl --location https://raw.githubusercontent.com/OpenVidu/openvidu/master/openvidu-test-e2e/docker/my-custom-layout/index.html --create-dirs --output /opt/openvidu/test-layouts/layout1/index.html
|
||||
if [ ! -f ${FAKE_AUDIO2} ]; then
|
||||
sudo curl --location https://github.com/OpenVidu/openvidu/raw/master/openvidu-test-e2e/docker/stt-test.wav --create-dirs --output /opt/openvidu/stt-test.wav
|
||||
else
|
||||
echo "File ${FAKE_AUDIO2} already exists"
|
||||
fi
|
||||
|
||||
# Download recording custom layout
|
||||
sudo curl --location https://raw.githubusercontent.com/OpenVidu/openvidu/master/openvidu-test-e2e/docker/my-custom-layout/index.html --create-dirs --output /opt/openvidu/test-layouts/layout1/index.html
|
||||
|
||||
# Open permissions for /opt/openvidu folder
|
||||
chmod -R 777 /opt/openvidu
|
||||
|
||||
fi
|
||||
|
|
|
@ -86,7 +86,6 @@ def prepareTestingEnvironment() {
|
|||
sh(script: '''#!/bin/bash -xe
|
||||
FAKE_VIDEO1=/opt/openvidu-cache/barcode.y4m
|
||||
FAKE_VIDEO2=/opt/openvidu-cache/girl.mjpeg
|
||||
FAKE_VIDEO3=/opt/openvidu-cache/stt-test.wav
|
||||
if [ ! -f ${FAKE_VIDEO1} ]; then
|
||||
sudo curl --location https://github.com/OpenVidu/openvidu/raw/master/openvidu-test-e2e/docker/barcode.y4m --create-dirs --output /opt/openvidu-cache/barcode.y4m
|
||||
else
|
||||
|
@ -97,25 +96,26 @@ def prepareTestingEnvironment() {
|
|||
else
|
||||
echo "File ${FAKE_VIDEO2} already exists"
|
||||
fi
|
||||
if [ ! -f ${FAKE_VIDEO3} ]; then
|
||||
sudo curl --location https://github.com/OpenVidu/openvidu/raw/master/openvidu-test-e2e/docker/stt-test.wav --create-dirs --output /opt/openvidu-cache/stt-test.wav
|
||||
else
|
||||
echo "File ${FAKE_VIDEO3} already exists"
|
||||
fi
|
||||
sudo cp /opt/openvidu-cache/barcode.y4m /opt/openvidu/barcode.y4m
|
||||
sudo cp /opt/openvidu-cache/girl.mjpeg /opt/openvidu/girl.mjpeg
|
||||
sudo cp /opt/openvidu-cache/stt-test.wav /opt/openvidu/stt-test.wav
|
||||
'''.stripIndent())
|
||||
},
|
||||
'Download fake audio': {
|
||||
sh(script: '''#!/bin/bash -xe
|
||||
FAKE_AUDIO=/opt/openvidu-cache/fakeaudio.wav
|
||||
if [ ! -f ${FAKE_AUDIO} ]; then
|
||||
FAKE_AUDIO1=/opt/openvidu-cache/fakeaudio.wav
|
||||
FAKE_AUDIO2=/opt/openvidu-cache/stt-test.wav
|
||||
if [ ! -f ${FAKE_AUDIO1} ]; then
|
||||
sudo curl --location https://github.com/OpenVidu/openvidu/raw/master/openvidu-test-e2e/docker/fakeaudio.wav --create-dirs --output /opt/openvidu-cache/fakeaudio.wav
|
||||
else
|
||||
echo "File ${FAKE_AUDIO} already exists"
|
||||
echo "File ${FAKE_AUDIO1} already exists"
|
||||
fi
|
||||
if [ ! -f ${FAKE_AUDIO2} ]; then
|
||||
sudo curl --location https://github.com/OpenVidu/openvidu/raw/master/openvidu-test-e2e/docker/stt-test.wav --create-dirs --output /opt/openvidu-cache/stt-test.wav
|
||||
else
|
||||
echo "File ${FAKE_AUDIO2} already exists"
|
||||
fi
|
||||
sudo cp /opt/openvidu-cache/fakeaudio.wav /opt/openvidu/fakeaudio.wav
|
||||
sudo cp /opt/openvidu-cache/stt-test.wav /opt/openvidu/stt-test.wav
|
||||
'''.stripIndent())
|
||||
},
|
||||
'Download custom layout': {
|
||||
|
|
Loading…
Reference in New Issue