Fix Travis CI script to checkout particular commits of external tests

This commit is contained in:
Jon Siwek 2018-08-21 16:47:52 -05:00
parent 553ce6aca1
commit ef3d451af3
6 changed files with 37 additions and 1 deletions

19
.update-changes.cfg Normal file
View file

@ -0,0 +1,19 @@
function new_version_hook
{
# This can be used to automatically adapt version numbers in files,
# except it's not used for that currently. Instead it updates the files
# which store the commit hashes associated with the version of external
# test suite repos to check out on a CI system.
version=$1
if [ -d testing/external/bro-testing ]; then
( cd testing/external/bro-testing && git rev-parse HEAD ) > testing/external/commit-hash.bro-testing
git add testing/external/commit-hash.bro-testing
fi
if [ -d testing/external/bro-testing-private ]; then
( cd testing/external/bro-testing-private && git rev-parse HEAD ) > testing/external/commit-hash.bro-testing-private
git add testing/external/commit-hash.bro-testing-private
fi
}

View file

@ -1,4 +1,11 @@
2.5-890 | 2018-08-21 16:47:52 -0500
* Fix Travis CI script to checkout particular commits of external tests
(Jon Siwek, Corelight)
* Fix signed/unsigned comparison warning (Jon Siwek, Corelight)
2.5-888 | 2018-08-21 15:54:56 -0500 2.5-888 | 2018-08-21 15:54:56 -0500
* Add --with-broker configure option (Jon Siwek, Corelight) * Add --with-broker configure option (Jon Siwek, Corelight)

View file

@ -1 +1 @@
2.5-888 2.5-890

View file

@ -0,0 +1 @@
489007e9bd035777cd1d33a9e1db9857449f805b

View file

@ -0,0 +1 @@
ec454469578db00176db08a60363e99cdf1867f3

View file

@ -198,10 +198,18 @@ run() {
make init make init
fi fi
if [ -d bro-testing ]; then
( cd bro-testing && git checkout `cat ../commit-hash.bro-testing` )
fi
if [ ! -d bro-testing-private ]; then if [ ! -d bro-testing-private ]; then
get_private_tests get_private_tests
fi fi
if [ -d bro-testing-private ]; then
( cd bro-testing-private && git checkout `cat ../commit-hash.bro-testing-private` )
fi
echo echo
echo "Running external tests ##############################################" echo "Running external tests ##############################################"
echo echo