~wasora/wasora/trunk

« back to all changes in this revision

Viewing changes to examples/test-mathace.sh

  • Committer: jeremy theler
  • Date: 2014-07-16 02:23:42 UTC
  • Revision ID: jeremy@tom-20140716022342-og3wibkwyeodcn1j
- added some missing files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
if [ -e ./runtest.sh ]; then
 
3
 . ./runtest.sh
 
4
elif [ -e examples/runtest.sh ]; then
 
5
 . examples/runtest.sh
 
6
else
 
7
 echo wrong PWD
 
8
 exit 77
 
9
fi
 
10
 
 
11
${wasorabin} ${testdir}mathace.was > mathace.dat
 
12
outcome=$?
 
13
 
 
14
if [ "x`which gnuplot`" != "x" ]; then
 
15
 if [ "x`uname | cut -c-6`" = "xCYGWIN" ]; then
 
16
  if [ "x`ps -e | grep X | wc -l`" = "x0" ]; then
 
17
   XWin.exe -multiwindow -clipboard -silent-dup-error > /dev/null &
 
18
   sleep 2
 
19
  fi
 
20
  export DISPLAY=:0.0
 
21
 fi
 
22
 gnuplot -p -e "plot 'mathace.dat' pt 0 ti ''"
 
23
fi
 
24
 
 
25
 
 
26
exit $outcome