2021-02-04 14:25:03 +01:00
|
|
|
#!/bin/bash
|
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.
|
|
|
|
#
|
2021-02-04 14:25:03 +01:00
|
|
|
set -e
|
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" )
|
|
|
|
miniooni="${1:-./miniooni}"
|
|
|
|
for ps in ${backends[@]}; do
|
2021-02-04 14:25:03 +01:00
|
|
|
opt="-o E2E/o.jsonl --probe-services=$ps"
|
|
|
|
set -x
|
2021-05-13 18:04:47 +02:00
|
|
|
$miniooni --yes $opt -i http://mail.google.com web_connectivity
|
|
|
|
$miniooni --yes $opt tor
|
|
|
|
$miniooni --yes $opt psiphon
|
2021-02-04 14:25:03 +01:00
|
|
|
set +x
|
|
|
|
done
|
|
|
|
set -x
|
|
|
|
go run ./internal/cmd/e2epostprocess -expected 9
|
|
|
|
set +x
|