Minor updates to the external-testsuite scripts

Delete the unused Baseline folder, remove a Bro-era name from gitignore,
change create-new-repo to work with a second argument that is actually
a URL, and tweak whitespace. Expand description in README and update the
explanation of OPENSSL_ENABLE_MD5_VERIFY in subdir-btest.cfg.
This commit is contained in:
Christian Kreibich 2021-09-01 17:08:44 -07:00
parent 6997f83e57
commit b999448e3d
6 changed files with 28 additions and 29 deletions

View file

@ -1,31 +1,26 @@
#! /usr/bin/env bash
#
# Helper script for creating new external testing repos. See the
# README for details.
cwd=`pwd`
if [ $# != 2 ]; then
echo "usage: $0 <name> <dst-repo-dir>"
if [ -z "$1" ]; then
echo "usage: $0 <name> [<dst-repo-url>]"
exit 1
fi
name=`pwd`/$1
repo=$2
if [ -e $repo ]; then
echo "$repo already exists, aborting."
exit 1
fi
if [ -e $name ]; then
echo "$name already exists, aborting."
exit 1
fi
mkdir $repo
( cd $repo && git init --bare )
git clone $repo $name
mkdir $name
cd $name
git init
for dir in tests Baseline; do
mkdir $dir
@ -42,4 +37,7 @@ cp $cwd/`dirname $0`/skel/.gitignore .
git add * .gitignore
git commit -m "Repository initialized."
git push origin master
if [ -n "$repo" ]; then
git remote add origin $repo
fi