mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
542d1f93d3
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
28 lines
545 B
Bash
Executable File
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
|