File: extest

package info (click to toggle)
xbae 4.60.4-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,020 kB
  • sloc: ansic: 22,089; sh: 8,293; makefile: 522; tcl: 1
file content (35 lines) | stat: -rwxr-xr-x 670 bytes parent folder | download | duplicates (7)
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
32
33
34
35
#! /bin/sh
# Simple shell script to run the Xbae examples
#
# It also sets the required environment variables to run
# the example programs properly
#

cd `dirname $0`
SRCDIR=`pwd`/../src


# Now cycle through the list of directories and example programs
if [ -s "$1" ]; then
    dirlist="$*"
else
    dirlist="*"
fi

for i in $dirlist
do
    if [ -d $i -a -f $i/Makefile ]
    then
    	echo "running tests in: $i" 
	cd $i
        EXAMPLES=`grep "noinst_PROGRAMS =" <Makefile | sed -e "s/noinst_PROGRAMS =//" | grep -v '$(EXEEXT)' | grep -v "^#"`
	for j in $EXAMPLES
	  do
	  echo " $j"
	  ../../libtool --mode=execute ./$j
	  done
	cd ..
    fi
done

echo "Finished!"