3
# Simple script to make a "shadow" test directory, using symbolic links.
4
# Typically you'd put the shadow in /tmp or another local disk
8
"") echo 'Usage: mkshadow <destdir>'; exit 1 ;;
13
if [ ! -d "$dest" ]; then
14
echo "Destination directory \`$dest' must exist!"
18
if [ ! -f run_make_tests ]; then
19
echo "The current directory doesn't appear to contain the test suite!"
23
suite=`pwd | sed 's%^/tmp_mnt%%'`
24
name=`basename "$suite"`
33
ln -s "$suite" .testdir
41
echo "Shadow test suite created in \`$dest/$name'."