summaryrefslogtreecommitdiffstats
path: root/tests/chkseq.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-11-05 14:31:37 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-11-05 14:31:37 +0100
commit6a99be469643ef0214729391f9cef4867b8e9fca (patch)
tree3ae549560d49a2fa2f7db507f561562f3f6a7594 /tests/chkseq.c
parenta5cd509be736fcff3c8ae3104712d2fe85776416 (diff)
downloadrsyslog-6a99be469643ef0214729391f9cef4867b8e9fca.tar.gz
rsyslog-6a99be469643ef0214729391f9cef4867b8e9fca.tar.xz
rsyslog-6a99be469643ef0214729391f9cef4867b8e9fca.zip
added pipe action test to testbench & testbench bugfix
Diffstat (limited to 'tests/chkseq.c')
-rw-r--r--tests/chkseq.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/chkseq.c b/tests/chkseq.c
index 8c5fc61a..6334d787 100644
--- a/tests/chkseq.c
+++ b/tests/chkseq.c
@@ -40,13 +40,14 @@ int main(int argc, char *argv[])
int val;
int i;
int ret = 0;
+ int verbose = 0;
int dupsPermitted = 0;
int start = 0, end = 0;
int opt;
int nDups = 0;
char *file = NULL;
- while((opt = getopt(argc, argv, "e:f:ds:")) != EOF) {
+ while((opt = getopt(argc, argv, "e:f:ds:v")) != EOF) {
switch((char)opt) {
case 'f':
file = optarg;
@@ -60,6 +61,9 @@ int main(int argc, char *argv[])
case 's':
start = atoi(optarg);
break;
+ case 'v':
+ ++verbose;
+ break;
default:printf("Invalid call of chkseq\n");
printf("Usage: chkseq file -sstart -eend -d\n");
exit(1);
@@ -76,6 +80,10 @@ int main(int argc, char *argv[])
exit(1);
}
+ if(verbose) {
+ printf("chkseq: start %d, end %d\n", start, end);
+ }
+
/* read file */
fp = fopen(file, "r");
if(fp == NULL) {