Now failing cleanly when feed has two titles.
[agg.git] / tests_usr / feed_broken.sh
blobac8d7ac43c0c20bba58e7dc5aa38aafabc5ef2fa
1 #!/bin/sh
2 # Copyright (C) 2011 Andreas Waidler <arandes@programmers.at>
4 # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
5 # TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
7 # 0. You just DO WHAT THE FUCK YOU WANT TO.
9 . ./libtests.sh
11 feed_missing() { assert_missing feed; }
12 feed_exists() { assert_exists feed; }
13 item_missing() { assert_missing feed/item; }
15 echo "Running agg on feed without title..."
16 BEFORE="`ls`"
17 agg_fail no_feed_title.rss
18 [ "$BEFORE" != "`ls`" ] && exit 1
20 echo "Running agg on feed with title after items..."
21 agg_fail feed_title_after_items.rss
22 t feed_missing
24 echo "Running agg on feed with two titles..."
25 agg_fail feed_two_titles.rss
26 t feed_missing