Sign inSign up

techio/c-check-runner

By techio

Updated over 9 years ago

Image
0

149

techio/c-check-runner repository overview

c-check-runner

This is a C runner for the Check unit testing framework.

How to Use it

In order to use this runner for your project, edit the codingame.yml file and add the following lines to your project:

runner: techio/c-check-runner:1.1.0-gcc-6.3

You project will be compiled with the following:

autoreconf --install
./configure
make

On each run, it will execute:

CK_RUN_CASE=$2 tests/$1

Where $1 is the first argument of your command, which is the name of the binary and $2 is the second argument, which is the name of the test case to execute.

Example

You can use the example provided by Check. In the markdown file, the unit test can be called using:

@[Example]({"stubs": ["src/money.c"], "command": "check_money Core"})

Tag summary

Content type

Image

Digest

Size

449.6 MB

Last updated

over 9 years ago

docker pull techio/c-check-runner