xref: /netbsd-src/tests/usr.bin/tar/t_tar.sh (revision ad61858a1663bdd6c07c367b306ba02f38491704)
1*ad61858aSchristos#       $NetBSD: t_tar.sh,v 1.1 2020/01/17 16:25:37 christos Exp $
2*ad61858aSchristos#
3*ad61858aSchristos# Copyright (c) 2020 The NetBSD Foundation, Inc.
4*ad61858aSchristos# All rights reserved.
5*ad61858aSchristos#
6*ad61858aSchristos# Redistribution and use in source and binary forms, with or without
7*ad61858aSchristos# modification, are permitted provided that the following conditions
8*ad61858aSchristos# are met:
9*ad61858aSchristos# 1. Redistributions of source code must retain the above copyright
10*ad61858aSchristos#    notice, this list of conditions and the following disclaimer.
11*ad61858aSchristos# 2. Redistributions in binary form must reproduce the above copyright
12*ad61858aSchristos#    notice, this list of conditions and the following disclaimer in the
13*ad61858aSchristos#    documentation and/or other materials provided with the distribution.
14*ad61858aSchristos#
15*ad61858aSchristos# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
16*ad61858aSchristos# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17*ad61858aSchristos# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18*ad61858aSchristos# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
19*ad61858aSchristos# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20*ad61858aSchristos# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21*ad61858aSchristos# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22*ad61858aSchristos# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23*ad61858aSchristos# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24*ad61858aSchristos# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25*ad61858aSchristos# POSSIBILITY OF SUCH DAMAGE.
26*ad61858aSchristos#
27*ad61858aSchristos
28*ad61858aSchristosatf_test_case tar
29*ad61858aSchristos
30*ad61858aSchristostar_head()
31*ad61858aSchristos{
32*ad61858aSchristos        atf_set "descr" "test tar"
33*ad61858aSchristos}
34*ad61858aSchristos
35*ad61858aSchristostar_body()
36*ad61858aSchristos{
37*ad61858aSchristos	local d=$(atf_get_srcdir)
38*ad61858aSchristos	atf_check -s exit:0 -o 'not-match:^Details for failing tests:.*' \
39*ad61858aSchristos	    -e ignore "$d/h_tar" -p /usr/bin/tar -r "$d"
40*ad61858aSchristos}
41*ad61858aSchristos
42*ad61858aSchristosatf_init_test_cases()
43*ad61858aSchristos{
44*ad61858aSchristos	atf_add_test_case tar
45*ad61858aSchristos}
46