31 lines
1.1 KiB
Markdown
31 lines
1.1 KiB
Markdown
# Development
|
|||
|
|
|
||
|
|
## Development History
|
||
|
|
|
||
|
|
| Phase | Commit | Description |
|
||
|
|
|-------|--------|-------------|
|
||
|
|
| 1 | `d8e8375` | Expression calculator with direct mode |
|
||
|
|
| 2 | `6162595` | Variables, arrays, program storage, control flow |
|
||
|
|
| 3 | `c2d73e9` | File I/O, PRINT USING, SAVE/LOAD, MID$ assignment, graphics stubs |
|
||
|
|
| 4 | `df5c308` | CHAIN, RUN "file", random-access I/O (FIELD/PUT/GET), CVI/CVS/CVD/MKI$/MKS$/MKD$ |
|
||
|
|
| 5 | `1f4c460` | CI, terminal I/O (raw mode), Sixel graphics, 13 classic programs, AND/OR precedence fix |
|
||
|
|
| 5+ | `169f16d` | SOUND/BEEP/PLAY with PulseAudio backend |
|
||
|
|
| 5+ | `691031a` | Fix RESTORE with line number, 8 Rosetta Code test programs |
|
||
|
|
|
||
|
|
## Tests
|
||
|
|
|
||
|
|
50 test programs in `tests/programs/`. Run the full suite:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
bash tests/run_tests.sh
|
||
|
|
```
|
||
|
|
|
||
|
|
Each test has a 5-second timeout and compares output against expected results.
|
||
|
|
|
||
|
|
## CI
|
||
|
|
|
||
|
|
GitHub Actions runs on every push to `main` and on pull requests. The workflow
|
||
|
|
builds the project with PulseAudio support and runs all 50 test programs.
|
||
|
|
|
||
|
|
See [`.github/workflows/ci.yml`](https://github.com/evvaletov/gwbasic-c/blob/main/.github/workflows/ci.yml).
|