Now supporting feeds with newest items on bottom.
[agg.git] / tests_usr / item_order_ascending.sh
blob806498bd1bd82de7f895554fd0386cb01ad29f26
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_exists() { assert_exists feed; }
12 feed_empty() { assert_empty feed; }
13 feed_date() { assert_date feed 1286052203; }
14 item1_exists() { assert_exists "feed/Item 1"; }
15 item2_exists() { assert_exists "feed/Item 2"; }
17 mkdir feed
18 touch -md "2010-04-02 12:09:59.000000000 +0200" feed
20 echo "Running agg on feed with item order ascending..."
21 agg_run item_order_ascending.rss
22 t feed_exists
23 t feed_date
24 t item1_exists
25 t item2_exists