~ubuntu-branches/ubuntu/precise/dbacl/precise

« back to all changes in this revision

Viewing changes to src/tests/html-alt.shin

  • Committer: Bazaar Package Importer
  • Author(s): Clint Adams
  • Date: 2005-05-07 12:59:53 UTC
  • Revision ID: james.westby@ubuntu.com-20050507125953-xzy2bwkb2qamglwm
Tags: upstream-1.9
ImportĀ upstreamĀ versionĀ 1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# test -T html:links switch
 
3
PATH=/bin:/usr/bin
 
4
DBACL=$TESTBIN/dbacl
 
5
 
 
6
prerequisite_command() {
 
7
    type $2 2>&1 > /dev/null
 
8
    if [ 0 -ne $? ]; then
 
9
        echo "$1: $2 not found, test will be skipped"
 
10
        exit 77
 
11
    fi
 
12
}
 
13
 
 
14
prerequisite_command $0 diff
 
15
prerequisite_command $0 tr
 
16
 
 
17
DBACL_PATH="`pwd`/`basename $0 .sh`_`date +"%Y%m%dT%H%M%S"`"
 
18
export DBACL_PATH
 
19
 
 
20
mkdir "$DBACL_PATH"
 
21
 
 
22
cat sample.spam-3 \
 
23
    | $DBACL -R -D -T html -T html:alt \
 
24
    | tr -s '[ \t\r\n]' \
 
25
    > "$DBACL_PATH/out"
 
26
 
 
27
diff verify.html-alt "$DBACL_PATH/out"
 
28
 
 
29
RESULT=$?
 
30
rm -rf "$DBACL_PATH"
 
31
 
 
32
exit $RESULT
 
 
b'\\ No newline at end of file'