1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-14 05:53:36 -04:00
elinks/test.sh
2022-04-23 14:49:51 +02:00

33 lines
697 B
Bash
Executable File

#!/bin/bash
#
# shell script to test elinks binary
#
clear
echo ' --/ \--'
echo ' --[ Welcome to the elinks test helper ]--'
echo ' --[ ]--'
echo ' --[ [*] use option 1 to run dump test ]--'
echo ' --\ /--'
echo ' '
# SET TEST
prep_test() {
if [ "$1" = "hello" ]; then
./src/elinks --dump ./test/hello.html
fi
}
# MAIN LOOP
prep_test hello
OPTS="hello exit"
select SEL in $OPTS; do
if [ ! "$SEL" = "exit" ]; then
prep_test $SEL
else
exit
fi
echo "--[ Current test : " $SEL" ]--"
done