Skip to content

Commit d1c4765

Browse files
committed
working on valgrind script
1 parent 0c1dc13 commit d1c4765

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#in ubuntu:noble, apt-get installs OpenEXR v3
2-
FROM ubuntu:noble
2+
#FROM ubuntu:noble
33
#in ubuntu:jammy, apt-get installs OpenEXR v2
44
#FROM ubuntu:jammy
5+
FROM ubuntu:latest
56

67
RUN apt-get update
78

@@ -14,7 +15,7 @@ RUN apt-get -y install g++
1415
RUN apt-get -y install git
1516
RUN apt-get -y install valgrind
1617

17-
# install optional openjph dependencies
18+
# install optional openjph ojph_compress and ojph_expand dependencies
1819
RUN apt-get -y install libtiff-dev
1920
#libilmbase-dev is needed for OpenEXR v2 but not for OpenEXR v3
2021
#RUN apt-get -y install libilmbase-dev

tests/run_valgrind_ojph_expand.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
set -x
4+
set -u
5+
6+
PATH_TO_EXECUTABLE="../bin/"
7+
INPUT_FILENAME="SPARKS_ACES_06822.exr.reversible-true.colour-transf-false.j2c"
8+
OUTPUT_FILENAME="SPARKS_ACES_06822.exr.reversible-true.colour-transf-false.j2c.exr"
9+
ADDITIONAL_COMMAND_LINE_OPTIONS=""
10+
11+
valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ${PATH_TO_EXECUTABLE} -i ${INPUT_FILENAME} -o ${OUTPUT_FILENAME} ${ADDITIONAL_COMMAND_LINE_OPTIONS}
12+
13+

0 commit comments

Comments
 (0)