#!/bin/bash
source ../share/apkg-funclib

echo "GUI Protocol test suite"
cyan; echo "* THREE"; normal;
echo

autopackage_pipe="pipe$$"
mkfifo $autopackage_pipe

( # fork a subshell

waitForHELLO "W00t";
waitForHELLO "two"
terminateFE
terminateFE

) &     # the above script will be forked into the background, so the ttyfe will gain control of stdin/stdout

../share/apkg-ttyfe "$autopackage_pipe"
rm $autopackage_pipe
