exe-name regularizations for cross-platform regression-testing

This commit is contained in:
John Kerl 2021-04-01 00:09:40 -04:00
parent 1387aaba56
commit fde896f64a
4 changed files with 22 additions and 24 deletions

View file

@ -8,7 +8,6 @@ package auxents
import (
"fmt"
"os"
"path"
"miller/src/auxents/regtest"
"miller/src/auxents/repl"
@ -42,7 +41,14 @@ func init() {
// ----------------------------------------------------------------
func mlrExeName() string {
return path.Base(os.Args[0])
// TODO:
// This is ideal, so if someone has a 'mlr.debug' or somesuch, the messages will reflect that:
// return path.Base(os.Args[0])
// ... however it makes automated regression-testing hard, cross-platform. For example,
// 'mlr' vs 'C:\something\something\mlr.exe'.
return "mlr"
}
// ================================================================

View file

@ -1,10 +1,12 @@
package lib
import (
"os"
"path"
)
func MlrExeName() string {
return path.Base(os.Args[0])
// TODO:
// This is ideal, so if someone has a 'mlr.debug' or somesuch, the messages will reflect that:
// return path.Base(os.Args[0])
// ... however it makes automated regression-testing hard, cross-platform. For example,
// 'mlr' vs 'C:\something\something\mlr.exe'.
return "mlr"
}

View file

@ -46,8 +46,8 @@ func GetArgs() []string {
if err != nil {
fmt.Fprintf(
os.Stderr,
"%s: internal error: could not parse Windows raw command line: %v\n",
os.Args[0], err,
"mlr: internal error: could not parse Windows raw command line: %v\n",
err,
)
}

View file

@ -5,9 +5,13 @@ TOP OF LIST:
d windows mrpl colors -- ? checking isatty also -- ?
* more about HTTP logs in miller -- doc and encapsulate:
mlr --icsv --implicit-csv-header --ifs space --oxtab --from elb-log put -q 'print $27'
* PR-template etc checklists
----------------------------------------------------------------
! reg-test/cases-pending -- windows debug
* cases-pending -> cases-pending-windows
* case-c-*.sh -> cases-pending-go-port
! auto-rerun first-10 failed .cmd's w/ -vvv (verbosityLevel as argument, not this-dot)
o parameterize that w/ a flag -- ?
@ -20,18 +24,6 @@ d windows mrpl colors -- ? checking isatty also -- ?
o doc re file format ...
o putenvs ...
* --populate functionality: automate more
o hand-prep the case.sh file
o script taking case.sh file; computing new dirname
o remap run_mlr -> mlr; mlr_expect_fail -> create a .should-fail
o expand $indir
o writing 000n.cmd out to new dirname
o running mlr regtest -p of it
o git rm'ing case*sh
o gmt rm'ing reg-test/expected/same.*
! reg-test/cases-pending/...
* port cases gradually over to regtest v2 ...
! suppression of 'mlr: ...' diffs .....
@ -40,8 +32,6 @@ d windows mrpl colors -- ? checking isatty also -- ?
! upload artifacts
https://github.com/actions/upload-artifact
https://forum.nim-lang.org/t/6371
* PR-template etc checklists
----------------------------------------------------------------
----------------------------------------------------------------