[Rt-commit] rt branch 5.0/enable-smime-tests created. rt-5.0.2-53-ged4bcf5a6a

BPS Git Server git at git.bestpractical.com
Fri Dec 17 21:18:47 UTC 2021


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/enable-smime-tests has been created
        at  ed4bcf5a6ac76459fb9cabc51c32ce316aa9fae1 (commit)

- Log -----------------------------------------------------------------
commit ed4bcf5a6ac76459fb9cabc51c32ce316aa9fae1
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Fri Dec 17 16:18:07 2021 -0500

    Document environment variables for Crypt tests

diff --git a/docs/hacking.pod b/docs/hacking.pod
index 15742fb759..432e201c20 100644
--- a/docs/hacking.pod
+++ b/docs/hacking.pod
@@ -214,6 +214,20 @@ running the tests in parallel.
 
     RT_TEST_PARALLEL=1 prove -l -j4 t/customfields/*.t
 
+=head2 Crypt Tests
+
+Tests for RT's GnuPG and SMIME features have some additional dependencies and
+environment variables to enable or disable tests.
+
+To run the GPG tests, you need a working C<gpg> executable of a version supported
+by L<GnuPG::Interface>. If your environment isn't set up for this, you can set
+C<SKIP_GPG_TESTS> to true to skip tests. The tests also check for C<gpg> and don't
+run if it's not found.
+
+Some of the SMIME tests access an internet resource to check certificates. This
+is disabled by default since some test systems don't have internet access. To
+run these tests, set C<RT_TEST_SMIME_REVOCATION> to true.
+
 =head2 Tests with Docker
 
 RT has a Dockerfile that can be used to run the test suite for some configurations.

commit 57ca895e15769f77d4447d1307e2e2ed62cec2da
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Fri Dec 17 16:15:50 2021 -0500

    Enable SMIME tests

diff --git a/Dockerfile b/Dockerfile
index e14f34877b..e1dce29450 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,6 +4,7 @@ FROM bpssysadmin/rt-base-debian-stretch
 
 ENV RT_TEST_PARALLEL 1
 ENV RT_TEST_DEVEL 1
+ENV RT_TEST_SMIME_REVOCATION 1
 ENV RT_DBA_USER root
 ENV RT_DBA_PASSWORD password
 ENV RT_TEST_DB_HOST=172.17.0.2

commit 6cd8a3e18c60c50e45853da2fe6256620e9af719
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Fri Dec 17 15:07:55 2021 -0500

    Recurse through t directories when running automated tests
    
    Without -r, prove runs only the first set of directories when
    testing, missing some tests deeper in the tree.

diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml
index f706368ad6..52c49db4c0 100644
--- a/.github/workflows/github-action.yml
+++ b/.github/workflows/github-action.yml
@@ -29,7 +29,7 @@ jobs:
           docker exec rt bash -c "cd /rt && ./configure.ac --with-db-type=SQLite --with-my-user-group --enable-layout=inplace --enable-developer --enable-externalauth --enable-gpg --enable-smime && mkdir -p /rt/var && make testdeps"
       - name: Run RT tests
         shell: bash
-        run: docker exec -e RT_TEST_PARALLEL=1 rt bash -c "cd /rt && prove -lj6 t/*"
+        run: docker exec -e RT_TEST_PARALLEL=1 rt bash -c "cd /rt && prove -lrj6 t/*"
       - name: Get run time
         shell: bash
         run: |
@@ -85,7 +85,7 @@ jobs:
           RT_DBA_PASSWORD: password
           DB_VERSION_TAG: 10.3
         shell: bash
-        run: docker exec -e RT_TEST_PARALLEL=1 -e RT_DBA_USER=root -e RT_DBA_PASSWORD=password rt bash -c "cd /rt && prove -lj6 t/*"
+        run: docker exec -e RT_TEST_PARALLEL=1 -e RT_DBA_USER=root -e RT_DBA_PASSWORD=password rt bash -c "cd /rt && prove -lrj6 t/*"
       - name: Get run time
         shell: bash
         run: |
@@ -146,7 +146,7 @@ jobs:
           RT_TEST_APACHE: /usr/sbin/apache2
           RT_TEST_APACHE_MODULES: /usr/lib/apache2/modules
         shell: bash
-        run: docker exec -e RT_TEST_PARALLEL=1 -e RT_DBA_USER=postgres -e RT_DBA_PASSWORD=password -u rt-user rt bash -c "cd /rt && prove -lj6 t/*"
+        run: docker exec -e RT_TEST_PARALLEL=1 -e RT_DBA_USER=postgres -e RT_DBA_PASSWORD=password -u rt-user rt bash -c "cd /rt && prove -lrj6 t/*"
       - name: Get run time
         shell: bash
         run: |

-----------------------------------------------------------------------


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list