# acmetest **Repository Path**: neilpang/acmetest ## Basic Information - **Project Name**: acmetest - **Description**: Unit test project for acme.sh project - **Primary Language**: Shell - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2016-10-04 - **Last Updated**: 2024-12-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # acmetest Unit test project for **acme.sh** project https://github.com/acmesh-official/acme.sh # Here are the latest status: | Platform | Status| -----------|-------| |freebsd| [![LetsEncrypt](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml/badge.svg)](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml) | |openbsd| NA | |pfsense| NA | |solaris| [![LetsEncrypt](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml/badge.svg)](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml)| |windows-cygwin| [![LetsEncrypt](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml/badge.svg)](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml)| |ubuntu:latest| [![LetsEncrypt](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml/badge.svg)](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml)| |debian:latest| [![LetsEncrypt](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml/badge.svg)](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml)| |centos:latest| [![LetsEncrypt](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml/badge.svg)](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml)| |fedora:latest| [![LetsEncrypt](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml/badge.svg)](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml)| |opensuse/leap:latest| [![LetsEncrypt](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml/badge.svg)](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml) | |alpine:latest| [![LetsEncrypt](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml/badge.svg)](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml)| |oraclelinux:latest| [![LetsEncrypt](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml/badge.svg)](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml)| |kalilinux/kali| [![LetsEncrypt](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml/badge.svg)](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml) | |archlinux:latest| [![LetsEncrypt](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml/badge.svg)](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml)| |mageia| [![LetsEncrypt](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml/badge.svg)](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml) | |gentoo/stage3-amd64| [![LetsEncrypt](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml/badge.svg)](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml)| |clearlinux:latest| [![LetsEncrypt](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml/badge.svg)](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml)| |almalinux:latest| [![LetsEncrypt](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml/badge.svg)](https://github.com/acmesh-official/acmetest/actions/workflows/LetsEncrypt.yml)| # How to run tests As simple as just run a script: ``` ./letest.sh ``` It will use cloudflare tunnel to test on your local machine. You can also test with your own domain, first point at least 2 of your domains to your machine, for example: `example.com` and `www.example.com` And make sure 80 port is not used by anyone else. ``` cd acmetest TestingDomain=example.com TestingAltDomains=www.example.com ./letest.sh ``` If you are not root, please use `sudo`, because the script will have to listen at `80` port: ``` cd acmetest sudo TestingDomain=example.com TestingAltDomains=www.example.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 ./rundocker.sh testall ``` It will use cloudflare tunnel test. Or use your own domain: ``` cd acmetest TestingDomain=example.com TestingAltDomains=www.example.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 ./rundocker.sh testall ``` Or: ``` cd acmetest TestingDomain=example.com TestingAltDomains=www.example.com ./rundocker.sh testplat ubuntu:latest ```