1#!/bin/sh - 2# 3# $Id: chk.get,v 12.0 2004/11/17 03:44:56 bostic Exp $ 4# 5# Build a program that calls the getters. 6 7[ -f ../libdb.a ] || (cd .. && make libdb.a) || { 8 echo 'FAIL: unable to find or build libdb.a' 9 exit 1 10} 11 12if cc -g -Wall -I.. t.c ../libdb.a -o t; then 13 : 14else 15 echo "FAIL: unable to compile test program t.c" 16 exit 1 17fi 18 19if ./t; then 20 : 21else 22 echo "FAIL: test program failed" 23 exit 1 24fi 25 26exit 0 27