head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2005.05.31.14.13.01;	author harti;	state dead;
branches;
next	1.1;

1.1
date	2005.04.28.13.20.46;	author harti;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Change the test infrastructure so that tests are easier to maintain and
so that make(1) will run in an almost clean environment and enhance the
description of the test infrastructure.

Add the ability to have multiple tests carried out per test script.

Give some tests more meaningful names.

Fix the usage message from the test scripts.

Make it possible to pass several commands to the test scripts like:
'sh test.t setup run compare clean'.
@
text
@# $FreeBSD: src/tools/regression/usr.bin/make/archives/t1/Makefile,v 1.1 2005/04/28 13:20:46 harti Exp $
# This test checks the code reading archive files. The archive file
# is a BSD4.4 file with __.SYMTAB and #1/N long file names.
#
# The modification of the archive consists in slashes appended to short names.
#

all:
	-@@make test_ok1 && echo "1 ok"
	-@@make test_ok2 && echo "2 ok"
	-@@make test_ok3 && echo "3 ok"
	-@@make test_ok4 && echo "4 ok"
	-@@make test_fail5 || echo "5 ok"
	-@@make test_fail6 || echo "6 ok"
	-@@make test_fail7 || echo "7 ok"

#############################################################################

test_ok1: libtest.a(short.o)
	@@:

libtest.a(short.o): ood
	@@:

#############################################################################

test_ok2: libtest.a(exactly15char.o)
	@@:

libtest.a(exactly15char.o): ood
	@@:

#############################################################################

test_ok3: libtest.a(exactly16chars.o)
	@@:

libtest.a(exactly16chars.o): ood
	@@:

#############################################################################

test_ok4: libtest.a(verylongobjectname.o)
	@@:

libtest.a(verylongobjectname.o): ood
	@@:

#############################################################################

# Truncated to 16 characters
test_fail5: libtest.a(verylongobjectna)
	@@:

#############################################################################

# Truncated to 15 characters
test_fail6: libtest.a(verylongobjectn)
	@@:

#############################################################################

test_fail7: libtest.a(\#1/20)
	@@:

ood:
@


1.1
log
@Add an initial regression test suite for make(1).

Submitted by:	Max Okumoto <okumotu@@ucsd.edu> (partly, initial version)
@
text
@d1 1
a1 1
# $FreeBSD$
@

