summaryrefslogtreecommitdiff
path: root/deps/npm/test/packages/npm-test-ignore/test.sh
blob: 05fbaf169973bf339a5c9fd27197e4e4c57ea297 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
./README
./sub
./sub/include
./sub/include2
./sub/include4
./test.sh"
y="`echo "$y" | sort`"
if [ "$x" != "$y" ]; then
  echo "missing included files"
  echo "got:"
  echo "==="
  echo "$x"
  echo "==="
  echo "wanted:"
  echo "==="
  echo "$y"
  echo "==="
  exit 1
fi