mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-27 09:04:40 +01:00
b8bcc7d13f
This allows us to re-use existing tests (assuming the call and fields are covered by `cln-rpc` and `cln-grpc`) to test the full roundtrip from test over the grpc interface to the json-rpc interface and back again. You can switch to the grpc interface by setting the `CLN_TEST_GRPC` environment variable to 1, but for now only very few shims are implemented (due to the non-generated nature of LightningRpc).
13 lines
619 B
Bash
Executable File
13 lines
619 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if git --no-pager grep -nHiE 'l[ightn]{6}g|l[ightn]{8}g|ilghtning|lgihtning|lihgtning|ligthning|lighnting|lightinng|lightnnig|lightnign' -- . ':!tools/check-spelling.sh' | grep -vE "highlighting|LightningGrpc"; then
|
|
echo "Identified a likely misspelling of the word \"lightning\" (see above). Please fix."
|
|
echo "Is this warning incorrect? Please teach tools/check-spelling.sh about the exciting new word."
|
|
exit 1
|
|
fi
|
|
|
|
if git --no-pager grep -nHiEP '(?<!en)ctlv' -- . ':!tools/check-spelling.sh'; then
|
|
echo "It's check lock time verify, not check time lock verify!" >&2
|
|
exit 1
|
|
fi
|