Compare commits

...

4 Commits

Author SHA1 Message Date
jlamothe 82e63531e6 remove qfmt on clean 2023-11-04 22:00:12 +00:00
jlamothe 8275f71479 make tests actually work 2023-11-04 21:56:07 +00:00
jlamothe 2a24b1586f renamed init_test() to test_init() and defined 2023-11-04 21:21:12 +00:00
jlamothe 3c0ab0ecd7 wip: defining init() function 2023-11-04 00:02:10 +00:00
5 changed files with 34 additions and 5 deletions

8
mkfile
View File

@ -1,12 +1,14 @@
</$objtype/mkfile
HEADERS=lib.h
CLEANFILES=qfmt
qfmt: main.$O lib.$O
$LD $LDFLAGS -o qfmt main.$O lib.$O
$O.qfmt: test.$O lib.$O
$LD $LDFLAGS -o $O.qfmt test.$O lib.$O
test: qfmt
TEST=qfmt
TEST=test
</sys/src/cmd/mktest

11
test/init.c Normal file
View File

@ -0,0 +1,11 @@
#include <u.h>
#include <libc.h>
void
test_init(void)
{
print("testing: init()\n");
print("tests not yet defined\n");
}
//jl

3
test/init.h Normal file
View File

@ -0,0 +1,3 @@
extern void test_init(void);
//jl

11
test/mkfile Normal file
View File

@ -0,0 +1,11 @@
</$objtype/mkfile
HEADERS=init.h ../init.h
$O.test: test.$O init.$O ../lib.$O
TEST=test
</sys/src/cmd/mktest
#jl

View File

@ -1,10 +1,12 @@
#include <u.h>
#include <libc.h>
#include "init.h"
void
main()
{
print("Tests not implemented yet.\n");
test_init();
exits(0);
}