2021-02-04 14:25:03 +01:00
|
|
|
#!/bin/bash
|
2022-10-03 11:55:47 +02:00
|
|
|
|
2021-05-13 18:04:47 +02:00
|
|
|
# This script checks whether we're able to submit measurements to
|
|
|
|
# different backends using miniooni. It fails if we cannot find in
|
|
|
|
# the specific backend the measurement we submitted.
|
|
|
|
#
|
2022-10-03 11:55:47 +02:00
|
|
|
# Note: using --tunnel=psiphon assumes that we have been compiling
|
|
|
|
# miniooni with builtin support for psiphon.
|
|
|
|
|
|
|
|
set -euxo pipefail
|
|
|
|
|
2021-05-13 18:04:47 +02:00
|
|
|
backends=()
|
2022-09-02 16:48:14 +02:00
|
|
|
backends+=( "https://api.ooni.io" )
|
2021-05-13 18:04:47 +02:00
|
|
|
backends+=( "https://dvp6h0xblpcqp.cloudfront.net" )
|
|
|
|
backends+=( "https://ams-pg-test.ooni.org" )
|
2022-10-03 11:55:47 +02:00
|
|
|
|
2021-05-13 18:04:47 +02:00
|
|
|
miniooni="${1:-./miniooni}"
|
|
|
|
for ps in ${backends[@]}; do
|
2021-02-04 14:25:03 +01:00
|
|
|
opt="-o E2E/o.jsonl --probe-services=$ps"
|
2021-05-13 18:04:47 +02:00
|
|
|
$miniooni --yes $opt -i http://mail.google.com web_connectivity
|
2021-02-04 14:25:03 +01:00
|
|
|
done
|
2022-10-03 11:55:47 +02:00
|
|
|
|
|
|
|
$miniooni --tunnel=psiphon --yes -i http://mail.google.com web_connectivity
|
|
|
|
$miniooni --tunnel=tor --yes -i http://mail.google.com web_connectivity
|
|
|
|
|
|
|
|
#go run ./internal/cmd/e2epostprocess -expected 5 # TODO(bassosimone): fix this
|