github.com/crowdsecurity/crowdsec@v1.6.1/test/ansible/env/example.sh (about) 1 #!/bin/sh 2 3 ## DB_BACKEND is required, because even if it has a sensible default (sqlite) 4 ## all other variables can have an empty value. So if DB_BACKEND is missing you 5 ## may have forgot to set the environment for the test run. 6 ## One of "sqlite", "postgres", "pgx", "mysql" 7 DB_BACKEND=sqlite 8 9 ## Set this to test a binary package (deb, rpm..). If missing or false, 10 ## crowdsec will be built from sources and tested an non-root without installation. 11 # PACKAGE_TESTING=true 12 13 ## The URL of a crowdsec repository with the test scripts. 14 # TEST_SUITE_GIT="https://github.com/crowdsecurity/crowdsec" 15 16 ## The branch, tag or commit of the test scripts. 17 # TEST_SUITE_VERSION="master" 18 19 ## The path to a crowdsec.zip file containing the crowdsec sources with test scripts. 20 ## Overrides TEST_SUITE_GIT and TEST_SUITE_VERSION. 21 # TEST_SUITE_ZIP="/tmp/crowdsec.zip" 22 23 ## TEST_PACKAGE_VERSION_DEB is the version of the package under test. 24 ## Can be different from TEST_PACKAGE_VERSION_RPM in case of stable releases (no '-1' suffix). 25 # TEST_PACKAGE_VERSION_DEB=1.4.1 26 27 ## TEST_PACKAGE_VERSION_RPM is the version of the package under test. 28 ## Can be different from TEST_PACKAGE_VERSION_DEB in case of stable releases (rpm requires a '-1' suffix). 29 # TEST_PACKAGE_VERSION_RPM=1.4.1-1 30 31 ## The path to a crowdsec binary package (.deb, .rpm..). If both this and TEST_PACKAGE_VERSION_* are set, 32 ## the package from TEST_PACKAGE_VERSION_* will be installed first, then replaced by the package in the 33 ## provided file. This is a way to test upgrades. 34 # TEST_PACKAGE_FILE="/tmp/crowdsec.deb" 35 36 ## The path to a bundle with all the .deb and .rpm packages, split by architecture, distribution and version (see README). 37 # TEST_PACKAGE_DIR=/path/to/packages/1.4.1-rc1 38 39 ## A comma-separated list of test scripts to skip. Example: "02_nolapi.bats,03_noagent.bats" 40 # TEST_SKIP= 41 42 export DB_BACKEND 43 export PACKAGE_TESTING 44 export TEST_SUITE_GIT 45 export TEST_SUITE_VERSION 46 export TEST_SUITE_ZIP 47 export TEST_PACKAGE_VERSION_DEB 48 export TEST_PACKAGE_VERSION_RPM 49 export TEST_PACKAGE_FILE 50 export TEST_PACKAGE_DIR 51 export TEST_SKIP