Skip to content

Commit 9d60f54

Browse files
authored
libsrtp: add run_tests.sh (#13600)
`infra/experimental/chronos/check_tests.sh libsrtp c` ``` ... Build done. Please run 'make runtest' to run self tests. running libsrtp3 test applications... crypto/test/cipher_driver -v >/dev/null crypto/test/kernel_driver -v >/dev/null test/test_srtp >/dev/null test/rdbx_driver -v >/dev/null test/srtp_driver -v >/dev/null test/roc_driver -v >/dev/null test/replay_driver -v >/dev/null cd test; /src/libsrtp/test/rtpw_test.sh -w /src/libsrtp/test/words.txt >/dev/null libsrtp3 test applications passed. make -C crypto runtest make[1]: Entering directory '/src/libsrtp/crypto' test/env # print out information on the build environment CPU set to little-endian (WORDS_BIGENDIAN == 0) CPU set to CISC (CPU_CISC == 1) running crypto test applications... test `test/aes_calc 000102030405060708090a0b0c0d0e0f 00112233445566778899aabbccddeeff` = 69c4e0d86a7b0430d8cdb78070b4c55a test `test/aes_calc 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f 00112233445566778899aabbccddeeff` = 8ea2b7ca516745bfeafc49904b496089 test/sha1_driver -v >/dev/null test/cipher_driver -v >/dev/null test/datatypes_driver -v >/dev/null test/kernel_driver -v >/dev/null crypto test applications passed. make[1]: Leaving directory '/src/libsrtp/crypto' /src ``` Signed-off-by: Adam Korczynski <adam@adalogics.com>
1 parent 834c32c commit 9d60f54

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

projects/libsrtp/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FROM gcr.io/oss-fuzz-base/base-builder
1818
RUN apt-get update && apt-get install -y sudo autoconf build-essential libssl-dev pkg-config
1919

2020
RUN git clone --depth 1 https://github.com/cisco/libsrtp
21-
COPY build.sh $SRC/
21+
COPY build.sh run_tests.sh $SRC/

projects/libsrtp/build.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
1+
#!/bin/bash -eu
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
################################################################################
117
cd $SRC/libsrtp
218
autoreconf -ivf
319
./configure
420
LIBFUZZER="$LIB_FUZZING_ENGINE" make srtp-fuzzer
21+
make test
522
zip -r srtp-fuzzer_seed_corpus.zip fuzzer/corpus
623
cp $SRC/libsrtp/fuzzer/srtp-fuzzer $OUT
724
cp srtp-fuzzer_seed_corpus.zip $OUT

projects/libsrtp/run_tests.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash -eu
2+
# Copyright 2025 Google LLC.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
################################################################################
17+
18+
pushd $SRC/libsrtp
19+
make runtest
20+
popd

0 commit comments

Comments
 (0)