source: remit/finance_core/reporting_tests.sh @ ae83758

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

Improved testing

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