You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Runs a test of the submit tool using localhost as remote worker.
#
if [ -f ../../configuration ]
then
echo "ERROR! This test will write its own configuration file but ../../configuration exists already. Rename or remove ../../configuration before trying again."
exit -1
fi
# Make ssh key
sshkey="$(pwd)/rsa_id_to_localhost"
rm -rf "$sshkey" "$sshkey.pub"
echo "You can enter an empty passphrase: this key is only used on localhost and removed afterwards."
ssh-keygen -t rsa -b 4096 -f "$sshkey"
# Make the configuration file
TMP="$HOME" #Must be on a pathname that include the name of the user!
if [ ! -d "$TMP" ]; then
echo "ERROR! could not find user-specific space under \$HOME. Aborting test."
exit -1
fi
mkdir "$TMP/fake_remote"
if [ 0 -ne "$?" ]; then
echo "ERROR! Failed to make work space at '$TMP/fake_remote'"