1#!/bin/sh 2 3# Set this to be the location of a chromium checkout, and 4# apply the patches in ./patches with "git am" first 5# before running this script. 6CHROMIUM_SRC=~/chromium/src 7 8mkdir -p ./testdata 9cp $CHROMIUM_SRC/net/test/test_certificate_data.h ./testdata 10 11tar -C $CHROMIUM_SRC/net/third_party -cf - nist-pkits | tar -C ./testdata -xf - 12tar -C $CHROMIUM_SRC/net/data -cf - cert_issuer_source_static_unittest \ 13 ssl/certificates \ 14 certificate_policies_unittest \ 15 name_constraints_unittest \ 16 ocsp_unittest \ 17 crl_unittest \ 18 parse_certificate_unittest \ 19 path_builder_unittest \ 20 verify_certificate_chain_unittest \ 21 verify_name_match_unittest \ 22 verify_signed_data_unittest | tar -C ./testdata -xf - 23 24go run ./import_tool.go -spec import_spec.json --source-base $CHROMIUM_SRC -dest-base . 25 26sed -i "s/#include \"/#include \"..\/pki\//g" *fuzzer.cc 27mv *fuzzer.cc ../fuzz 28 29 30 31