test module for append_test_log()

This commit is contained in:
jlamothe 2023-11-10 20:30:44 +00:00
parent c3bace917d
commit a962eff7b4
4 changed files with 62 additions and 2 deletions

34
test/append-test-log.c Normal file
View File

@ -0,0 +1,34 @@
/*
9unit
Copyright (C) Jonathan Lamothe <jonathan@jlamothe.net>
This program 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 3 of the
License, or (at your option) any later version.
This program 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.
You should have received a copy of the GNU Lesser General Public
License along with this program. If not, see
<http://www.gnu.org/licenses/>.
*/
#include <u.h>
#include "../9unit.h"
#include "append-test-log.h"
// Public Functions
void
test_append_test_log(TestState *)
{
}
//jl

24
test/append-test-log.h Normal file
View File

@ -0,0 +1,24 @@
/*
9unit
Copyright (C) Jonathan Lamothe <jonathan@jlamothe.net>
This program 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 3 of the
License, or (at your option) any later version.
This program 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.
You should have received a copy of the GNU Lesser General Public
License along with this program. If not, see
<http://www.gnu.org/licenses/>.
*/
extern void test_append_test_log(TestState *);
//jl

View File

@ -17,8 +17,8 @@
</$objtype/mkfile </$objtype/mkfile
HFILES=../9unit.h util.h initial-state.h run-test.h HFILES=../9unit.h util.h initial-state.h run-test.h append-test-log.h
OFILES=util.$O initial-state.$O run-test.$O OFILES=util.$O initial-state.$O run-test.$O append-test-log.$O
LIB=../9unit.a LIB=../9unit.a
TEST=tests TEST=tests

View File

@ -25,6 +25,7 @@
#include "../9unit.h" #include "../9unit.h"
#include "initial-state.h" #include "initial-state.h"
#include "run-test.h" #include "run-test.h"
#include "append-test-log.h"
// Internal Prototypes // Internal Prototypes
@ -53,6 +54,7 @@ tests(TestState *s)
test_initial_state(s); test_initial_state(s);
test_run_test(s); test_run_test(s);
test_append_test_log(s);
} }
//jl //jl