node/deps/npm/test/packages/npm-test-ignore/test.sh

30 lines
454 B
Bash
Raw Normal View History

2011-12-16 00:32:07 +08:00
x=`find . | grep ignore | grep -v npmignore`
if [ "$x" != "" ]; then
echo "ignored files included: $x"
exit 1
fi
x=`find . | grep -v ignore | sort`
y=".
./include4
./package.json
2012-07-18 02:37:39 +08:00
./README
2011-12-16 00:32:07 +08:00
./sub
./sub/include
./sub/include2
./sub/include4
./test.sh"
2012-07-18 02:37:39 +08:00
y="`echo "$y" | sort`"
2011-12-16 00:32:07 +08:00
if [ "$x" != "$y" ]; then
echo "missing included files"
echo "got:"
echo "==="
echo "$x"
echo "==="
echo "wanted:"
echo "==="
echo "$y"
echo "==="
exit 1
fi