usr/src/tools/tests/slim_test
author Sue Sohn <Susan.Sohn@Oracle.COM>
Fri, 20 Aug 2010 11:31:18 -0600
changeset 862 e9f31f2f2f2d
parent 842 e8046b4f26e8
child 1116 29e34d65ceef
permissions -rwxr-xr-x
16423 Updates to AI schema should be made 15449 installadm add validates combined manifest against image-specific schema as well as schema in /usr/share/auto_install/ 6975043 separate criteria and ai manifest 6975686 installadm list shows value rather than range if lower bound is 0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
842
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
     1
#!/bin/sh
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
     2
#
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
     3
# CDDL HEADER START
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
     4
#
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
     5
# The contents of this file are subject to the terms of the
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
     6
# Common Development and Distribution License (the "License").
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
     7
# You may not use this file except in compliance with the License.
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
     8
#
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
     9
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    10
# or http://www.opensolaris.org/os/licensing.
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    11
# See the License for the specific language governing permissions
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    12
# and limitations under the License.
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    13
#
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    14
# When distributing Covered Code, include this CDDL HEADER in each
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    15
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    16
# If applicable, add the following below this CDDL HEADER, with the
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    17
# fields enclosed by brackets "[]" replaced with your own identifying
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    18
# information: Portions Copyright [yyyy] [name of copyright owner]
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    19
#
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    20
# CDDL HEADER END
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    21
#
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    22
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    23
#
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    24
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    25
if [ -z "$SRC" -o -z "$ROOT" ]; then
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    26
	print -u2 "Build environment not set"
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    27
	print -u2 "Use: /opt/onbld/bin/bldenv -d /path/to/developer.sh"
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    28
	print -u2 "See also usr/src/tools/tests/README"
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    29
	exit 3
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    30
fi
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    31
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 842
diff changeset
    32
export PYTHONPATH=${ROOT}/usr/snadm/lib:${ROOT}/usr/lib/python2.6/vendor-packages/:\
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 842
diff changeset
    33
${ROOT}/usr/lib/installadm
842
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    34
e8046b4f26e8 16105 slim_source gate could use infrastructure for running unit tests
Keith Mitchell <keith.mitchell@oracle.com>
parents:
diff changeset
    35
nosetests -c ${SRC}/tools/tests/config.nose -w $SRC "$@"