gerrit/lib/nongoogle_test.sh
Han-Wen Nienhuys 8886849315 lib: check that nongoogle.bzl doesn't grow new dependencies
Change-Id: Ie5fbd18de68fca13f954ef4d05ea7acc7d9cfea9
2019-05-09 07:47:56 +02:00

18 lines
334 B
Bash
Executable File

#!/bin/sh
# This test ensures that new dependencies in nongoogle.bzl go through LC review.
set -eux
bzl=$(pwd)/tools/nongoogle.bzl
TMP=$(mktemp -d || mktemp -d -t /tmp/tmp.XXXXXX)
grep 'name = "[^"]*"' ${bzl} | sed 's|^[^"]*"||g;s|".*$||g' | sort > $TMP/names
cat << EOF > $TMP/want
tukaani-xz
EOF
diff -u $TMP/names $TMP/want