Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bats #54

Closed
mcandre opened this issue Nov 3, 2019 · 3 comments
Closed

bats #54

mcandre opened this issue Nov 3, 2019 · 3 comments

Comments

@mcandre
Copy link
Owner

mcandre commented Nov 3, 2019

https://github.com/sstephenson/bats

@mcandre
Copy link
Owner Author

mcandre commented Aug 29, 2021

May write some toy examples to accompany the UNIX shell script examples, just Hello Worlds.

But as for managing portable scripts, that is better handled with more mature languages. For example, Go projects can use Mage. Haskell projects can use Shake. Node.js projects can use Grunt. Rust projects can use tinyrick. D projects can use Dale. Ruby projects can use Rake. And so on.

WSL has fortunately progress to the point that POSIX sh scripts can often serve for needs on Windows machines. Let's not talk about PowerShell.

C and C++ appear to be the main outliers. Perhaps there is a Rake-like equivalent, obviously not make/cmake, which offers C/C++ as the scripting language. Or we could defer to Ruby, Python, or Lua for such needs.

Ideally, would be nice to be able to reuse and import certain C/C++ files into the task runner scripts, in order to automatically populate common fields such as identifying the software build version. But that would require a lot of crazy integration with make/ninja/cmake/MSVC/etc. which would take forever to implement. And the task runner reconfiguration could be slow. For this reason, the task runner can be largely independent from the underlying build tool, e.g. cmake. We'd trade a little redundancy in terms of writing very small code portions twice, in favor of supporting a wide variety of practical C/C++ build tools.

@mcandre
Copy link
Owner Author

mcandre commented Aug 29, 2021

Relates to #220

@mcandre
Copy link
Owner Author

mcandre commented Jan 9, 2024

Sadly, bats has been deprecated.

@mcandre mcandre closed this as completed Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant