Skip to content

grug-lang/grug-tests

Repository files navigation

grug tests

This is the test suite of my programming language called grug.

Running

CI Build

  1. Clone this repository, and clone grug next to it.
  2. Run cd grug-tests.
  3. Run the tests using VS Code's debugger by hitting F5, or running ./tests.sh ../grug.

You can get more info in the test its generated results directory (from objdump, readelf and xxd) by running OUTPUT_DLL_INFO= ./tests.sh ../grug.

If a test failed, you can reproduce it by replacing time(NULL) in main() with the failing test's printed seed.

Troubleshooting

If you're using a Debian-based distribution like Ubuntu 22.04, you might need to run sudo sysctl vm.mmap_rnd_bits=28 to fix address sanitizer, which tests.sh uses. See this GitHub thread for context.

If the tests don't pass, try running OLD_LD= ./tests.sh ../grug.

Dependencies

tests.sh requires and has been tested with:

More information

See the development.md file in this repository.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages