Comments (4)
So, cases to be unified by the time we arrive to the build command in the makefiles:
- Running natively in
sh
(either Win or not) vs. running via the Windows .cmd frontend (-> how to runbuild.sh
at all?) - BB vs Git vs. some other shell (-> what path to add to
build.sh
?)
Also, in the makefiles, we are in an sh
shell child context, but the make tools will have their own idea of what's going on!
1.:
- Running .sh natively (via
run_cases
):
_sh_
is not set
SHELL
is set, and valid - Run via Win frontend:
_sh_
is set (to whatever can accept a .sh script as an argument directly)
SHELL
will also be set by the tools, but invalid (likely just a fake /bin/sh)
OK, so, run_cases
ought to normalize this to a common shell variable -- keeping its path transparently in the native format!
2.:
OK, I think just adding the _engine
dir (or wherever that build.sh
is) to the PATH
would eliminate the need to explicitly specifying its location in the makefile... It's a bit shaky tho: it would need to be made absolutely sure that the _engine
dir is prepended to the PATH
, and perhaps the script would also need to be renamed to sg. less generic to mitigate the risk of accidental mismatches with other such things also on the PATH
!
<Mmm... An hour later...>
Dammit, extending the PATH
already requires dispatching on the host's idea of what it should look like... :-/
And no, just the ':' vs. ';' is not enough...:
get_path_sep(){
#!! Umm, OK, yeah, but... Well... On Windows, but with an env. where the shell does
#!! path conversion from C:/... to /c/..., then just switching path-sep. won't help!
...
}
from space_test.
The problem is that e.g. in the Git shell, which meticulously fakes everything, $0
is still not converted! :-(
That prevents us from using it as the dir anchor as-is.
So... E.g. https://stackoverflow.com/a/13701495/1479945:
echo "/$winpath" | sed -e 's/\\/\//g' -e 's/:///'
But, better yet, should use cygpath
instead! -- The problematic environments ship with one anyway! (That itself is quite a good sign that it's a MinGW-like env!)
from space_test.
Incredibly, cygpath -m
for some reason screwed up paths for me, replacing the ":" after the drive (and quotes around the path) with some unprintable chars! :-o
from space_test.
So far so good though (as of v0.13), so keeping the status quo...
from space_test.
Related Issues (20)
- More robust error handling, aborting scripts
- SH echo "thing (in parenthesis)" crashes! :-o
- Missing trailing newline in EXPECT is ignored. Should it be?
- Can't disable entire sub-subdirs with prefixing
- The find-based run mode fails with spaces in the pattern!
- run pattern* doesn't find some cases
- Case 5 and 8 abort on the GitHub runner!
- Either undo the nice BB/noglob run mode, or fix it for normal shells
- Do not cd in/out for each RUN/SH: do it once in run_test!
- Add some explicit sort modes!...
- Add a make-backed REQUIRE statement to handle inter-TC dependencies
- Get rid of RUN_WITH_PATH_LOOKUP, make it automatic
- Failed TC build should ABORT, not FAIL (now that it can)
- Case scripts writing to stderr cause abort! :-/
- RUN thing 2> /dev/null doesn't mute stderr!
- Something eats a slash from `RUN test //`! :-o
- Check/make it run, again, on w64devkit!
- `cd` to the test-case dir for the TC build, too?!
- OK, I managed to kill picking up .case files in subdirs...
- Persist the last reports until the next non-query ("destructive") run
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from space_test.