/acmetest

Unit test project for acme.sh project

Primary LanguageShell

acmetest

Unit test project for acme.sh project https://github.com/acmesh-official/acme.sh

Here are the latest status:

Platform Status Last Run Time Comments
freebsd Thu, 16 Jul 2020 19:02:19 UTC Passed
openbsd Fri, 17 Jul 2020 03:08:00 UTC Passed
pfsense Fri, 17 Jul 2020 03:13:11 UTC Passed
solaris Fri, 06 Mar 2020 03:17:10 GMT Passed
windows-cygwin Thu, 16 Jul 2020 19:28:18 UTC Passed
ubuntu:latest Fri, 17 Jul 2020 03:31:58 UTC Passed
debian:latest Fri, 17 Jul 2020 03:35:18 UTC Passed
centos:latest Fri, 17 Jul 2020 03:38:49 UTC Passed
fedora:latest Fri, 17 Jul 2020 03:42:13 UTC Passed
opensuse/leap:latest Fri, 17 Jul 2020 03:45:35 UTC Passed
alpine:latest Fri, 17 Jul 2020 04:32:30 UTC Failed
oraclelinux:latest Fri, 17 Jul 2020 03:54:12 UTC Passed
kalilinux/kali Fri, 17 Jul 2020 03:57:28 UTC Passed
archlinux:latest Fri, 17 Jul 2020 04:01:15 UTC Passed
mageia Fri, 17 Jul 2020 04:04:31 UTC Passed
gentoo/stage3-amd64 Fri, 17 Jul 2020 04:53:45 UTC Failed
clearlinux:latest Fri, 17 Jul 2020 04:27:07 UTC Passed

How to run tests

First point at least 2 of your domains to your machine, for example: aa.com and www.aa.com

And make sure 80 port is not used by anyone else.

cd acmetest
TestingDomain=aa.com   TestingAltDomains=www.aa.com  ./letest.sh

How to run tests in all the platforms through docker.

You must have docker installed, and also point 2 of your domains to your machine.

Then test all the platforms :

cd acmetest
TestingDomain=aa.com   TestingAltDomains=www.aa.com  ./rundocker.sh  testall

The script will download all the supported platforms from the official docker hub, then run the test cases in all the supported platforms.

Then test single docker platform :

cd acmetest
TestingDomain=aa.com   TestingAltDomains=www.aa.com  ./rundocker.sh  testplat   centos:latest

Run tests with ngrok automatically

If you don't want to use 2 domains to test, we can use ngrok to test with temp domain.

Please register an free account at https://ngrok.com/

You will get your ngrok auth token. Then:

export NGROK_TOKEN="xxxxxxxxxx"

./letest.sh