2022-10-03 11:55:47 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-05-13 18:04:47 +02:00
|
|
|
# This test for now uses --no-collector and we just ensure that the OONI
|
|
|
|
# instance is not exploding. We are confident that, if miniooni submits
|
|
|
|
# measurements, also ooniprobe should be able to do that. However, it would
|
|
|
|
# actually be nice if someone could enhance this script to also make sure
|
|
|
|
# that we can actually fetch the measurements we submit.
|
2022-10-03 11:55:47 +02:00
|
|
|
|
|
|
|
set -euxo pipefail
|
|
|
|
|
2021-05-13 18:04:47 +02:00
|
|
|
if [ "$#" != 1 ]; then
|
|
|
|
echo "Usage: $0 <binary>" 1>&2
|
|
|
|
exit 1
|
|
|
|
fi
|
2022-10-03 11:55:47 +02:00
|
|
|
|
2021-05-13 18:04:47 +02:00
|
|
|
$1 onboard --yes
|
2022-10-03 11:55:47 +02:00
|
|
|
|
2021-05-13 18:04:47 +02:00
|
|
|
# Important! DO NOT run performance from CI b/c it will overload m-lab servers
|
|
|
|
$1 run websites --config cmd/ooniprobe/testdata/testing-config.json --no-collector
|