source: projects/ckbs/trunk/test.sh

Last change on this file was 356, checked in by bradbell, 11 years ago

merge vanderpol branch into the trunk

  • Property svn:executable set to *
File size: 699 bytes
Line 
1#! /bin/sh
2# -------------------------------------------------------------------
3# ckbs: Constrained Kalman-Bucy Smoother Program: Copyright (C) 2006
4# Authors: Bradlely Bell:        bradbell at washington dot edu
5#          Gianluigi Pillonetto: giapi at dei dot unipd dot it
6# License: GNU General Public License Version 2
7# -------------------------------------------------------------------
8#
9# exit on error
10set -e
11#
12for dir in example test
13do
14        cd $dir
15        cat << EOF > test.$$
16more off
17if all_ok
18        exit(0)
19else
20        exit(1)
21end
22EOF
23        echo "test.sh: running $dir/all_ok.m"
24        if ! octave --silent test.$$
25        then
26                rm test.$$
27                echo "test.sh: $dir/all_ok failed"
28                exit 1
29        fi
30        rm test.$$
31        cd ..
32done
33exit 0
Note: See TracBrowser for help on using the repository browser.