89a584f93b
Closes https://github.com/ooni/probe/issues/2334. While there, reinstate integration tests, which were also lost in a previous refactoring. However, only run those tests for linux/amd64 because we can be confident that the Go compiler is WAI for all archs we support. While there, always use bash for running end-to-end tests. H/T @ainghazal for discovering and reporting this bug.
20 lines
639 B
Bash
Executable File
20 lines
639 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# 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.
|
|
|
|
set -euxo pipefail
|
|
|
|
if [ "$#" != 1 ]; then
|
|
echo "Usage: $0 <binary>" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
$1 onboard --yes
|
|
|
|
# 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
|