Files
gerrit/lib/nongoogle_test.sh
Han-Wen Nienhuys 2d9f77f745 Move Flogger to nongoogle.bzl
Gerrit is linked against the canonical source directly inside Google, so there
is no version skew concern.

Change-Id: Ifae82a75700bf15e48a04476d7e76c2a1e6b8a71
2020-06-02 19:16:26 +02:00

42 lines
649 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
cglib-3_2
dropwizard-core
duct-tape
eddsa
elasticsearch-rest-client
flogger
flogger-log4j-backend
flogger-system-backend
httpasyncclient
httpcore-nio
j2objc
jackson-core
jna
jruby
mina-core
nekohtml
objenesis
openid-consumer
sshd-mina
sshd-osgi
testcontainers
testcontainers-elasticsearch
tukaani-xz
visible-assertions
xerces
EOF
diff -u $TMP/names $TMP/want