sapling/eden/mononoke/cmds/tests/configlint-test.sh
Lukasz Piatkowski 542d1f93d3 Manual synchronization of fbcode/eden and facebookexperimental/eden
Summary:
This commit manually synchronizes the internal move of
fbcode/scm/mononoke under fbcode/eden/mononoke which couldn't be
performed by ShipIt automatically.

Reviewed By: StanislavGlebik

Differential Revision: D19722832

fbshipit-source-id: 52fbc8bc42a8940b39872dfb8b00ce9c0f6b0800
2020-02-11 11:42:43 +01:00

28 lines
545 B
Bash
Executable File

#!/bin/bash
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
CONFIGLINT="$1"; shift
DIR="$1"; shift
if [ ! -d "$DIR" ]; then
echo "No test fixture dir $DIR found" 1>&2
exit 1
fi
for TEST in "$DIR"/*; do
echo "Testing $TEST"
case "$TEST" in
*fixtures/OK-*) expected=0;;
*fixtures/BAD-*) expected=1;;
esac
"$CONFIGLINT" --mononoke-config-path "$TEST"
if [ "$?" != "$expected" ]; then
exit 1
fi
done