summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-11-18 12:13:25 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-11-18 12:13:25 +0100
commit9ab64b00e0669ccfd7d2f378046d2bc3bbe7af16 (patch)
tree3452619f0a30ad065ec6dd0bd34f3795592bb2dd /tests
parent9ddfce29754ee268ea50de06c24a2fbcf90f9915 (diff)
downloadrsyslog-9ab64b00e0669ccfd7d2f378046d2bc3bbe7af16.tar.gz
rsyslog-9ab64b00e0669ccfd7d2f378046d2bc3bbe7af16.tar.bz2
rsyslog-9ab64b00e0669ccfd7d2f378046d2bc3bbe7af16.zip
testbench: sort must be numericaly to cover all (upcoming) cases
Diffstat (limited to 'tests')
-rwxr-xr-xtests/diag.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/diag.sh b/tests/diag.sh
index 7883d93b..71d62111 100755
--- a/tests/diag.sh
+++ b/tests/diag.sh
@@ -142,7 +142,7 @@ case $1 in
'seq-check') # do the usual sequence check to see if everything was properly received. $2 is the instance.
rm -f work
cp rsyslog.out.log work-presort
- sort < rsyslog.out.log > work
+ sort -g < rsyslog.out.log > work
# $4... are just to have the abilit to pass in more options...
# add -v to chkseq if you need more verbose output
./chkseq -fwork -s$2 -e$3 $4 $5 $6 $7
@@ -155,7 +155,7 @@ case $1 in
# a duplicateof seq-check, but we could not change its calling conventions without
# breaking a lot of exitings test cases, so we preferred to duplicate the code here.
rm -f work2
- sort < rsyslog2.out.log > work2
+ sort -g < rsyslog2.out.log > work2
# $4... are just to have the abilit to pass in more options...
# add -v to chkseq if you need more verbose output
./chkseq -fwork2 -s$2 -e$3 $4 $5 $6 $7
@@ -168,7 +168,7 @@ case $1 in
'gzip-seq-check') # do the usual sequence check, but for gzip files
rm -f work
ls -l rsyslog.out.log
- gunzip < rsyslog.out.log | sort > work
+ gunzip < rsyslog.out.log | sort -g > work
ls -l work
# $4... are just to have the abilit to pass in more options...
./chkseq -fwork -v -s$2 -e$3 $4 $5 $6 $7