xref: /freebsd/share/zoneinfo/tests/backward_test.sh (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
1f37852c1SEnji Cooper#
2*da5069e1SEnji Cooper# Copyright (c) 2017 Enji Cooper <ngie@FreeBSD.org>
3f37852c1SEnji Cooper#
4f37852c1SEnji Cooper# Redistribution and use in source and binary forms, with or without
5f37852c1SEnji Cooper# modification, are permitted provided that the following conditions
6f37852c1SEnji Cooper# are met:
7f37852c1SEnji Cooper# 1. Redistributions of source code must retain the above copyright
8f37852c1SEnji Cooper#    notice, this list of conditions and the following disclaimer.
9f37852c1SEnji Cooper# 2. Redistributions in binary form must reproduce the above copyright
10f37852c1SEnji Cooper#    notice, this list of conditions and the following disclaimer in the
11f37852c1SEnji Cooper#    documentation and/or other materials provided with the distribution.
12f37852c1SEnji Cooper#
13f37852c1SEnji Cooper# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14f37852c1SEnji Cooper# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15f37852c1SEnji Cooper# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16f37852c1SEnji Cooper# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17f37852c1SEnji Cooper# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18f37852c1SEnji Cooper# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19f37852c1SEnji Cooper# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20f37852c1SEnji Cooper# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21f37852c1SEnji Cooper# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22f37852c1SEnji Cooper# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23f37852c1SEnji Cooper# SUCH DAMAGE.
24f37852c1SEnji Cooper#
25f37852c1SEnji Cooper
26f37852c1SEnji Cooperatf_test_case links
27f37852c1SEnji Cooperlinks_head()
28f37852c1SEnji Cooper{
29f37852c1SEnji Cooper	atf_set "descr" "Verify Links directives in contrib/tzdata/backward"
30f37852c1SEnji Cooper}
31f37852c1SEnji Cooper
32f37852c1SEnji Cooperlinks_body()
33f37852c1SEnji Cooper{
34f37852c1SEnji Cooper	verify_Links $(atf_get_srcdir)/backward
35f37852c1SEnji Cooper}
36f37852c1SEnji Cooper
37f37852c1SEnji Cooperatf_init_test_cases()
38f37852c1SEnji Cooper{
39f37852c1SEnji Cooper	. "$(dirname "$0")/zoneinfo_common.sh"
40f37852c1SEnji Cooper
41f37852c1SEnji Cooper	atf_add_test_case links
42f37852c1SEnji Cooper}
43