head	1.2;
access;
symbols
	OPT_20031204:1.1.1.1 OPEN_POSIX_TESTSUITE:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2004.01.01.11.28.59;	author mtm;	state Exp;
branches;
next	1.1;

1.1
date	2003.12.31.09.14.34;	author mtm;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2003.12.31.09.14.34;	author mtm;	state Exp;
branches;
next	;


desc
@@


1.2
log
@o only build the tests in the default target
o s/make/gmake/g
o Bourne shell uses '=' to test for equality of strings, not '=='
@
text
@#! /bin/sh
# Copyright (c) 2002, Intel Corporation. All rights reserved.
# Created by:  julie.n.fleischer REMOVE-THIS AT intel DOT com
# This file is licensed under the GPL license.  For the full content
# of this license, see the COPYING file at the top level of this
# source tree.
#
# Use to build and run tests for a specific area
#
# $FreeBSD$

BASEDIR=conformance/interfaces

usage()
{
    cat <<EOF 
Usage: $0 [SIG|SEM|THR|TMR|MSG]

Build and run the tests for POSIX area specified by the 3 letter tag
in the POSIX spec

EOF
}

runtests()
{
	for test in `ls -d $1`; do
		POSIX_TARGET=$test gmake build-tests
		POSIX_TARGET=$test gmake run-tests
	done
}

case $1 in
  SIG) echo "Executing signals tests"
	runtests "$BASEDIR/sig*"
	runtests $BASEDIR/raise
	runtests $BASEDIR/kill
	runtests $BASEDIR/killpg
	runtests $BASEDIR/pthread_kill
	runtests $BASEDIR/pthread_sigmask
	;;
  SEM) echo "Executing semaphores tests"
	runtests "$BASEDIR/sem*"
	;;
  THR) echo "Executing threads tests"
	runtests "$BASEDIR/pthread_*"
	;;
  TMR) echo "Executing timers tests"
	runtests "$BASEDIR/timer_*"
	runtests "$BASEDIR/clock*"
	runtests $BASEDIR/nanosleep
	;;
  MSG) echo "Executing message queues tests"
	runtests "$BASEDIR/mq_*"
	;;
  *)	usage
	exit 1
	;;
esac

echo "****Tests Complete****"
@


1.1
log
@Initial revision
@
text
@d9 2
d28 2
a29 2
		POSIX_TARGET=$test make build-tests
		POSIX_TARGET=$test make run-tests
@


1.1.1.1
log
@Initial import of the Open Posix Test Suite (http://posixtest.sourceforge.net).
@
text
@@
