Skip to content
Snippets Groups Projects
Commit ea3dda68 authored by Recolic K's avatar Recolic K
Browse files

new version

parent 11d0436c
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ FROM ubuntu:20.04 ...@@ -3,7 +3,7 @@ FROM ubuntu:20.04
MAINTAINER root@recolic.net MAINTAINER root@recolic.net
RUN apt update RUN apt update
RUN apt install -y curl netcat iputils-ping python3.8 RUN DEBIAN_FRONTEND=noninteractive apt install -y curl netcat iputils-ping python3.8 dnsutils
RUN ln -s /usr/bin/python3.8 /usr/bin/python3 RUN ln -s /usr/bin/python3.8 /usr/bin/python3
# RUN pacman -Sy # RUN pacman -Sy
# RUN pacman -S --noconfirm curl netcat iputils grep # RUN pacman -S --noconfirm curl netcat iputils grep
......
...@@ -20,6 +20,7 @@ tests = [ ...@@ -20,6 +20,7 @@ tests = [
('./do.bash shortlink', 'Short Link'), ('./do.bash shortlink', 'Short Link'),
('./do.bash cc-dns', 'recolic.cc DNS'), ('./do.bash cc-dns', 'recolic.cc DNS'),
('./do.bash home-http', 'Home NAS & DDNS & HTTP'), ('./do.bash home-http', 'Home NAS & DDNS & HTTP'),
('./do.bash domain2ip', 'Domain to IP'),
] ]
# ('./do.bash ddns-home', 'DDNS home'), # ('./do.bash ddns-home', 'DDNS home'),
......
...@@ -153,6 +153,9 @@ function do_test () { ...@@ -153,6 +153,9 @@ function do_test () {
# NO icmp required. # NO icmp required.
curl -L https://recolic.net/hms.php | grep betterlisting || return $? curl -L https://recolic.net/hms.php | grep betterlisting || return $?
;; ;;
domain2ip )
dig +short 1.1.1.1.ip.recolic.cc | grep 1.1.1.1 || return $?
;;
* ) * )
echo PROGRAMMING ERROR: NO TARGET "$1" available. echo PROGRAMMING ERROR: NO TARGET "$1" available.
return 1 return 1
...@@ -186,7 +189,8 @@ if [[ "$1" = all ]]; then ...@@ -186,7 +189,8 @@ if [[ "$1" = all ]]; then
do_test_twice shortlink && do_test_twice shortlink &&
do_test_twice dl && do_test_twice dl &&
do_test_twice cc-dns && do_test_twice cc-dns &&
do_test_twice home-http do_test_twice home-http &&
do_test_twice domain2ip
exit $? exit $?
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment