make tests actually work
This commit is contained in:
parent
2a24b1586f
commit
8275f71479
7
mkfile
7
mkfile
|
@ -1,12 +1,13 @@
|
|||
</$objtype/mkfile
|
||||
|
||||
HEADERS=lib.h
|
||||
|
||||
qfmt: main.$O lib.$O
|
||||
$LD $LDFLAGS -o qfmt main.$O lib.$O
|
||||
|
||||
$O.qfmt: test.$O test/init.$O lib.$O
|
||||
$LD $LDFLAGS -o $O.qfmt test.$O test/init.$O lib.$O
|
||||
test: qfmt
|
||||
|
||||
TEST=qfmt
|
||||
TEST=test
|
||||
|
||||
</sys/src/cmd/mktest
|
||||
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
#include <libc.h>
|
||||
|
||||
void
|
||||
test_init()
|
||||
test_init(void)
|
||||
{
|
||||
print("testing: init()");
|
||||
print("tests not yet defined");
|
||||
print("testing: init()\n");
|
||||
print("tests not yet defined\n");
|
||||
}
|
||||
|
||||
//jl
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
extern void test_init();
|
||||
extern void test_init(void);
|
||||
|
||||
//jl
|
||||
|
|
|
@ -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
|
|
@ -1,7 +1,7 @@
|
|||
#include <u.h>
|
||||
#include <libc.h>
|
||||
|
||||
#include "test/init.h"
|
||||
#include "init.h"
|
||||
|
||||
void
|
||||
main()
|
Loading…
Reference in New Issue
Block a user