mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-09-27 07:43:47 +08:00
quantum init
This commit is contained in:
15
vendor/liboqs/.travis/global-namespace-check.sh
vendored
Executable file
15
vendor/liboqs/.travis/global-namespace-check.sh
vendored
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $(nm -g liboqs.a | grep ' T ' | grep -E -v -i ' T [_]?[OQS|ntru]') ]];
|
||||
then
|
||||
tput setaf 1;
|
||||
echo "Code contains the following non-namespaced global symbols; see https://github.com/open-quantum-safe/liboqs/wiki/Coding-conventions for function naming conventions.";
|
||||
tput sgr 0
|
||||
nm -g liboqs.a | grep ' T ' | grep -E -v -i ' T [_]?[OQS|ntru]'
|
||||
exit 1;
|
||||
else
|
||||
tput setaf 2;
|
||||
echo "Code adheres to the project standards (global namespace).";
|
||||
tput sgr 0
|
||||
exit 0;
|
||||
fi;
|
||||
Reference in New Issue
Block a user