Go to file
2018-09-26 15:16:26 +02:00
cmd/ooni Add rm command to delete results 2018-09-18 09:54:27 +02:00
config Add support for custom collectors and bouncers 2018-09-21 18:54:44 +02:00
data Add support for custom collectors and bouncers 2018-09-21 18:54:44 +02:00
internal Close the DB before deleting ooni_home 2018-09-26 15:09:59 +02:00
nettests Adjust the progress bars depending on the test type 2018-09-24 15:57:28 +02:00
utils vendor strcase from: 3605ed457b 2018-09-10 16:28:54 +02:00
.gitignore Add macos garbage to .gitignore 2018-03-30 15:06:18 +02:00
.travis.yml Update Makefile target for downloading libs 2018-09-11 12:39:47 +02:00
Gopkg.lock Add support for custom collectors and bouncers 2018-09-21 18:54:44 +02:00
Gopkg.toml Remove rbgterm from Gopkg.toml 2018-09-10 17:09:00 +02:00
LICENSE.md Add LICENSE.md 2018-07-11 18:06:27 +02:00
Makefile Add build-all make target 2018-09-26 15:16:26 +02:00
ooni_test.go Basic ooni unittest 2018-09-17 11:52:42 +02:00
ooni.go Bump version number of probe-cli 2018-09-25 14:21:18 +02:00
Readme.md Update readme entry 2018-09-11 12:40:39 +02:00

OONI Probe CLI

The next generation OONI Probe Command Line Interface.

💀 Attention This is under heavy development and should only be run and used by OONI developers. Use at your own risk and if you do use it, you may have to do some cleanup when we release the first public release of OONI Probe.

Development setup

Be sure you have golang >= 1.8.

This project uses dep with the vendor/ dir in .gitignore.

Once you have dep installed, run:

dep ensure

Next, you'll need a recent version of Measurement Kit.

Building a ooni binary for windows and macOS is currently only supported on a macOS system.

For building a linux ooni binary, you will need a linux system and follow the intruction in the linux section.

macOS

On macOS you can build a windows and macOS ooni binary.

This can be done by running:

make download-mk-libs

This will download the prebuilt measurement-kit binaries.

Then you can build a macOS build by running:

make build

And a windows build by running:

make build-windows

linux

On linux you will have to make your own build of measurement-kit and the required dependencies.

The following instructions have been tested on debian stretch, but should work on any other modern debian equivalent with minor tweaks.

Install the required depedencies:

sudo apt-get install git build-essential cmake autoconf libtool golang libc++-dev

Note: be sure you have golang at >= 1.8 (debian stretch means using backports).

git clone https://github.com/measurement-kit/script-build-unix.git
cd script-build-unix

Then build measurement-kit as follows:

./build-linux geoip-api-c
./build-linux libressl
./build-linux libevent
./build-linux measurement-kit

You should now have a set of compiled libraries inside of MK_DIST. Take this and copy it into vendor/github.com/measurement-kit/go-measurement-kit/libs/linux.

It should now be possible to build ooni by running:

make build

To run internal tests do:

make test-internal