#!/bin/bash # $HeadURL$ $LastChangedRevision$ . $(ade-config ade_share_prefix)/include/adetestsupport.sh echo "configuring environment ..." mkdir etc bin export PIN_DIR=$(pwd)/etc export PATH=$(pwd)/bin:$PATH echo -e "#!/bin/bash\nexec cat > \$1" > bin/catonto chmod 755 bin/catonto export EDITOR=catonto ln -s $(which pin) bin/greetings ln -s $(which pin) bin/teams echo "running greetings with no parameters and inspecting ..." greetings || true cat etc/databases.conf echo echo "initialising greetings and teams ..." echo -e "n\nl\ni" | greetings -i || true echo -e "n\np\ni" | teams -i || true echo cat etc/databases.conf echo echo "editing greetings ..." echo -e "hello\ngoodbye" | greetings cat etc/greetings || true echo echo "searching greetings ..." greetings hel echo echo "editing teams ..." echo -e "Fred Perry\nPat Hughes\n\nGeorge Lott\nLester Stoefen\n\nJack Crawford\nAdrian Quist" | teams cat etc/teams || true echo echo "searching teams (#1/2) ..." teams Crawford echo echo "searching teams (#2/2) ..." teams or echo echo "all done"