mirror12k / 42us-stupidity

a tool set for spawning a set of checker files to check against the output of a student's exercises

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

42 Stupidity

A tool for quickly test solutions for the piscine exercises.

Usage

  1. Clone 42us-stupidity
  2. Go inside 42us-stupidity
  3. Clone a day's repo inside 42us-stupidity
  4. Run ./spawn.pl <day_repo> config_d<day_number>.pl
    Replacing the placeholders! This will create the test files for all the exercises.
  5. Run ./tools/build.sh
    Build the exercies' files with the provided main.c's.
  6. Run ./tools/verify.sh
    This makes norminette verify all the files. (Only works from the iMacs in the labs.)
  7. Run ./tools/check_all.sh
    This will perform every test. If tests pass then they will say good otherwise errors are printed on the terminal.

Example workflow

$ git clone https://github.com/mirror12k/42us-stupidity.git stupidMoulinette
...
$ cd stupidMoulinette
$ cp ~/Desktop/day03 day03
$ ./spawn.pl day03 config_d03.pl
...
$ ./tools/build.sh
...
$ ./tools/verify.sh
...
$ ./tools/check_all.sh
...

About

a tool set for spawning a set of checker files to check against the output of a student's exercises


Languages

Language:Perl 59.4%Language:Perl 6 40.5%Language:C 0.1%