created tests

This commit is contained in:
jlamothe 2023-11-07 20:29:08 +00:00
parent b0a69bfc49
commit f2da510a6e
3 changed files with 66 additions and 0 deletions

10
mkfile
View File

@ -16,6 +16,16 @@
</$objtype/mkfile
cleantest:V:
cd test && mk $MKFLAGS clean
nuketest:V:
cd test && mk $MKFLAGS clean
clean:V: cleantest
nuke:V: nuketest
LIB=9unit.a
OFILES=9unit.$O
HFILES=9unit.h

31
test/main.c Normal file
View File

@ -0,0 +1,31 @@
/*
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 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
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <u.h>
#include <libc.h>
void
main()
{
print("Tests not yet implemented.\n");
exits(0);
}
//jl

25
test/mkfile Normal file
View File

@ -0,0 +1,25 @@
# 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 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
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
</$objtype/mkfile
HFILES=../9unit.h
LIB=../9unit.a
TEST=main
</sys/src/cmd/mktest
#jl