Commits

Anonymous committed 73a2fab

Removed the credit bash test that was replaced with a Perl+TAP test.

  • Participants
  • Parent commits ae3ff02

Comments (0)

Files changed (5)

File installer/tests/Makefile

 all:
 
-BASH_TESTS = credit gen-hd-html template-toolkit bolded-nav-links update-images
+BASH_TESTS = gen-hd-html template-toolkit bolded-nav-links update-images
 
 BASH_TESTS_TARGETS = $(addprefix test-,$(BASH_TESTS))
 

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

-package Contents;
-
-use strict;
-
-my $contents =
-{
-    'title' => "My Lecture Title",
-    'subs' =>
-    [
-        {
-            'url' => "two.html",
-            'title' => "Child Node",
-        },
-    ],
-    'images' =>
-    [
-        'style.css',
-    ],
-};
-
-sub get_contents
-{
-    return $contents;
-}
-
-1;

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

-#include 'template.wml'
-
-<h1><font color="red">FILL IN</font></h1>

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

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

File installer/tests/credit/test1.bash

-#!/bin/bash
-
-# Verify the HTML correctness for all the themes
-
-if [ ! -e in-out ] ; then
-    mkdir in-out
-else
-    rm -fr in-out/*
-fi
-cd "in-out"
-
-# Check that the default charset and lang are OK.
-t=0
-
-perform_test()
-{
-let t++
-local theme
-theme="$1"
-shift
-local credit
-credit="$1"
-shift
-echo "Test No. $t : Theme=$theme credit=$credit"
-
-test_dir=testhtml$t
-quadp setup $test_dir --dest-dir=`pwd`/${test_dir}-output
-sed -i "s/-DTHEME=[-a-zA-Z_]\+/-DTHEME=${theme}/" $test_dir/.wmlrc
-
-cp -R ../template/Contents.pm $test_dir
-cp -R ../template/src/*.html.wml $test_dir/src
-
-if ! $credit ; then
-    sed -i '1 { i\
-<set-var qp_avoid_credit="yes" />\
-
-}' "$test_dir/template.wml"
-fi
-
-(cd $test_dir && quadp render -a)
-output_file=$test_dir-output/index.html
-
-if $credit ; then
-    if ! grep -F "Made with Quad-Pres" $output_file ; then
-        echo "There is no credit notice!" 1>&2
-        exit 1
-    fi
-else
-    if grep -F "Made with Quad-Pres" $output_file ; then
-        echo "There is a credit notice while there should not be!" 1>&2
-        exit 1
-    fi
-fi
-
-if grep -F "Made with Quad-Pres" $test_dir-output/two.html ; then
-    echo "There is a credit notice while there should not be in the non-root file" 1>&2
-    exit 1
-fi
-}
-
-for theme in $(cd ../../installation/share/quad-pres/wml/themes/ && ls) ; do
-    for credit in "true" "false" ; do
-        perform_test "$theme" "$credit"
-    done
-done
-