gen_certs.sh (921B)
1 #!/usr/bin/env bash 2 3 set -v -e -x 4 5 # Set up the toolchain. 6 source $(dirname $0)/setup.sh 7 8 # Fetch artifact. 9 if [ "$TASKCLUSTER_ROOT_URL" = "https://taskcluster.net" ] || [ -z "$TASKCLUSTER_ROOT_URL" ]; then 10 url=https://queue.taskcluster.net/v1/task/$TC_PARENT_TASK_ID/artifacts/public/build/dist.7z 11 else 12 url=$TASKCLUSTER_ROOT_URL/api/queue/v1/task/$TC_PARENT_TASK_ID/artifacts/public/build/dist.7z 13 fi 14 15 wget -t 3 --retry-connrefused -w 5 --random-wait $url -O dist.7z 16 7z x dist.7z 17 18 export DIST=${PWD}/dist 19 # tests write to the source dir (and its parent), so move the source tree to 20 # our workspace from the (cached) checkout dir 21 cp -a "${VCS_PATH}/nss" . 22 23 # Generate certificates. 24 NSS_TESTS=cert NSS_CYCLES="standard pkix sharedb" nss/tests/all.sh 25 26 # Reset test counter so that test runs pick up our certificates. 27 echo 1 > tests_results/security/localhost 28 29 # Package. 30 7z a public/build/dist.7z dist tests_results