Skip to content

Commit 4d1ad7a

Browse files
committed
[test] test piper with binary data
1 parent e0f65e3 commit 4d1ad7a

6 files changed

Lines changed: 8 additions & 1 deletion

test/expected/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ dist_noinst_DATA = \
6060
test_cli.sh_5a08fb5360e41bc1a880c04112af35604d3eaea0.out \
6161
test_cli.sh_64555477e8795379ae33a3dbca8113cf7111ff2b.err \
6262
test_cli.sh_64555477e8795379ae33a3dbca8113cf7111ff2b.out \
63+
test_cli.sh_6cfac339052dc16f0e0ce6afbc835660e9e6da54.err \
64+
test_cli.sh_6cfac339052dc16f0e0ce6afbc835660e9e6da54.out \
6365
test_cli.sh_6d8527ea7806e393f848e29abed8c45acc7be2d2.err \
6466
test_cli.sh_6d8527ea7806e393f848e29abed8c45acc7be2d2.out \
6567
test_cli.sh_712cb8b623e9230d97008a8b7d06df1ea76c37af.err \
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
ⓘ info: the following piper captures were found in:
22
{TMPDIR}/lnav-user-{uid}-work/piper
3-
 = note: The captures currently consume 653B of disk space. File sizes include associated metadata.
3+
 = note: The captures currently consume 670B of disk space. File sizes include associated metadata.
44
 = help: You can reopen a capture by passing the piper URL to lnav
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
 just now piper://p-a26139c5f6676157dcad9cdb4dd7d859-000  17.0 B “sh-0 cat ${test_dir}/textfile_broken_gz.txt.gz”
12
 just now piper://p-07e825e95ea8778bfebcb5653a30dac4-000  653.0 B “sh-0 cat ${test_dir}/textfile_plain.0”

test/expected/test_cli.sh_6cfac339052dc16f0e0ce6afbc835660e9e6da54.err

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
 File Offset  00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ASCII 
2+
0  c0 ×

test/test_cli.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ rm -rf ./piper-tmp
5555
mkdir piper-tmp
5656
run_cap_test ${lnav_test} -n -e 'cat ${test_dir}/textfile_plain.0'
5757

58+
run_cap_test ${lnav_test} -n -e 'cat ${test_dir}/textfile_broken_gz.txt.gz'
59+
5860
run_cap_test ${lnav_test} -m piper list
5961

6062
PIPER_URL=$(env NO_COLOR=1 ${lnav_test} -m -q piper list | tail -1 | sed -r -e 's;.*(piper://[^ ]+).*;\1;g')

0 commit comments

Comments
 (0)