I followed this blog and want to do Code Coverage System test.But I can't find the param in the blog.
$ ./packetbeat.test -h
Usage of ./packetbeat.test:
-I string
file
-N Disable actual publishing for testing
-O Read packets one at a time (press Enter)
-c string
Configuration file (default "/etc/beat/beat.yml")
-cpuprofile string
Write cpu profile to fil
...
in my machine, the usage is different.
-systemTest and -c param belongs to different file. -systemTest is the usage of packetbeat.test ,-c is the usage of packetbeat.
the error is : flag provided but not defined: -c
so
packetbeat.test -systemTest -c config.yml -test.coverprofile coverage.cov
can't be exec in my machine.