Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit fdd652e

Browse files
committed
Revert changes to ./src/external/run_test.sh from commit 4061883
1 parent 0cfbdf9 commit fdd652e

File tree

1 file changed

+51
-1
lines changed

1 file changed

+51
-1
lines changed

src/external/run_test.sh

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/bash -ex
22

3-
export LD_LIBRARY_PATH=/usr/local/lib/:/usr/local/lib64:$LD_LIBRARY_PATH
43
cd ../build/test
54

65
# 360SCVP test
@@ -41,3 +40,54 @@ cp ../../../VROmafPacking/test/*bin .
4140
./testVideoStream
4241
./testExtractorTrack
4342
./testDefaultSegmentation
43+
44+
cd -
45+
46+
# distributed_encoder test
47+
################################
48+
49+
destroy_worker()
50+
{
51+
STATUS=$(lsof -i:9090 | tail -n 1 | awk {'print $NF'})
52+
53+
while [ "${STATUS}" != "EMPTY" ]
54+
do
55+
if [ "${STATUS}" == "(LISTEN)" ] ; then
56+
echo "LISTEN"
57+
PID=$(lsof -i:9090 | tail -n 1 | awk {'print $2'})
58+
echo ${PID}
59+
if [ ! -z "${PID}" ] ; then
60+
kill -9 ${PID}
61+
STATUS="EMPTY"
62+
fi
63+
sleep 2s
64+
else
65+
echo "EMPTY"
66+
STATUS="EMPTY"
67+
fi
68+
done
69+
}
70+
71+
cd distributed_encoder
72+
cp ../../../distributed_encoder/test/*265 .
73+
cp ../../../distributed_encoder/test/*264 .
74+
cp ../../../distributed_encoder/test/*yuv .
75+
cp ../../../distributed_encoder/test/*bin .
76+
cp ../../../distributed_encoder/test/*txt .
77+
78+
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:$PKG_CONFIG_PATH
79+
export LD_LIBRARY_PATH=/usr/local/lib64:$LD_LIBRARY_PATH
80+
81+
destroy_worker
82+
./testMainEncoder
83+
destroy_worker
84+
./testWorkSession
85+
destroy_worker
86+
./testDecoder
87+
destroy_worker
88+
./testSubEncoder
89+
destroy_worker
90+
./testEncoder
91+
# ./testSubEncoderManager
92+
93+
cd -

0 commit comments

Comments
 (0)