make tests actually work
This commit is contained in:
@@ -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
|
||||
|
||||
11
test/mkfile
Normal file
11
test/mkfile
Normal 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
|
||||
13
test/test.c
Normal file
13
test/test.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <u.h>
|
||||
#include <libc.h>
|
||||
|
||||
#include "init.h"
|
||||
|
||||
void
|
||||
main()
|
||||
{
|
||||
test_init();
|
||||
exits(0);
|
||||
}
|
||||
|
||||
//jl
|
||||
Reference in New Issue
Block a user