Skip to content

MyNameIsTrez/grug-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grug tests

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

Running

CI Build

  1. Clone this repository and cd into it.
  2. Run git submodule update --init to clone the grug.c and grug.h files (for your own game you can just drop these files directly into your project).
  3. Run the tests with ./tests.sh.

Check the terminal or the generated results directory in tests to inspect any errors.

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.

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