Skip to content

Commit efc0296

Browse files
authored
libexif: add run_tests.sh (#13647)
Adds `run_tests.sh` to the libexif project. `run_tests.sh` is used as part of Chronos with cached builds: https://github.com/google/oss-fuzz/tree/master/infra/experimental/chronos#check-tests Output of ./infra/experimental/chronos/check_tests.sh libexif c++: ``` Making check in m4m make[1]: Entering directory '/src/libexif/m4m' make[1]: Nothing to be done for 'check'. make[1]: Leaving directory '/src/libexif/m4m' Making check in po make[1]: Entering directory '/src/libexif/po' make[1]: Nothing to be done for 'check'. make[1]: Leaving directory '/src/libexif/po' Making check in libexif make[1]: Entering directory '/src/libexif/libexif' make[1]: Nothing to be done for 'check'. make[1]: Leaving directory '/src/libexif/libexif' Making check in test make[1]: Entering directory '/src/libexif/test' Making check in nls make[2]: Entering directory '/src/libexif/test/nls' make print-localedir check-localedir.sh make[3]: Entering directory '/src/libexif/test/nls' CC print-localedir.o CCLD print-localedir sed 's|@top_builddir\@|../..|g;s|@localedir\@|/work/share/locale|g;s|@PRINT_LOCALEDIR\@|./print-localedir|g;s|@build_alias\@||g;s|@host_alias\@||g;s|@codeset_tests\@|test-codeset-default test-codeset-latin1 test-codeset-utf-8|g;s|@DESTDIR\@||g' < check-localedir.in > check-localedir.sh chmod +x check-localedir.sh make[3]: Leaving directory '/src/libexif/test/nls' make check-TESTS make[3]: Entering directory '/src/libexif/test/nls' make[4]: Entering directory '/src/libexif/test/nls' PASS: check-localedir.sh ============================================================================ Testsuite summary for EXIF library 0.6.25.1 ============================================================================ # TOTAL: 1 # PASS: 1 # SKIP: 0 # XFAIL: 0 # FAIL: 0 # XPASS: 0 # ERROR: 0 ============================================================================ make[4]: Leaving directory '/src/libexif/test/nls' make[3]: Leaving directory '/src/libexif/test/nls' make[2]: Leaving directory '/src/libexif/test/nls' make[2]: Entering directory '/src/libexif/test' make test-mem test-mnote test-value test-integers test-parse test-parse-from-data test-tagtable test-sorted test-fuzzer test-extract test-null test-gps make[3]: Entering directory '/src/libexif/test' CC test-mem.o CCLD test-mem CC test-mnote.o CCLD test-mnote CC test-value.o CCLD test-value CC test-integers.o CCLD test-integers CC test-parse.o CCLD test-parse CC test-parse-from-data.o CCLD test-parse-from-data CC test-tagtable.o CCLD test-tagtable CC test-sorted.o CCLD test-sorted CC test-fuzzer.o CCLD test-fuzzer CC test-extract.o CCLD test-extract CC test-null.o CCLD test-null CC test-gps.o CCLD test-gps make[3]: Leaving directory '/src/libexif/test' make check-TESTS make[3]: Entering directory '/src/libexif/test' make[4]: Entering directory '/src/libexif/test' PASS: test-mem PASS: test-value PASS: test-integers PASS: test-parse PASS: test-parse-from-data PASS: test-tagtable PASS: test-sorted PASS: test-fuzzer PASS: test-null PASS: test-gps PASS: parse-regression.sh PASS: swap-byte-order.sh PASS: extract-parse.sh PASS: check-mnote.sh SKIP: check-failmalloc.sh ============================================================================ Testsuite summary for EXIF library 0.6.25.1 ============================================================================ # TOTAL: 15 # PASS: 14 # SKIP: 1 # XFAIL: 0 # FAIL: 0 # XPASS: 0 # ERROR: 0 ============================================================================ make[4]: Leaving directory '/src/libexif/test' make[3]: Leaving directory '/src/libexif/test' make[2]: Leaving directory '/src/libexif/test' make[1]: Leaving directory '/src/libexif/test' Making check in doc make[1]: Entering directory '/src/libexif/doc' make[1]: Nothing to be done for 'check'. make[1]: Leaving directory '/src/libexif/doc' Making check in binary-dist make[1]: Entering directory '/src/libexif/binary-dist' make[1]: Nothing to be done for 'check'. make[1]: Leaving directory '/src/libexif/binary-dist' Making check in contrib make[1]: Entering directory '/src/libexif/contrib' Making check in examples make[2]: Entering directory '/src/libexif/contrib/examples' make photographer thumbnail write-exif make[3]: Entering directory '/src/libexif/contrib/examples' CC photographer.o CCLD photographer CC thumbnail.o CCLD thumbnail CC write-exif.o CCLD write-exif make[3]: Leaving directory '/src/libexif/contrib/examples' make[2]: Leaving directory '/src/libexif/contrib/examples' make[2]: Entering directory '/src/libexif/contrib' make[2]: Nothing to be done for 'check-am'. make[2]: Leaving directory '/src/libexif/contrib' make[1]: Leaving directory '/src/libexif/contrib' make[1]: Entering directory '/src/libexif' make[1]: Nothing to be done for 'check-am'. make[1]: Leaving directory '/src/libexif' ```
1 parent df3d4b5 commit efc0296

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

projects/libexif/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ RUN apt-get update && apt-get install -y make autoconf automake libtool gettext
1919
RUN git clone --depth 1 https://github.com/libexif/libexif
2020
RUN git clone --depth 1 https://github.com/ianare/exif-samples
2121
WORKDIR libexif
22-
COPY exif_loader_fuzzer.cc exif_from_data_fuzzer.cc build.sh $SRC/
22+
COPY exif_loader_fuzzer.cc exif_from_data_fuzzer.cc run_tests.sh build.sh $SRC/

projects/libexif/run_tests.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
make check

0 commit comments

Comments
 (0)