Skip to content

Unit test project for acme.sh project

Notifications You must be signed in to change notification settings

JaZo/acmetest

 
 

Repository files navigation

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, 27 Aug 2020 19:02:12 UTC Passed
openbsd Fri, 28 Aug 2020 03:07:29 UTC Passed
pfsense Fri, 21 Aug 2020 03:13:16 UTC Passed
solaris Fri, 06 Mar 2020 03:17:10 GMT Passed
windows-cygwin Fri, 28 Aug 2020 03:23:16 UTC Passed
ubuntu:latest Fri, 28 Aug 2020 03:26:56 UTC Passed
debian:latest Fri, 28 Aug 2020 03:30:14 UTC Passed
centos:latest Fri, 28 Aug 2020 03:33:46 UTC Passed
fedora:latest Fri, 28 Aug 2020 03:37:04 UTC Passed
opensuse/leap:latest Fri, 28 Aug 2020 03:40:20 UTC Passed
alpine:latest Fri, 28 Aug 2020 03:43:02 UTC Passed
oraclelinux:latest Fri, 28 Aug 2020 03:46:24 UTC Passed
kalilinux/kali Fri, 28 Aug 2020 03:49:37 UTC Passed
archlinux:latest Fri, 28 Aug 2020 03:53:13 UTC Passed
mageia Fri, 28 Aug 2020 03:56:30 UTC Passed
gentoo/stage3-amd64 Fri, 28 Aug 2020 03:58:46 UTC Passed
clearlinux:latest Fri, 28 Aug 2020 04:02:11 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

About

Unit test project for acme.sh project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%