miller-in-place UT

This commit is contained in:
John Kerl 2017-02-15 16:45:28 -05:00
parent 15fa800e07
commit 484fd6a2b2
3 changed files with 27 additions and 2 deletions

View file

@ -37992,6 +37992,18 @@ mlr cat then nothing ./reg_test/input/abixy ./reg_test/input/abixy
mlr cat then nothing then cat ./reg_test/input/abixy
================================================================
IN-PLACE PROCESSING
mlr -I --opprint head -n 2 /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp1 /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp2
mlr -I --opprint head -n 2
./reg_test/../../c/mlr: -I option (in-place operation) requires input files.
mlr -I --opprint -n head -n 2 /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp1
./reg_test/../../c/mlr: -I option (in-place operation) requires input files.
================================================================
MAPPER TEE REDIRECTS

View file

@ -3820,6 +3820,20 @@ run_mlr tac then nothing $indir/abixy
run_mlr cat then nothing $indir/abixy $indir/abixy
run_mlr cat then nothing then cat $indir/abixy
# ----------------------------------------------------------------
announce IN-PLACE PROCESSING
cp $indir/abixy $outdir/abixy.temp1
cp $indir/abixy $outdir/abixy.temp2
cat $outdir/abixy.temp1
cat $outdir/abixy.temp2
run_mlr -I --opprint head -n 2 $outdir/abixy.temp1 $outdir/abixy.temp2
cat $outdir/abixy.temp1
cat $outdir/abixy.temp2
mlr_expect_fail -I --opprint head -n 2 < $outdir/abixy.temp1
mlr_expect_fail -I --opprint -n head -n 2 $outdir/abixy.temp1
# ----------------------------------------------------------------
announce MAPPER TEE REDIRECTS

View file

@ -8,8 +8,7 @@ BUGFIXES
!! non-ephemeral logic permits references to out-of-scopes ?
-> ensure either ephemeral-transfer, or final-copy, at assignment time
* mlr -I expect-fail case w/o files; -n
-> ephemerals must live *only* in the eval-tree
* UT
* cookbook