mirror of
https://github.com/johnkerl/miller.git
synced 2026-08-03 21:13:09 +00:00
regression-test auxents
This commit is contained in:
parent
fcf94e588b
commit
66bcd6a567
5 changed files with 72 additions and 22 deletions
|
|
@ -56359,3 +56359,48 @@ i 10
|
|||
x 0.5026260055412137
|
||||
y 0.9526183602969864
|
||||
|
||||
mlr lecat --mono ./reg_test/input/line-ending-cr.bin
|
||||
hello[CR]there[CR]how[CR]are[CR]you[CR]mlr lecat --mono ./reg_test/input/line-ending-lf.bin
|
||||
hello[LF]
|
||||
there[LF]
|
||||
how[LF]
|
||||
are[LF]
|
||||
you[LF]
|
||||
mlr lecat --mono ./reg_test/input/line-ending-crlf.bin
|
||||
hello[CR][LF]
|
||||
there[CR][LF]
|
||||
how[CR][LF]
|
||||
are[CR][LF]
|
||||
you[CR][LF]
|
||||
mlr termcvt --cr2lf ./reg_test/input/line-ending-cr.bin
|
||||
hello
|
||||
there
|
||||
how
|
||||
are
|
||||
you
|
||||
mlr termcvt --cr2crlf ./reg_test/input/line-ending-cr.bin
|
||||
hello
|
||||
there
|
||||
how
|
||||
are
|
||||
you
|
||||
mlr termcvt --lf2cr ./reg_test/input/line-ending-lf.bin
|
||||
hello
there
how
are
you
mlr termcvt --lf2crlf ./reg_test/input/line-ending-lf.bin
|
||||
hello
|
||||
there
|
||||
how
|
||||
are
|
||||
you
|
||||
mlr termcvt --crlf2cr ./reg_test/input/line-ending-crlf.bin
|
||||
hello
there
how
are
you
mlr termcvt --crlf2lf ./reg_test/input/line-ending-crlf.bin
|
||||
hello
|
||||
there
|
||||
how
|
||||
are
|
||||
you
|
||||
mlr hex /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/line-ending-temp-1.bin
|
||||
mlr hex /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/line-ending-temp-2.bin
|
||||
mlr hex /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/line-ending-temp-3.bin
|
||||
mlr hex /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/line-ending-temp-4.bin
|
||||
mlr hex /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/line-ending-temp-5.bin
|
||||
mlr hex /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/line-ending-temp-6.bin
|
||||
|
|
|
|||
|
|
@ -36,14 +36,20 @@ else
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# mlr lecat, mlr termcvt, etc. do not accept initial '--no-mmap'.
|
||||
path_to_mlr_for_auxents="$path_to_mlr"
|
||||
|
||||
if [ "$1" = "--valgrind" ]; then
|
||||
# Leak-check the test suite. Needs 'make mlrg' first.
|
||||
# ../tools/clean-valg can be used to filter the output.
|
||||
path_to_mlr="valgrind --leak-check=full ${path_to_mlr}g"
|
||||
path_to_mlr_for_auxents="$path_to_mlr"
|
||||
elif [ "$1" = "--no-mmap" ]; then
|
||||
path_to_mlr_for_auxents="${path_to_mlr}"
|
||||
path_to_mlr="${path_to_mlr} --no-mmap"
|
||||
elif [ "$1" = "--valgrind-no-mmap" ]; then
|
||||
path_to_mlr="valgrind --leak-check=full ${path_to_mlr}g --no-mmap"
|
||||
path_to_mlr_for_auxents="valgrind --leak-check=full ${path_to_mlr}g"
|
||||
fi
|
||||
echo Using mlr executable $path_to_mlr
|
||||
|
||||
|
|
@ -89,11 +95,11 @@ run_mlr() {
|
|||
num_completed=`expr $num_completed + 1`
|
||||
}
|
||||
|
||||
run_mlr_quiet() {
|
||||
run_mlr_for_auxents() {
|
||||
# Use just "mlr" for info messages
|
||||
echo mlr "$@" >> $outfile
|
||||
# Use path to mlr for invoking the command
|
||||
$path_to_mlr "$@" >> $outfile
|
||||
$path_to_mlr_for_auxents "$@" >> $outfile
|
||||
# since set -e
|
||||
num_completed=`expr $num_completed + 1`
|
||||
}
|
||||
|
|
@ -6588,24 +6594,23 @@ run_mlr --oxtab --from $indir/abixy-het put '
|
|||
# ----------------------------------------------------------------
|
||||
# AUX ENTRIES
|
||||
|
||||
# TO DO: awkward with/without --no-mmap
|
||||
# run_mlr lecat --mono $indir/line-ending-cr.bin
|
||||
# run_mlr lecat --mono $indir/line-ending-lf.bin
|
||||
# run_mlr lecat --mono $indir/line-ending-crlf.bin
|
||||
run_mlr_for_auxents lecat --mono $indir/line-ending-cr.bin
|
||||
run_mlr_for_auxents lecat --mono $indir/line-ending-lf.bin
|
||||
run_mlr_for_auxents lecat --mono $indir/line-ending-crlf.bin
|
||||
|
||||
# run_mlr_quiet termcvt --cr2lf $indir/line-ending-cr.bin > $outdir/line-ending-temp-1.bin
|
||||
# run_mlr_quiet termcvt --cr2crlf $indir/line-ending-cr.bin > $outdir/line-ending-temp-2.bin
|
||||
# run_mlr_quiet termcvt --lf2cr $indir/line-ending-lf.bin > $outdir/line-ending-temp-3.bin
|
||||
# run_mlr_quiet termcvt --lf2crlf $indir/line-ending-lf.bin > $outdir/line-ending-temp-4.bin
|
||||
# run_mlr_quiet termcvt --crlf2cr $indir/line-ending-crlf.bin > $outdir/line-ending-temp-5.bin
|
||||
# run_mlr_quiet termcvt --crlf2lf $indir/line-ending-crlf.bin > $outdir/line-ending-temp-6.bin
|
||||
run_mlr_for_auxents termcvt --cr2lf $indir/line-ending-cr.bin > $outdir/line-ending-temp-1.bin
|
||||
run_mlr_for_auxents termcvt --cr2crlf $indir/line-ending-cr.bin > $outdir/line-ending-temp-2.bin
|
||||
run_mlr_for_auxents termcvt --lf2cr $indir/line-ending-lf.bin > $outdir/line-ending-temp-3.bin
|
||||
run_mlr_for_auxents termcvt --lf2crlf $indir/line-ending-lf.bin > $outdir/line-ending-temp-4.bin
|
||||
run_mlr_for_auxents termcvt --crlf2cr $indir/line-ending-crlf.bin > $outdir/line-ending-temp-5.bin
|
||||
run_mlr_for_auxents termcvt --crlf2lf $indir/line-ending-crlf.bin > $outdir/line-ending-temp-6.bin
|
||||
|
||||
# run_mlr hex $outdir/line-ending-temp-1.bin
|
||||
# run_mlr hex $outdir/line-ending-temp-2.bin
|
||||
# run_mlr hex $outdir/line-ending-temp-3.bin
|
||||
# run_mlr hex $outdir/line-ending-temp-4.bin
|
||||
# run_mlr hex $outdir/line-ending-temp-5.bin
|
||||
# run_mlr hex $outdir/line-ending-temp-6.bin
|
||||
run_mlr_for_auxents hex $outdir/line-ending-temp-1.bin
|
||||
run_mlr_for_auxents hex $outdir/line-ending-temp-2.bin
|
||||
run_mlr_for_auxents hex $outdir/line-ending-temp-3.bin
|
||||
run_mlr_for_auxents hex $outdir/line-ending-temp-4.bin
|
||||
run_mlr_for_auxents hex $outdir/line-ending-temp-5.bin
|
||||
run_mlr_for_auxents hex $outdir/line-ending-temp-6.bin
|
||||
|
||||
# ================================================================
|
||||
# A key feature of this regression script is that it can be invoked from any
|
||||
|
|
|
|||
|
|
@ -2220,7 +2220,7 @@ SEE ALSO
|
|||
|
||||
|
||||
|
||||
2017-05-14 MILLER(1)
|
||||
2017-05-15 MILLER(1)
|
||||
</pre>
|
||||
</div>
|
||||
<p/>
|
||||
|
|
|
|||
|
|
@ -2027,4 +2027,4 @@ SEE ALSO
|
|||
|
||||
|
||||
|
||||
2017-05-14 MILLER(1)
|
||||
2017-05-15 MILLER(1)
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: mlr
|
||||
.\" Author: [see the "AUTHOR" section]
|
||||
.\" Generator: ./mkman.rb
|
||||
.\" Date: 2017-05-14
|
||||
.\" Date: 2017-05-15
|
||||
.\" Manual: \ \&
|
||||
.\" Source: \ \&
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "MILLER" "1" "2017-05-14" "\ \&" "\ \&"
|
||||
.TH "MILLER" "1" "2017-05-15" "\ \&" "\ \&"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * Portability definitions
|
||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue