-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
1,123 additions
and
1 deletion.
There are no files selected for viewing
Submodule tinytest
deleted from
348933
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
*~ | ||
*.o | ||
\#*\# | ||
.\#* | ||
|
||
/tt-demo | ||
/tt-demo.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
VERSION=1.0.1 | ||
|
||
all: tt-demo | ||
|
||
.c.o: | ||
gcc -Wall -g -O2 -c $< | ||
|
||
tinytest.o: tinytest.h | ||
|
||
tinytest_demo.o: tinytest_macros.h tinytest.h | ||
|
||
OBJS=tinytest.o tinytest_demo.o | ||
|
||
tt-demo: $(OBJS) | ||
gcc -Wall -g -O2 $(OBJS) -o tt-demo | ||
|
||
lines: | ||
wc -l tinytest.c tinytest_macros.h tinytest.h | ||
|
||
clean: | ||
rm -f *.o *~ tt-demo | ||
|
||
DISTFILES=tinytest.c tinytest_demo.c tinytest.h tinytest_macros.h Makefile \ | ||
README | ||
|
||
dist: | ||
rm -rf tinytest-$(VERSION) | ||
mkdir tinytest-$(VERSION) | ||
cp $(DISTFILES) tinytest-$(VERSION) | ||
tar cf - tinytest-$(VERSION) | gzip -c -9 > tinytest-$(VERSION).tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Tinytest is a tiny little test framework written in C by Nick Mathewson. | ||
|
||
It is distributed under the 3-clause BSD license. You can use it in | ||
your own programs so long as you follow the license's conditions. | ||
|
||
It's been tested on Windows, Mac, and many of the free Unixes. | ||
|
||
It knows how to fork before running certain tests, and it makes | ||
text-mode output in a format I like. | ||
|
||
For info on how to use it, check out tinytest_demo.c. | ||
|
||
You can get the latest version using Git, by pulling from | ||
git://github.com/nmathewson/tinytest.git | ||
|
||
Patches are welcome. Patches that turn this from tinytest to hugetest | ||
will not be applied. If you want a huge test framework, use CUnit. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Things to do to tinytest | ||
|
||
o Replace the license with something recognizeable | ||
o Test forking on win32. | ||
o Write minimalist libevent-legacy thing. | ||
o port libevent tests; move libevent test main into a new regress_main | ||
o allow per-group forks. | ||
o See where we're at. | ||
|
||
- Allow groups to nest, perhaps. | ||
- Port Tor to use tinytest | ||
- Warn when running multiple tests with --no-fork |
Oops, something went wrong.