~arges/ubuntu/quantal/rsyslog/fix-lp1059592

« back to all changes in this revision

Viewing changes to tests/testsuites/rsf_getenv.conf

Tags: 5.7.3-1
* New upstream release.
* Upload to unstable.
* debian/patches/02-typo_fix_equation_sign.patch
  - Removed, merged upstream.
* debian/patches/03-atomic_operations.patch
  - Removed, merged upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Test for RainerScript getenv() function (see .sh file for details)
 
2
# Note envvar MSGNUM must be set to "msgnum:"
 
3
# rgerhards, 2009-11-03
 
4
$IncludeConfig diag-common.conf
 
5
 
 
6
$ModLoad ../plugins/imtcp/.libs/imtcp
 
7
$MainMsgQueueTimeoutShutdown 10000
 
8
$InputTCPServerRun 13514
 
9
 
 
10
# set spool locations and switch queue to disk-only mode
 
11
$WorkDirectory test-spool
 
12
$MainMsgQueueFilename mainq
 
13
$MainMsgQueueType disk
 
14
 
 
15
$template outfmt,"%msg:F,58:2%\n"
 
16
$template dynfile,"rsyslog.out.log" # trick to use relative path names!
 
17
if $msg contains getenv('MSGNUM') then ?dynfile;outfmt