blob: 57df3a7b85face9d2dd40d6e38b3ad2cf8925006 (
plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# $NetBSD: spec,v 1.2 2004/08/28 02:21:54 jlam Exp $
#
# pkgfail regression test
# spec file
#
# A spec file is sourced by the pkg_regress script. The following variables
# control the basic aspects of the individual test.
#
# Variables starting TEST_ are reserved, and should not be used in this file.
#
# MAKEARGS_TEST is the make target(s) and any extra arguments to invoke make
# in the regression testing directory. If empty, make will be invoked with
# no arguments.
MAKEARGS_TEST=install
# MAKEARGS_CLEAN is the make target(s) and any extra arguments to invoke make
# in the regression testing directory in order to clean up. This is the final
# step which is taken, and occurs after the determination of pass/fail for
# the test. A typical value for this variable may be "deinstall clean".
# This variable is optional.
#MAKEARGS_CLEAN=
check_result()
{
# exit_status compares its argument against the exit status from make. If not
# the same, the test is failed.
exit_status 1
# output_require passes a list of patterns to egrep to check for in the output
# from the make invocation. If any pattern is not matched, the test is failed.
output_require "This package should never build"
# output_prohibit passes a list of patterns to egrep to check for in the output
# from the make invocation. If any pattern is matched, the test is failed.
# output_prohibit ""
}
# Environment variables may be set here to be passed to subprocesses such as
# make.
#export VARIABLE=value
# Other scripting that may be required prior to execution of the test may
# be placed here. Please note that if possible, logic should be confined
# to the Makefile and not placed here.
|