aboutsummaryrefslogtreecommitdiff
path: root/tests/common.sh
Commit message (Collapse)AuthorAgeFilesLines
* Add basic `defer` implementation.Mustafa Quraish2022-02-011-1/+1
| | | | | | We don't have any closures yet, so it's essentially the same as just moving the statement after the `defer` keyword to the end of the block/ right before returning from the function.
* Testing: Add support for testing stdout results, check builtinsMustafa Quraish2022-02-011-0/+35
|
* Update build system to use MakefileMustafa Quraish2022-01-301-21/+4
| | | | | | | | | `make` to compile the compiler `make XXX.out` to assemble/link `XXX.nasm` into an executable `make test` to run all tests `make tests/XXX` to run `tests/XXX.sh` test file `./run.sh <cupcc args>` to build, compile, run and show exit code
* Make the compiler / scripts work on Linux too (yay!)Mustafa Quraish2022-01-291-3/+14
|
* Implement blocks (lexically scoped) and conditionalsMustafa Quraish2022-01-291-1/+19
|
* Allow uninitialized variable declarationsMustafa Quraish2022-01-291-19/+4
|
* Add some tests for local variablesMustafa Quraish2022-01-291-0/+20
|
* Scripts: Reorganize a bit, add some rudimentary shell-testingMustafa Quraish2022-01-281-0/+27
Just to make sure we don't break stuff. We'll probably want better unit tests specifically for each part once we're more stable.