Started developing a unit test module

Folder per module in test/.  Header only tests with one actual main
file to implement a program that runs them.

Makefile runs the test and provides some eye candy to show if the test
succeeded or failed.  The tests, on the other hand, will show success
or failure for each of them.
This commit is contained in:
2024-04-28 15:33:47 +05:30
parent b775afee2c
commit f725c2a668
3 changed files with 67 additions and 4 deletions

8
test/.dir-locals.el Normal file
View File

@@ -0,0 +1,8 @@
;;; Directory Local Variables -*- no-byte-compile: t; -*-
;;; For more information see (info "(emacs) Directory Variables")
((nil . ((+license/license-choice . "GPLv2")))
(c-mode . ((flycheck-gcc-include-path . (".." "../.."))
(flycheck-clang-include-path . (".." "../.."))
(company-clang-arguments . ("-I.." "-I../../"))
(eval . (clang-format-mode t)))))

18
test/lib/main.c Normal file
View File

@@ -0,0 +1,18 @@
/* Copyright (C) 2024 Aryadev Chavali
* You may distribute and modify this code under the terms of the
* GPLv2 license. You should have received a copy of the GPLv2
* license with this file. If not, please write to:
* aryadev@aryadevchavali.com.
* Created: 2024-04-28
* Author: Aryadev Chavali
* Description:
*/
#include <stdio.h>
int main(void)
{
return 0;
}