comparison tests/test-highlight @ 6355:3b841c189ab7

tests: add highlight extension tests
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Sat, 22 Mar 2008 20:16:30 +0100
parents
children 938319418d8c d1c82127573e
comparison
equal deleted inserted replaced
6354:57a47660b319 6355:3b841c189ab7
1 #!/bin/sh
2
3 "$TESTDIR/hghave" pygments || exit 80
4
5 cat <<EOF >> $HGRCPATH
6 [extensions]
7 hgext.highlight =
8 EOF
9
10 hg init test
11 cd test
12 cp $TESTDIR/get-with-headers.py ./
13 hg ci -Ama
14
15 echo % hg serve
16 hg serve -p $HGPORT -d -n test --pid-file=hg.pid -A access.log -E errors.log
17 cat hg.pid >> $DAEMON_PIDS
18
19 echo % hgweb filerevision
20 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/get-with-headers.py') \
21 | sed "s/[0-9]* years ago/long ago/g"
22
23 echo % hgweb fileannotate
24 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/annotate/tip/get-with-headers.py') \
25 | sed "s/[0-9]* years ago/long ago/g"
26
27 echo % errors encountered
28 cat errors.log
29