Checkpoint.

This commit is contained in:
Robin Sommer 2011-06-25 21:06:19 -07:00
parent ff331763ef
commit c2524b995b
2 changed files with 8 additions and 11 deletions

View file

@ -1,8 +1,8 @@
PUBLIC_REPO=/home/robin/tmp/bro-tests
PUBLIC_REPO=git://git.bro-ids.org/bro-testing
all:
@for repo in *.git; do ( cd $$repo && btest ); done
@for repo in *.git; do (echo "==== $$repo" && cd $$repo && btest ); echo; done
init:
git clone $(PUBLIC_REPO) public.git

View file

@ -38,7 +38,7 @@ test repository:
.. console:
> cd public.git
> cd bro-testing.git
> btest
All the standard ``btest`` options can be used to run individual
@ -51,7 +51,7 @@ To update a test's baseline, first run ``btest`` in update mode:
.. console:
> cd public.git
> cd bro-testing.git
> btest -U tests/test-you-want-to-update
Then use ``git`` to commit the changes and push the changes upstream
@ -66,19 +66,16 @@ public one. A helper script is provided to set up such a repository:
.. console:
> ./scripts/create-new-repo private-repo /home/git/bro-private-repo
> ./scripts/create-new-repo <repo-name> <repo-url>
The first argument is the local name of the repository (it will be
cloned into ``<name>.git``); and then second is the path to the (bare)
cloned into ``<repo-name>.git``); and then second is the path to the
git repository. The repository will be initialized with a few standard
directories as well as a skeleton test in ``<name>.git/tests``. You
can then edit files as needed (and in particular add traces to
``<name>.git/traces``).
If you want the repository to be located somewhere else than the local
machine, just push the created local repository to the right place,
delete ``<name>.git``, and clone from the remote location. Likewise,
if you already have such a private test repository that you want to
If you already have such a private test repository that you want to
include into the test suite, clone it directly into
``<name>.git/tests``.
``<repo-name>.git``.