Skip to content

Commit

Permalink
Add files back into tests/tinytest
Browse files Browse the repository at this point in the history
  • Loading branch information
kdm9 committed Jul 20, 2015
1 parent 98d7de8 commit 0a35e8e
Show file tree
Hide file tree
Showing 9 changed files with 1,123 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/tinytest
Submodule tinytest deleted from 348933
7 changes: 7 additions & 0 deletions tests/tinytest/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*~
*.o
\#*\#
.\#*

/tt-demo
/tt-demo.exe
30 changes: 30 additions & 0 deletions tests/tinytest/Makefile
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
18 changes: 18 additions & 0 deletions tests/tinytest/README
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.

12 changes: 12 additions & 0 deletions tests/tinytest/TODO
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

0 comments on commit 0a35e8e

Please sign in to comment.