Skip to content

Commit

Permalink
fixing name
Browse files Browse the repository at this point in the history
  • Loading branch information
mulatinho committed Jun 29, 2017
1 parent a72fa85 commit 0e8f0ab
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ You just need to put the header "mlt.h" and use our functions to test software.
$ vim yourtestfile.c # add include "mlt.h"
$ gcc -I $PWD/mlt/ -o yourtestfile yourtestfile.c && ./yourtestfile

Or you can automate a series of test using our Makefile as template

$ cp $PWD/mlt/Makefile .
$ vim Makefile # substitute by your tests

# Types of Test

- Simple instruction test,
- Time execution test,
- Input/Output comparision test,
- Interactive test.

# Some examples

tests/example1.c: mlt_assert(x == 1);
Expand All @@ -20,7 +32,7 @@ You just need to put the header "mlt.h" and use our functions to test software.
tests/example1.c: mlt_streq(strtwo,"yourp4ssw0rd");
tests/example2.c: mlt_assert(unit_series_tests() == 0);

# build and execute examples
# Build and execute examples

$ make && make test

Expand Down
4 changes: 2 additions & 2 deletions mlt.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* Copyright (C) 2015 Alexandre Mulatinho <alex at mulatinho.net>.
massert.h is a simple group of functions to test source files in C.
mlt.h is a simple group of directives to test source files in C.
This file is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The 'massert.h' file is distributed in the hope that it will be useful,
The 'mlt.h' file is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
Expand Down

0 comments on commit 0e8f0ab

Please sign in to comment.