xref: /titanic_51/usr/src/cmd/idmap/nltest/Run.sh (revision b3700b074e637f8c6991b70754c88a2cfffb246b)
1*b3700b07SGordon Ross#!/bin/sh
2*b3700b07SGordon Ross
3*b3700b07SGordon Ross#
4*b3700b07SGordon Ross# This file and its contents are supplied under the terms of the
5*b3700b07SGordon Ross# Common Development and Distribution License ("CDDL"), version 1.0.
6*b3700b07SGordon Ross# You may only use this file in accordance with the terms of version
7*b3700b07SGordon Ross# 1.0 of the CDDL.
8*b3700b07SGordon Ross#
9*b3700b07SGordon Ross# A full copy of the text of the CDDL should have accompanied this
10*b3700b07SGordon Ross# source.  A copy of the CDDL is also available via the Internet at
11*b3700b07SGordon Ross# http://www.illumos.org/license/CDDL.
12*b3700b07SGordon Ross#
13*b3700b07SGordon Ross
14*b3700b07SGordon Ross#
15*b3700b07SGordon Ross# Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
16*b3700b07SGordon Ross#
17*b3700b07SGordon Ross
18*b3700b07SGordon Ross# Helper program to run nltest
19*b3700b07SGordon Ross
20*b3700b07SGordon Ross
21*b3700b07SGordon Ross[ -n "$CODEMGR_WS" ] || {
22*b3700b07SGordon Ross  echo "Need a buildenv to set CODEMGR_WS=..."
23*b3700b07SGordon Ross  exit 1;
24*b3700b07SGordon Ross}
25*b3700b07SGordon Ross
26*b3700b07SGordon Ross
27*b3700b07SGordon RossROOT=${CODEMGR_WS}/proto/root_i386
28*b3700b07SGordon RossLD_LIBRARY_PATH=$ROOT/usr/lib:$ROOT/lib
29*b3700b07SGordon Rossexport LD_LIBRARY_PATH
30*b3700b07SGordon Ross
31*b3700b07SGordon Ross$ROOT/usr/sbin/nltest "$@"
32