From 79e03e09b70071146cbb1d2d4543788450adc586 Mon Sep 17 00:00:00 2001 From: Antoine Date: Fri, 25 Jan 2019 20:55:03 -0500 Subject: [PATCH] Fixed compilation of generate_test_files.sh on linux. --- test/bin2cpp_unittest/generate_test_files.bat.in | 2 ++ test/bin2cpp_unittest/generate_test_files.sh.in | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/bin2cpp_unittest/generate_test_files.bat.in b/test/bin2cpp_unittest/generate_test_files.bat.in index d9e2d45..4a080ff 100755 --- a/test/bin2cpp_unittest/generate_test_files.bat.in +++ b/test/bin2cpp_unittest/generate_test_files.bat.in @@ -165,6 +165,8 @@ mkdir %OUTDIR% 1>NUL 2>NUL set TEST_NAME=testDir01 set OUTDIR=.\generated_files\%TEST_NAME% mkdir %OUTDIR% 1>NUL 2>NUL +mkdir %OUTDIR%\images 1>NUL 2>NUL +mkdir %OUTDIR%\sources 1>NUL 2>NUL @TESTFILEGENERATOR_TARGET_FILE@ --file=%OUTDIR%\images\IMG_0001.jpg --size=1010 --fill=random --seed=1 @TESTFILEGENERATOR_TARGET_FILE@ --file=%OUTDIR%\images\IMG_0002.jpg --size=1020 --fill=random --seed=2 @TESTFILEGENERATOR_TARGET_FILE@ --file=%OUTDIR%\images\IMG_0003.jpg --size=1030 --fill=random --seed=3 diff --git a/test/bin2cpp_unittest/generate_test_files.sh.in b/test/bin2cpp_unittest/generate_test_files.sh.in index e9d7ab4..572f8fb 100755 --- a/test/bin2cpp_unittest/generate_test_files.sh.in +++ b/test/bin2cpp_unittest/generate_test_files.sh.in @@ -163,6 +163,8 @@ mkdir -p ${OUTDIR} export TEST_NAME=testDir01 export OUTDIR=./generated_files/$TEST_NAME mkdir -p ${OUTDIR} +mkdir -p ${OUTDIR}/images +mkdir -p ${OUTDIR}/sources @TESTFILEGENERATOR_TARGET_FILE@ --file=$OUTDIR/images/IMG_0001.jpg --size=1010 --fill=random --seed=1 @TESTFILEGENERATOR_TARGET_FILE@ --file=$OUTDIR/images/IMG_0002.jpg --size=1020 --fill=random --seed=2 @TESTFILEGENERATOR_TARGET_FILE@ --file=$OUTDIR/images/IMG_0003.jpg --size=1030 --fill=random --seed=3