Lines Matching +full:demo +full:- +full:v2
6 set -o nounset
7 set -o pipefail
8 set -o errexit
11 # need libprotobuf-dev for headers to compile against.
12 sudo apt-get install protobuf-compiler libprotobuf-dev
15 sudo apt-get install libssl-dev
19 mkdir --verbose -p _tmp
22 rappor-sim() {
27 protobuf-encoder-demo() {
32 rappor-sim-demo() {
33 rappor-sim 16 2 128 0.25 0.75 0.5 <<EOF
36 c1,1,v2
42 empty-input() {
43 echo -n '' | rappor-sim 58 2 128 .025 0.75 0.5
48 openssl-hash-impl-test() {
53 test-hmac-sha256() {
54 #echo -n foo | sha256sum
55 python -c '
67 test-md5() {
68 echo -n value | md5sum
71 # -M: all headers
72 # -MM: exclude system headers
74 # -MF: file to write the dependencies to
76 # -MD: like -M -MF
77 # -MMD: -MD, but only system headers
79 # -MP: workaround
83 # -MM seems like the one we want.
84 gcc -I _tmp -MM protobuf_encoder_test.cc unix_kernel_rand_impl.cc
85 #gcc -I _tmp -MMD -MP protobuf_encoder_test.cc unix_kernel_rand_impl.cc
89 wc -l *.h *.cc | sort -n
92 encoder-demo() {