Add testfiles to serve

This commit is contained in:
2019-06-30 10:01:08 +02:00
parent 4d90d18660
commit c63e5a8523
13 changed files with 143 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ function TestGetHeader()
if [ -n "$headerContentType" ]; then
echo "SUCCESS HEAD $1"
else
echo "FAILURE HEAD $1 contains bad MIME type (expected <Content-Type: $2> but got <$headerContentType>)"
echo "FAILURE HEAD $1 contains bad MIME type (expected <Content-Type: $2>"
fi
rm $curlHeaderOutputFile
@@ -32,7 +32,8 @@ echo "*********"
TestHEAD "index.html" 'text/html'
TestHEAD "robedude.png" 'image/png'
TestHEAD "hope.jpg" 'image/jpeg'
TestHEAD "nevada.mp3" 'audio/mpeg3'
TestHEAD "ouroboros-by-kevin-macleod.mp3" 'audio/mpeg3'
TestHEAD "file_example_MP4_480_1_5MG.mp4" 'video/mp4'
TestHEAD "index.css" 'text/css'
TestHEAD "test.js" 'application/javascript'
TestHEAD "subdir/index.html" 'text/html'