ridiculousfish / littlecheck Goto Github PK
View Code? Open in Web Editor NEWTest driver for command line tools
License: Other
Test driver for command line tools
License: Other
E.g. with something like
count (echo -ne 'abcdefghi' | string split0)
# CHECK: 1
it's a tad nicer to have it look like
count (echo -ne 'abcdefghi' | string split0) # CHECK: 1
instead.
This ought to be installable with pip
, etc.
It feels a bit weird to always have to specify "fish=/usr/bin/fish".
It might be nice if you could just run littlecheck.py /path/to/check.fish
, and it defaulted to running "fish" via $PATH. This would make it easier if you're not planning on testing fish, which would also allow adding a "fish_test" wrapper around littlecheck for use by external tools.
This is "easy" to do: Just return text unchanged if we don't find a substitution. Since we run a shell, that'll do the checking for us. Detecting if a command doesn't exist is a tad trickier: I can only come up with checking if the shell returned 127.
I'm not sure this needs an option or anything, I'd probably just enable it.
Since I pushed today the macOS tests fail because they can't find /usr/bin/python, which they need for the "RUN" lines.
The main.yml does brew install python3
, but apparently that won't install /usr/bin/python.
Honestly, since this is macOS and I have no idea how and why brew installs things into places, I don't feel qualified to take it on.
I believe we could use RUN: python %s
here, but that would require brew to install a python into $PATH.
The alternative is to just remove macOS CI, which I am going to do for the time being because it isn't very important - there are no huge platform differences here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.