File: prefs.sh

package info (click to toggle)
saods9 7.3.2%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 22,044 kB
  • ctags: 21,414
  • sloc: cpp: 66,406; tcl: 60,491; ansic: 19,507; sh: 9,996; xml: 1,375; makefile: 892; perl: 68
file content (31 lines) | stat: -rwxr-xr-x 384 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
echo "Prefs Tests"

doit() {
    if [ `xpaaccess ds9` = no ]; then
	ds9&

	i=1
	while [ "$i" -le 30 ]; do
	    sleep 2
	    if [ `xpaaccess ds9` = yes ]; then
		break
	    fi
	    
	    i=`expr $i + 1`
	done
    fi
}

echo
echo "*** prefs.sh ***"

for f in prefs/*.prf
do
echo "Testing $f"
rm -f ~/.ds9.prf
cp $f ~/.ds9.prf
doit
xpaset -p ds9 exit
rm -f ~/.ds9.prf
echo "PASSED"
done