fix_958_usr_bin_env_bash_test

v0.27.3
Robin Mills 6 years ago committed by Luis Diaz
parent 50e9dd964a
commit c12f91f90f

1
.gitignore vendored

@ -10,6 +10,7 @@
.idea/* .idea/*
cmake-* cmake-*
build* build*
asan_build*
po/POTFILES po/POTFILES
po/remove-potcdate.sed po/remove-potcdate.sed
po/stamp-po po/stamp-po

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver to run the addmoddel sample program # Test driver to run the addmoddel sample program
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver with regression tests for bugfixes # Test driver with regression tests for bugfixes
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# XMP parser test driver # XMP parser test driver
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
@ -207,11 +207,11 @@ fi
platform=$(runTest exiv2 -vV 2>/dev/null | grep platform=) platform=$(runTest exiv2 -vV 2>/dev/null | grep platform=)
if [ "$platform" == "platform=windows" ]; then if [ "$platform" == "platform=windows" ]; then
runTest exiv2 -PEkycv v.jpg | sed -E -e 's#17 19:10:22#18 02:10:22#g' runTest exiv2 -PEkycv v.jpg | sed -E -e 's#17 19:10:22#18 02:10:22#g'
else else
runTest exiv2 -PEkycv v.jpg runTest exiv2 -PEkycv v.jpg
fi fi
runTest exiv2 -pi v.jpg runTest exiv2 -pi v.jpg
# 16) https://github.com/Exiv2/exiv2/issues/521 # 16) https://github.com/Exiv2/exiv2/issues/521
echo echo
echo Testcase 16 echo Testcase 16

@ -1,4 +1,4 @@
#! /bin/sh #!/usr/bin/env bash
# Test driver for CRW file operations # Test driver for CRW file operations
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for CurlIO # Test driver for CurlIO
source ./functions.source source ./functions.source
@ -76,7 +76,7 @@ RemoteIOTest()
if [[ "$USE_CURL" == *http* ]]; then if [[ "$USE_CURL" == *http* ]]; then
# test connection # test connection
printf 'http test connection ' printf 'http test connection '
TEST_CON=$("$bin"/conntest http://$EXIV2_AWSUBUNTU_HOST/$testfile) TEST_CON=$("$bin"/conntest http://$EXIV2_AWSUBUNTU_HOST/$testfile)
if [[ "$TEST_CON" == OK* ]]; then if [[ "$TEST_CON" == OK* ]]; then
errors=0 errors=0
printf 'OK\nHTTP IO ' printf 'OK\nHTTP IO '

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for previews # Test driver for previews
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for EPS files # Test driver for EPS files
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for exifdata copy construction and assignment unit tests # Test driver for exifdata copy construction and assignment unit tests
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for exiv2 utility tests # Test driver for exiv2 utility tests
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for geotag # Test driver for geotag
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for http/https # Test driver for http/https
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for httptest and httpIo # Test driver for httptest and httpIo
source ./functions.source source ./functions.source
@ -36,12 +36,12 @@ httpIoTest()
testfile="conntest.jpg" testfile="conntest.jpg"
iopngfiles+=(remoteio{1..5}.png) iopngfiles+=(remoteio{1..5}.png)
iojpgfiles+=(remoteio{6..10}.jpg) iojpgfiles+=(remoteio{6..10}.jpg)
# test connection (basic sanity test) # test connection (basic sanity test)
printf 'http test connection ' printf 'http test connection '
TEST_CON=$("$bin"/conntest http://$EXIV2_AWSUBUNTU_HOST/$testfile) TEST_CON=$("$bin"/conntest http://$EXIV2_AWSUBUNTU_HOST/$testfile)
if [[ "$TEST_CON" == OK* ]]; then if [[ "$TEST_CON" == OK* ]]; then
#Tests for httpIo #Tests for httpIo
printf 'OK\nHTTP IO ' printf 'OK\nHTTP IO '
for name in ${iopngfiles[@]}; do for name in ${iopngfiles[@]}; do
httpIoTest "http://$EXIV2_AWSUBUNTU_HOST/$name" httpIoTest "http://$EXIV2_AWSUBUNTU_HOST/$name"

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for exiv2.exe ICC support (-pS, -pC, -eC, -iC) # Test driver for exiv2.exe ICC support (-pS, -pC, -eC, -iC)
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for image file i/o # Test driver for image file i/o
# ********************************************************************** # **********************************************************************

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for image file i/o # Test driver for image file i/o
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for Iptc metadata # Test driver for Iptc metadata
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# test for ISOs which follow Annex G of EXIF 2.3 spec, i.e. ISOs, # test for ISOs which follow Annex G of EXIF 2.3 spec, i.e. ISOs,
# which cannot be represented by Exif.Photo.ISOSpeedRatings due to # which cannot be represented by Exif.Photo.ISOSpeedRatings due to
# being larger than 65k # being larger than 65k

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for write unit tests to build Exif metadata from scratch # Test driver for write unit tests to build Exif metadata from scratch
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Mini test-driver for path utility functions # Mini test-driver for path utility functions
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for previews # Test driver for previews
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for SshIo # Test driver for SshIo
source ./functions.source source ./functions.source
@ -73,7 +73,7 @@ SshIOTest()
# test connection # test connection
printf 'sftp test connection ' printf 'sftp test connection '
TEST_CON=$("$bin"/conntest sftp://"$EXIV2_AWSUBUNTU_USERNAME"_sftp:$EXIV2_AWSUBUNTU_PASSWORD@$EXIV2_AWSUBUNTU_HOST/var/www/$testfile) TEST_CON=$("$bin"/conntest sftp://"$EXIV2_AWSUBUNTU_USERNAME"_sftp:$EXIV2_AWSUBUNTU_PASSWORD@$EXIV2_AWSUBUNTU_HOST/var/www/$testfile)
if [[ "$TEST_CON" == OK* ]]; then if [[ "$TEST_CON" == OK* ]]; then
# SFTP protocol # SFTP protocol
errors=0 errors=0
printf 'OK\nSFTP READ ' printf 'OK\nSFTP READ '
@ -93,7 +93,7 @@ SshIOTest()
# test connection # test connection
printf 'ssh test connection ' printf 'ssh test connection '
TEST_CON=$("$bin"/conntest ssh://$EXIV2_AWSUBUNTU_USERNAME:$EXIV2_AWSUBUNTU_PASSWORD@$EXIV2_AWSUBUNTU_HOST/sshtest/$testfile) TEST_CON=$("$bin"/conntest ssh://$EXIV2_AWSUBUNTU_USERNAME:$EXIV2_AWSUBUNTU_PASSWORD@$EXIV2_AWSUBUNTU_HOST/sshtest/$testfile)
if [[ "$TEST_CON" == OK* ]]; then if [[ "$TEST_CON" == OK* ]]; then
# SSH protocol # SSH protocol
errors=0 errors=0
printf 'OK\nSSH IO ' printf 'OK\nSSH IO '

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for stdin # Test driver for stdin
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for tests of stringToLong/Float/Rational # Test driver for tests of stringToLong/Float/Rational
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
msvc=$1 msvc=$1
test=$2 test=$2

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for exiv2.exe --verbose --version # Test driver for exiv2.exe --verbose --version
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for video files # Test driver for video files
# #
# video-asf.wmv http://www.educationalquestions.com/video/DLP_PART_2_768k.wmv # video-asf.wmv http://www.educationalquestions.com/video/DLP_PART_2_768k.wmv

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for webp # Test driver for webp
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for the write unit tests # Test driver for the write unit tests
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for write video # Test driver for write video
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Test driver for write unit tests to build Exif metadata from scratch # Test driver for write unit tests to build Exif metadata from scratch
source ./functions.source source ./functions.source

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# XMP parser test driver # XMP parser test driver
source ./functions.source source ./functions.source

Loading…
Cancel
Save