Commits

shl...@6a489e09-e8c2-0310-a3fb-a128a961c0b2  committed a967356

Converted test "exit"'s to "exit 1"'s so they will fail.

Fixed a broken page in the credit test.

  • Participants
  • Parent commits 9d9c073

Comments (0)

Files changed (6)

File installer/tests/body-dir/test1.bash

 output_file=$test_dir-output/index.html
 if ! tidy -errors $output_file ; then
     echo "File does not validate!" 1>&2 
-    exit 
+    exit 1
 fi
 
 body_str="<body>"
 
 if ! grep -F "$body_str" $output_file > /dev/null ; then
     echo "File does not contain the correct body!" 1>&2
-    exit
-fi
+    exit 1
+fi 
 
 }
 

File installer/tests/credit/template/Contents.pm

     [
         {
             'url' => "two.html",
-            'title' => "Error",
+            'title' => "Child Node",
         },
     ],
     'images' =>

File installer/tests/credit/template/src/two.html.wml

 #include 'template.wml'
 
-<ol
-
+<ol>
 <li>
-Hello.
+Hi there!
 </li>
 </ol>

File installer/tests/credit/test1.bash

 local credit
 credit="$1"
 shift
-echo "Test No. $t : Theme=$theme credit=$dir"
+echo "Test No. $t : Theme=$theme credit=$credit"
 
 test_dir=testhtml$t
 quadp setup $test_dir --dest-dir=`pwd`/${test_dir}-output
     sed -i '1 { i\
 <set-var avoid_credit="yes" />\
 
-}' template.wml
+}' "$test_dir/template.wml"
 fi
 
 (cd $test_dir && quadp render -a)
 output_file=$test_dir-output/index.html
-if ! tidy -errors $output_file ; then
-    echo "File does not validate!" 1>&2 
-    exit 1
-fi
 
 if $credit ; then
     if ! grep -F "Made with Quad-Pres" $output_file ; then

File installer/tests/html-correctness/test1.bash

 output_file=$test_dir-output/index.html
 if ! tidy -errors $output_file ; then
     echo "File does not validate!" 1>&2 
-    exit 
+    exit 1
 fi
 }
 

File installer/tests/lang-settings/test1.bash

 output_file=$test_dir-output/index.html
 if ! tidy -errors $output_file ; then
     echo "File does not validate!" 1>&2 
-    exit 
+    exit 1
 fi
 if ! perl ../verify-lang-settings.pl $wanted < $output_file ; then
     echo "File has improper language encodings" 1>&2 
-    exit
+    exit 1
 fi
 }