2015-07-20 13:33:52 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
lnav_test="${top_builddir}/src/lnav-test"
|
|
|
|
|
|
|
|
|
|
|
|
run_test ${lnav_test} -C \
|
|
|
|
-I ${test_dir}/bad-config
|
|
|
|
|
|
|
|
check_error_output "invalid format not detected?" <<EOF
|
|
|
|
error:bad_regex_log.regex[std]:missing )
|
2015-08-13 05:34:41 +00:00
|
|
|
error:bad_regex_log.level:missing )
|
2015-07-20 13:33:52 +00:00
|
|
|
error:bad_regex_log:invalid sample -- 1428634687123; foo
|
|
|
|
error:bad_sample_log:invalid sample -- 1428634687123; foo bar
|
|
|
|
error:bad_sample_log:partial sample matched -- 1428634687123; foo
|
|
|
|
error: against pattern -- ^(?<timestamp>\d+); (?<body>\w+)$
|
|
|
|
error:bad_sample_log:partial sample matched -- 1428634687123
|
|
|
|
error: against pattern -- ^(?<timestamp>\d+): (?<body>.*)$
|
2015-08-13 05:34:41 +00:00
|
|
|
error:no_sample_log:no sample logs provided, all formats must have samples
|
2015-07-20 13:33:52 +00:00
|
|
|
EOF
|