1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00
elinks/test.sh

33 lines
697 B
Bash
Raw Normal View History

2022-04-23 12:49:51 +00:00
#!/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