source: web/old/remctl-2.14/tests/server/misc-t @ f6f3e91

web
Last change on this file since f6f3e91 was f6f3e91, checked in by Jessica B. Hamrick <jhamrick@…>, 15 years ago

Preserve directory hierarchy (not sure what happened to it)

  • Property mode set to 100755
File size: 1.0 KB
Line 
1#!/bin/sh
2#
3# Test suite for various server functions.
4#
5# Written by Russ Allbery <rra@stanford.edu>
6# Copyright 2006, 2007, 2009 Board of Trustees, Leland Stanford Jr. University
7#
8# See LICENSE for licensing terms.
9
10. "$SOURCE/tap/libtap.sh"
11. "$SOURCE/tap/kerberos.sh"
12. "$SOURCE/tap/remctl.sh"
13cd "$BUILD"
14
15# Test setup.
16kerberos_setup
17if [ $? != 0 ] ; then
18    skip_all "Kerberos tests not configured"
19else
20    plan 2
21fi
22remctl="$BUILD/../client/remctl"
23if [ ! -x "$remctl" ] ; then
24    bail "can't locate remctl client binary"
25fi
26remctld_start "$BUILD/../server/remctld" "$SOURCE/data/conf-simple"
27
28# Run the tests.
29ok_program "file descriptors closed properly on server" 0 "Okay" \
30    "$remctl" -s "$principal" -p 14373 localhost test closed
31ok_program "server returns despite background process" 0 "Parent" \
32    "$remctl" -s "$principal" -p 14373 localhost test background
33
34# Clean up.
35if [ -f "$BUILD/data/cmd-background.pid" ] ; then
36    kill `cat "$BUILD/data/cmd-background.pid"`
37    rm -f "$BUILD/data/cmd-background.pid"
38fi
39remctld_stop
40kerberos_cleanup
Note: See TracBrowser for help on using the repository browser.