Add Haskell parser for "xm uptime"
In order to fetch precise information about the uptime of the VMs running in Xen, we need to analyze the output of the "xm uptime" command. This commit adds the parser to do that, and its tests. Signed-off-by:Michele Tartara <mtartara@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
Showing
- Makefile.am 1 addition, 0 deletionsMakefile.am
- src/Ganeti/Hypervisor/Xen/Types.hs 8 additions, 0 deletionssrc/Ganeti/Hypervisor/Xen/Types.hs
- src/Ganeti/Hypervisor/Xen/XmParser.hs 19 additions, 0 deletionssrc/Ganeti/Hypervisor/Xen/XmParser.hs
- test/data/xen-xm-uptime-4.0.1.txt 3 additions, 0 deletionstest/data/xen-xm-uptime-4.0.1.txt
- test/hs/Test/Ganeti/Hypervisor/Xen/XmParser.hs 53 additions, 4 deletionstest/hs/Test/Ganeti/Hypervisor/Xen/XmParser.hs
Loading
Please register or sign in to comment