2019-12-02 16:57:55 +01:00
|
|
|
package nettests
|
2018-02-13 16:16:23 +01:00
|
|
|
|
2020-03-12 19:36:32 +01:00
|
|
|
// NDT test implementation. We use v7 of NDT since 2020-03-12.
|
2018-02-13 16:16:23 +01:00
|
|
|
type NDT struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
// Run starts the test
|
2019-12-02 16:57:55 +01:00
|
|
|
func (n NDT) Run(ctl *Controller) error {
|
2020-03-18 15:50:55 +01:00
|
|
|
// Since 2020-03-18 probe-engine exports v7 as "ndt".
|
2020-06-04 11:19:38 +02:00
|
|
|
builder, err := ctl.Session.NewExperimentBuilder("ndt")
|
2019-10-28 14:05:05 +01:00
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return ctl.Run(builder, []string{""})
|
2018-02-13 16:16:23 +01:00
|
|
|
}
|