Commit a4772a4d authored by Martin Pool's avatar Martin Pool

Start to unify the "make check" and build farm test suites

parent 2ee91aed
...@@ -86,3 +86,11 @@ finddead: ...@@ -86,3 +86,11 @@ finddead:
nm *.o */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt nm *.o */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
nm *.o */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt nm *.o */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
comm -13 nmused.txt nmfns.txt comm -13 nmused.txt nmfns.txt
# 'check' is the GNU name, 'test' is the name for everybody else :-)
.PHONY: check test
test: check
check:
rsync_bin=`pwd`/rsync testdir=$(srcdir)/testsuite $(srcdir)/testsuite/master.test
...@@ -5,6 +5,3 @@ top-level source directory. (Not implemented yet.) ...@@ -5,6 +5,3 @@ top-level source directory. (Not implemented yet.)
They also run automatically on the build farm, and you can see the They also run automatically on the build farm, and you can see the
results on http://build.samba.org/. That's controlled by the file results on http://build.samba.org/. That's controlled by the file
./runlist. ./runlist.
TEST_ALL="rsync-hello"
#! /bin/sh
# Copyright (C) 2001 by Martin Pool <mbp@samba.org>
# rsync top-level test script -- this invokes all the other more
# detailed tests in order. This script can either be called by 'make
# check' or through 'runlist' from the build farm.
# We need a few environment variables to know what to test.
echo "============================================================"
echo "$0 running"
test_names="rsync-hello"
export rsync_bin
export testdir
cd "$testdir"
for testbase in $test_names
do
echo "------------------------------------------------------------"
echo "----- $testbase running"
testscript="$testbase.test"
if test \! -f "$testscript"
then
echo "$testscript does not exist" >&2
continue
fi
if sh $testscript
then
echo "----- $testbase completed succesfully"
else
echo "----- $testbase failed!"
fi
done
echo '------------------------------------------------------------'
#! /bin/sh #! /bin/sh
set -x "$rsync_bin" --version || exit 1
. rsync.fns
"$rsync" --version || exit 1
#! /bin/sh
rsync="$prefix/bin/rsync"
...@@ -6,4 +6,12 @@ ...@@ -6,4 +6,12 @@
echo "$0 running" echo "$0 running"
TEST_ALL="rsync-hello" TEST_ALL="master"
# Also, we need a little bit of special set up when running from the
# build farm.
# It's already been installed in a scratch copy of /usr.
rsync_bin="$prefix/bin/rsync"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment