Skip to content

Commit

Permalink
working on valgrind script
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldsmith committed Jan 15, 2025
1 parent 0c1dc13 commit d1c4765
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#in ubuntu:noble, apt-get installs OpenEXR v3
FROM ubuntu:noble
#FROM ubuntu:noble
#in ubuntu:jammy, apt-get installs OpenEXR v2
#FROM ubuntu:jammy
FROM ubuntu:latest

RUN apt-get update

Expand All @@ -14,7 +15,7 @@ RUN apt-get -y install g++
RUN apt-get -y install git
RUN apt-get -y install valgrind

# install optional openjph dependencies
# install optional openjph ojph_compress and ojph_expand dependencies
RUN apt-get -y install libtiff-dev
#libilmbase-dev is needed for OpenEXR v2 but not for OpenEXR v3
#RUN apt-get -y install libilmbase-dev
Expand Down
13 changes: 13 additions & 0 deletions tests/run_valgrind_ojph_expand.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -x
set -u

PATH_TO_EXECUTABLE="../bin/"
INPUT_FILENAME="SPARKS_ACES_06822.exr.reversible-true.colour-transf-false.j2c"
OUTPUT_FILENAME="SPARKS_ACES_06822.exr.reversible-true.colour-transf-false.j2c.exr"
ADDITIONAL_COMMAND_LINE_OPTIONS=""

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}


0 comments on commit d1c4765

Please sign in to comment.