#!/usr/bin/csh -f # Script for testing all examples with the IBM xlC compiler (AIX) # (Assuming all example files are renamed using extension .C instead of .cpp) # Script for testing all examples programs with the GNU C++ Compiler set Compile = "xlC -I/dept/cs/include/stl" echo " " echo "Testing ex01-01.C" $Compile ex01-01.C if ($status == 0) then a.out /usr/bin/rm a.out endif echo " " echo "Testing ex01-02.C" $Compile ex01-02.C if ($status == 0) then a.out /usr/bin/rm a.out endif echo " " echo "Testing ex01-03.C" $Compile ex01-03.C if ($status == 0) then a.out /usr/bin/rm a.out endif echo " " echo "Testing ex01-04.C" $Compile ex01-04.C if ($status == 0) then a.out /usr/bin/rm a.out endif echo " " echo "Testing ex02-01.C" $Compile ex02-01.C if ($status == 0) then a.out /usr/bin/rm a.out endif echo " " echo "Testing ex02-02.C" $Compile ex02-02.C if ($status == 0) then a.out ex17-01.out /usr/bin/rm shape.o /usr/bin/rm screen.o /usr/bin/rm a.out endif