xfs/530: skip test if user MKFS_OPTIONS screw up formatting
[xfstests-dev.git] / tests / xfs / 437
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2018 Oracle, Inc.
4 #
5 # FS QA Test No. 437
6 #
7 # find-api-violations test
8 #
9 # The purpose of this test is ensure that the xfsprogs programs use the
10 # libxfs_ symbols (in libxfs-api-defs.h) instead of raw xfs_ functions.
11 # This is for the maintainers; it's not a functionality test.
12 #
13 . ./common/preamble
14 _begin_fstest auto quick other
15
16 # Import common functions.
17 . ./common/filter
18
19 [ -z "$WORKAREA" ] && \
20         _notrun "Can't run find-api-violations.sh without WORKAREA set"
21 [ -f "$WORKAREA/tools/find-api-violations.sh" ] || \
22         _notrun "Can't find find-api-violations.sh tool under \"$WORKAREA\""
23
24 echo "Silence is golden."
25
26 # Look for API usage problems.  Old versions of the script have an improperly
27 # specified grep pattern that is mistaken for a (broken) range specifier in
28 # LC_ALL=C, so use English instead.
29 (cd "$WORKAREA" ; LC_ALL="en_US.UTF-8" bash ./tools/find-api-violations.sh ) | tee -a $seqres.full
30
31 # success, all done
32 status=0
33 exit