18 lines
355 B
Bash
18 lines
355 B
Bash
#!/bin/bash
|
|
|
|
be_done 'Done reading' >> mock
|
|
|
|
if cat mock | "${DRHARNESS}" -t edit -d -m test -n -F chat.json ; then
|
|
echo "Tool exists and works: YEA"
|
|
else
|
|
echo "Fail"
|
|
exit 1
|
|
fi
|
|
|
|
if cat mock | "${DRHARNESS}" -t asdfjklasdfj -d -m test -n -F chat.json ; then
|
|
echo "Didn't fail on tool not existing: yikes"
|
|
exit 1
|
|
else
|
|
echo "Pass"
|
|
fi
|