source: remit/finance_core/reporting_tests.sh @ 83d9608

client
Last change on this file since 83d9608 was 83d9608, checked in by Alex Dehnert <adehnert@…>, 14 years ago

Add test for reporting

aggregate and annotate should return the same results, so add an automatic
test to verify that they do.

  • Property mode set to 100644
File size: 389 bytes
Line 
1#!/bin/bash
2
3baseurl=${1:-http://localhost:8001/finance_core/reporting/?term=2010-spring}
4dirname=$(mktemp -d /tmp/remit.XXXXXX)
5methods="annotate aggregate"
6cd $dirname
7wget -O default.html "$baseurl"
8for method in $methods; do
9    wget -O $method.html  "$baseurl&compute_method=$method"
10done
11for method in $methods; do
12    diff -q --report-identical-files default.html $method.html
13done
Note: See TracBrowser for help on using the repository browser.