Tekel

This is a program for testing command-line programs.

Tutorial

Suppose, you rewrote echo in Rust. Now you want to test it. E.g. echo -n hello should produce “hello”.

  1. Make a directory named as your program with arguments:

    mkdir 'echo -n'

  2. Create an input file for each case you want to test:

    touch 'echo -n/hello'

  3. Create a file containing the expected output:

    printf "hello" > 'echo -n/hello.out'

  4. Test your new echo:

    tekel 'echo -n'

Dependencies

Download

tekel