1262427Sian# $NetBSD$ 2262427Sian# 3262427Sian# Copyright (c) 2011 The NetBSD Foundation, Inc. 4262427Sian# All rights reserved. 5262427Sian# 6262427Sian# Redistribution and use in source and binary forms, with or without 7262427Sian# modification, are permitted provided that the following conditions 8262427Sian# are met: 9262427Sian# 1. Redistributions of source code must retain the above copyright 10262427Sian# notice, this list of conditions and the following disclaimer. 11262427Sian# 2. Redistributions in binary form must reproduce the above copyright 12262427Sian# notice, this list of conditions and the following disclaimer in the 13262427Sian# documentation and/or other materials provided with the distribution. 14262427Sian# 15262427Sian# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 16262427Sian# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 17262427Sian# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 18262427Sian# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 19262427Sian# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20262427Sian# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21262427Sian# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22262427Sian# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23262427Sian# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24262427Sian# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25262427Sian# POSSIBILITY OF SUCH DAMAGE. 26262427Sian# 27262427Sian 28262427Sianrumpsrv='rump_server -lrumpvfs' 29262427Sianexport RUMP_SERVER=unix://csock 30262427Sian 31262427Sianatf_test_case fdoff cleanup 32262427Sianfdoff_head() 33262427Sian{ 34262427Sian atf_set "descr" "RUMPHIJACK fdoff=8" 35262427Sian} 36262427Sian 37262427Sianfdoff_body() 38262427Sian{ 39262427Sian 40262427Sian atf_check -s exit:0 rump_server -lrumpvfs ${RUMP_SERVER} 41262427Sian export RUMPHIJACK=path=/rump,fdoff=8 42262427Sian atf_check -s exit:0 env LD_PRELOAD=/usr/lib/librumphijack.so \ 43262427Sian $(atf_get_srcdir)/h_client fdoff8 44262427Sian} 45262427Sian 46262427Sianfdoff_cleanup() 47262427Sian{ 48262427Sian rump.halt 49262427Sian} 50262427Sian 51262427Sianatf_init_test_cases() 52262427Sian{ 53262427Sian atf_add_test_case fdoff 54262427Sian} 55262427Sian