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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user