From cf2b124da358c7fb2e00c7b8e814b6b78bdfe004 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Mon, 9 Sep 2019 23:59:19 +0200 Subject: [PATCH] test field selection and human readable output --- "t/t1301-field_grep_-ftime=\\K.in" | 16 ++++++++++++++++ "t/t1301-field_grep_-ftime=\\K.out" | 16 ++++++++++++++++ t/t1401-magnitude_-H.in | 20 ++++++++++++++++++++ t/t1401-magnitude_-H.out | 20 ++++++++++++++++++++ t/t1403-precision_-H.in | 12 ++++++++++++ t/t1403-precision_-H.out | 12 ++++++++++++ 6 files changed, 96 insertions(+) create mode 100644 "t/t1301-field_grep_-ftime=\\K.in" create mode 100644 "t/t1301-field_grep_-ftime=\\K.out" create mode 100644 t/t1401-magnitude_-H.in create mode 100644 t/t1401-magnitude_-H.out create mode 100644 t/t1403-precision_-H.in create mode 100644 t/t1403-precision_-H.out diff --git "a/t/t1301-field_grep_-ftime=\\K.in" "b/t/t1301-field_grep_-ftime=\\K.in" new file mode 100644 index 0000000..0aeefdd --- /dev/null +++ "b/t/t1301-field_grep_-ftime=\\K.in" @@ -0,0 +1,16 @@ +PING google.com(ams15s40-in-x0e.1e100.net (2a00:1450:400e:80d::200e)) 56 data bytes +... icmp_seq=1 time=9.92 ms +... icmp_seq=2 time=9.38 ms +... icmp_seq=3 time=10.5 ms +... icmp_seq=4 time=9.90 ms +... icmp_seq=5 time=9.66 ms +... icmp_seq=6 time=9.88 ms +... icmp_seq=7 time=9.44 ms +... icmp_seq=8 time=11.8 ms +... icmp_seq=9 time=9.56 ms +... icmp_seq=10 time=10.0 ms +... icmp_seq=11 time=9.48 ms + +--- google.com ping statistics --- +11 packets transmitted, 11 received, 0% packet loss, time 10016ms +rtt min/avg/max/mdev = 9.383/9.968/11.810/0.674 ms diff --git "a/t/t1301-field_grep_-ftime=\\K.out" "b/t/t1301-field_grep_-ftime=\\K.out" new file mode 100644 index 0000000..3f79b10 --- /dev/null +++ "b/t/t1301-field_grep_-ftime=\\K.out" @@ -0,0 +1,16 @@ +PING google.com(ams15s40-in-x0e.1e100.net (2a00:1450:400e:80d::200e)) 56 data bytes +... icmp_seq=1 time=9.92 ms -------+ +... icmp_seq=2 time=9.38 ms -------+ +... icmp_seq=3 time=10.5 ms -------+- +... icmp_seq=4 time=9.90 ms -------+ +... icmp_seq=5 time=9.66 ms -------+ +... icmp_seq=6 time=9.88 ms -------+ +... icmp_seq=7 time=9.44 ms -------+ +... icmp_seq=8 time=11.8 ms -------+-- +... icmp_seq=9 time=9.56 ms -------+ +... icmp_seq=10 time=10.0 ms -------+ +... icmp_seq=11 time=9.48 ms -------+ + +--- google.com ping statistics --- +11 packets transmitted, 11 received, 0% packet loss, time 10016ms +rtt min/avg/max/mdev = 9.383/9.968/11.810/0.674 ms diff --git a/t/t1401-magnitude_-H.in b/t/t1401-magnitude_-H.in new file mode 100644 index 0000000..3c238a6 --- /dev/null +++ b/t/t1401-magnitude_-H.in @@ -0,0 +1,20 @@ +1e-11 +2e-10 +3e-09 +4e-08 +5e-07 +6e-06 +7e-05 +0.0008 +0.009 +0.1 +1.1 +12 +130 +1400 +15000 +160000 +1700000 +18000000 +190000000 +2000000000 diff --git a/t/t1401-magnitude_-H.out b/t/t1401-magnitude_-H.out new file mode 100644 index 0000000..bbe87ab --- /dev/null +++ b/t/t1401-magnitude_-H.out @@ -0,0 +1,20 @@ + 10p +200p +3.0n + 40n +500n +6.0μ + 70μ +800μ +9.0m +100m +1.1 + 12 +130 +1.4k + 15k +160k +1.7M + 18M +190M =-- +2.0G =-------------------------------- diff --git a/t/t1403-precision_-H.in b/t/t1403-precision_-H.in new file mode 100644 index 0000000..4a74cb3 --- /dev/null +++ b/t/t1403-precision_-H.in @@ -0,0 +1,12 @@ +1 +1.0 +2000 +2001 +2050 +2050.1 +200001 +0 +1.602176634e-19 +-1.5001e-19 +-1e-30 +-1.51e-30 diff --git a/t/t1403-precision_-H.out b/t/t1403-precision_-H.out new file mode 100644 index 0000000..ee653b1 --- /dev/null +++ b/t/t1403-precision_-H.out @@ -0,0 +1,12 @@ + 1 +1.0 +2.0k +2.0k +2.0k +2.1k +200k -=------------------------------- + 0 +160z +-150z +-1000e-33 +-1.5e-32 -- 2.30.0