Items will only be overwritten if date > mtime.
[agg.git] / tests_usr / item_update_ascending.sh
blob8f1d713ce5325b0114afab61c44c5d3e66431515
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_date() { assert_date feed 1286052203; }
13 item_exists() { assert_exists feed/item; }
14 item_date() { assert_date feed/item 1286052203; }
15 item_desc() { assert_value feed/item desc second; }
18 echo "Running agg on feed containing updated item (ascending order)..."
19 agg_run item_update_ascending.rss
20 t feed_exists
21 t feed_date
22 t item_exists
23 t item_desc
24 t item_date