source: remit/finance_core/reporting_tests.sh @ 1c178d5

client
Last change on this file since 1c178d5 was d1692e8, checked in by Alex Dehnert <adehnert@…>, 15 years ago

Finally completely punt the old-style annotate

  • Property mode set to 100644
File size: 550 bytes
Line 
1#!/bin/bash
2
3methods="annotate aggregate"
4baseurl=${1:-http://localhost:8001/finance_core/reporting/?a=b}
5baseurls="$baseurl&term=2010-spring $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 -q -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.