comparison tests/test-hgweb-filelog.t @ 25472:4d2b9b304ad0

tests: drop explicit $TESTDIR from executables $TESTDIR is added to the path, so this is superfluous. Also, inconsistent use of quotes means we might have broken on tests with paths containing spaces.
author Matt Mackall <mpm@selenic.com>
date Mon, 08 Jun 2015 14:44:30 -0500
parents c9f382c8233a
children 1cac419ab831
comparison
equal deleted inserted replaced
25470:378a8e700e02 25472:4d2b9b304ad0
129 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log 129 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
130 $ cat hg.pid >> $DAEMON_PIDS 130 $ cat hg.pid >> $DAEMON_PIDS
131 131
132 tip - two revisions 132 tip - two revisions
133 133
134 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/tip/a') 134 $ (get-with-headers.py localhost:$HGPORT 'log/tip/a')
135 200 Script output follows 135 200 Script output follows
136 136
137 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 137 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
138 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> 138 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
139 <head> 139 <head>
246 </html> 246 </html>
247 247
248 248
249 second version - two revisions 249 second version - two revisions
250 250
251 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/4/a') 251 $ (get-with-headers.py localhost:$HGPORT 'log/4/a')
252 200 Script output follows 252 200 Script output follows
253 253
254 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 254 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
255 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> 255 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
256 <head> 256 <head>
363 </html> 363 </html>
364 364
365 365
366 first deleted - one revision 366 first deleted - one revision
367 367
368 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/3/a') 368 $ (get-with-headers.py localhost:$HGPORT 'log/3/a')
369 200 Script output follows 369 200 Script output follows
370 370
371 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 371 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
372 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> 372 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
373 <head> 373 <head>
472 </html> 472 </html>
473 473
474 474
475 first version - one revision 475 first version - one revision
476 476
477 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/1/a') 477 $ (get-with-headers.py localhost:$HGPORT 'log/1/a')
478 200 Script output follows 478 200 Script output follows
479 479
480 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 480 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
481 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> 481 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
482 <head> 482 <head>
581 </html> 581 </html>
582 582
583 583
584 before addition - error 584 before addition - error
585 585
586 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/0/a') 586 $ (get-with-headers.py localhost:$HGPORT 'log/0/a')
587 404 Not Found 587 404 Not Found
588 588
589 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 589 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
590 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> 590 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
591 <head> 591 <head>
647 647
648 [1] 648 [1]
649 649
650 should show base link, use spartan because it shows it 650 should show base link, use spartan because it shows it
651 651
652 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/tip/c?style=spartan') 652 $ (get-with-headers.py localhost:$HGPORT 'log/tip/c?style=spartan')
653 200 Script output follows 653 200 Script output follows
654 654
655 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 655 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
656 <html> 656 <html>
657 <head> 657 <head>
756 </html> 756 </html>
757 757
758 758
759 rss log 759 rss log
760 760
761 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'rss-log/tip/a') 761 $ (get-with-headers.py localhost:$HGPORT 'rss-log/tip/a')
762 200 Script output follows 762 200 Script output follows
763 763
764 <?xml version="1.0" encoding="ascii"?> 764 <?xml version="1.0" encoding="ascii"?>
765 <rss version="2.0"> 765 <rss version="2.0">
766 <channel> 766 <channel>
787 </channel> 787 </channel>
788 </rss> 788 </rss>
789 789
790 atom log 790 atom log
791 791
792 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'atom-log/tip/a') 792 $ (get-with-headers.py localhost:$HGPORT 'atom-log/tip/a')
793 200 Script output follows 793 200 Script output follows
794 794
795 <?xml version="1.0" encoding="ascii"?> 795 <?xml version="1.0" encoding="ascii"?>
796 <feed xmlns="http://www.w3.org/2005/Atom"> 796 <feed xmlns="http://www.w3.org/2005/Atom">
797 <id>http://*:$HGPORT/atom-log/tip/a</id> (glob) 797 <id>http://*:$HGPORT/atom-log/tip/a</id> (glob)