doc(measurex): explain how to write experiments (#529)

Part of https://github.com/ooni/ooni.org/issues/361

Co-authored-by: Arturo Filastò <arturo@openobservatory.org>
This commit is contained in:
Simone Basso
2021-09-30 01:36:03 +02:00
committed by GitHub
parent 399d2f65da
commit d45e58c14f
31 changed files with 6822 additions and 0 deletions
+21
View File
@@ -90,6 +90,25 @@ func gentorsf() {
gen(path.Join(prefix, "chapter04"), "torsf.go")
}
// genmeasurex generates the measurex chapters.
func genmeasurex() {
prefix := path.Join(".", "measurex")
gen(path.Join(prefix, "chapter01"), "main.go")
gen(path.Join(prefix, "chapter02"), "main.go")
gen(path.Join(prefix, "chapter03"), "main.go")
gen(path.Join(prefix, "chapter04"), "main.go")
gen(path.Join(prefix, "chapter05"), "main.go")
gen(path.Join(prefix, "chapter06"), "main.go")
gen(path.Join(prefix, "chapter07"), "main.go")
gen(path.Join(prefix, "chapter08"), "main.go")
gen(path.Join(prefix, "chapter09"), "main.go")
gen(path.Join(prefix, "chapter10"), "main.go")
gen(path.Join(prefix, "chapter11"), "main.go")
gen(path.Join(prefix, "chapter12"), "main.go")
gen(path.Join(prefix, "chapter13"), "main.go")
gen(path.Join(prefix, "chapter14"), "main.go")
}
// gennetxlite generates the netxlite chapters.
func gennetxlite() {
prefix := path.Join(".", "netxlite")
@@ -102,7 +121,9 @@ func gennetxlite() {
gen(path.Join(prefix, "chapter07"), "main.go")
gen(path.Join(prefix, "chapter08"), "main.go")
}
func main() {
gentorsf()
genmeasurex()
gennetxlite()
}