Skip to content

Commit

Permalink
test: verify actual regression(s) we've had
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
  • Loading branch information
troglobit committed Dec 31, 2024
1 parent 0c2d017 commit fa142fd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ EXTRA_DIST = lib.sh opts.sh
EXTRA_DIST += api.sh local.sh unicode.sh remote.sh fwd.sh mark.sh \
memleak.sh facility.sh notify.sh rotate_all.sh secure.sh \
logger.sh listen.sh sighup.sh tag.sh hostname.sh \
property.sh raw.sh
property.sh raw.sh regression.sh
CLEANFILES = *~ *.trs *.log
TEST_EXTENSIONS = .sh
TESTS_ENVIRONMENT= unshare -mrun
Expand Down Expand Up @@ -32,5 +32,6 @@ TESTS += tag.sh
TESTS += hostname.sh
TESTS += property.sh
TESTS += raw.sh
TESTS += regression.sh

programs: $(check_PROGRAMS)
12 changes: 12 additions & 0 deletions test/regression.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
# Verify actual (minor) regressions that we've had in the project
. "${srcdir:-.}/lib.sh"

verify_tagpid()
{
logger -t foo -I 1234 "You won't get it up the steps."
grep -H 'foo\[1234\]' "$LOG"
}

run_step "Set up local syslog daemon" setup -m0
run_step "Verify tag[PID] regression" verify_tagpid

0 comments on commit fa142fd

Please sign in to comment.