Lines Matching +full:linux +full:- +full:format
6 # Usage: check-artifact <OS> <ARCH>
8 # osdetector-gradle-plugin
36 if [ -z "$lineno" ]; then
49 # Usage: checkArch <path-to-protoc>
53 echo "Checking format of $1"
54 if [[ "$OS" == windows || "$OS" == linux ]]; then
55 format="$(objdump -f "$1" | grep -o "file format .*$" | grep -o "[^ ]*$")"
56 echo Format=$format
57 if [[ "$OS" == linux ]]; then
59 assertEq $format "elf32-i386" $LINENO
61 assertEq $format "elf64-x86-64" $LINENO
68 assertEq $format "pei-i386" $LINENO
70 assertEq $format "pei-x86-64" $LINENO
76 format="$(file -b "$1" | grep -o "[^ ]*$")"
77 echo Format=$format
79 assertEq $format "i386" $LINENO
81 assertEq $format "x86_64" $LINENO
93 # Usage: checkDependencies <path-to-protoc>
98 dump_cmd='objdump -x '"$1"' | fgrep "DLL Name"'
100 elif [[ "$OS" == linux ]]; then
103 white_list="linux-gate\.so\.1\|libpthread\.so\.0\|libm\.so\.6\|libc\.so\.6\|ld-linux\.so\.2"
105 …white_list="linux-vdso\.so\.1\|libpthread\.so\.0\|libm\.so\.6\|libc\.so\.6\|ld-linux-x86-64\.so\.2"
108 dump_cmd='otool -L '"$1"' | fgrep dylib'
111 if [[ -z "$white_list" || -z "$dump_cmd" ]]; then
112 fail "Unsupported platform $OS-$ARCH."
115 eval $dump_cmd | grep -i "$white_list" || fail "doesn't show any expected dependencies"
117 eval $dump_cmd | grep -i -v "$white_list"
128 FILE="build/artifacts/java_plugin/protoc-gen-grpc-java.exe"