cat /proc/cpuinfo
./util/opensslwrap.sh version -c
- name: make test
- run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
+ run: .github/workflows/make-test
+ - name: save artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: "ci@basic-gcc"
+ path: artifacts/
basic_clang:
runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
cat /proc/cpuinfo
./util/opensslwrap.sh version -c
- name: make test
- run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
+ run: .github/workflows/make-test
+ - name: save artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: "ci@basic-clang"
+ path: artifacts/
self-hosted:
if: github.repository == 'openssl/openssl'
- name: get cpu info
run: ./util/opensslwrap.sh version -c
- name: make test
- run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
+ run: .github/workflows/make-test
+ - name: save artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: "ci@self-hosted"
+ path: artifacts/
minimal:
runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
cat /proc/cpuinfo
./util/opensslwrap.sh version -c
- name: make test
- run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
+ run: .github/workflows/make-test
+ - name: save artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: "ci@minimal"
+ path: artifacts/
+ if-no-files-found: ignore
no-deprecated:
runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
cat /proc/cpuinfo
./util/opensslwrap.sh version -c
- name: make test
- run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
+ run: .github/workflows/make-test
+ - name: save artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: "ci@no-deprecated"
+ path: artifacts/
no-shared-ubuntu:
runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
cat /proc/cpuinfo
./util/opensslwrap.sh version -c
- name: make test
- run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
+ run: .github/workflows/make-test
+ - name: save artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: "ci@no-shared-ubuntu"
+ path: artifacts/
no-shared-macos:
runs-on: macos-latest
sysctl machdep.cpu
./util/opensslwrap.sh version -c
- name: make test
- run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
+ run: .github/workflows/make-test
+ - name: save artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: "ci@no-shared-macos"
+ path: artifacts/
non-caching:
runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
cat /proc/cpuinfo
./util/opensslwrap.sh version -c
- name: make test
- run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} OPENSSL_TEST_RAND_ORDER=0 TESTS="-test_fuzz* -test_ssl_* -test_sslapi -test_evp -test_cmp_http -test_verify -test_cms -test_store -test_enc -[01][0-9]"
+ run: .github/workflows/make-test OPENSSL_TEST_RAND_ORDER=0 TESTS="-test_fuzz* -test_ssl_* -test_sslapi -test_evp -test_cmp_http -test_verify -test_cms -test_store -test_enc -[01][0-9]"
+ - name: save artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: "ci@non-caching"
+ path: artifacts/
address_ub_sanitizer:
runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
cat /proc/cpuinfo
./util/opensslwrap.sh version -c
- name: make test
- run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} OPENSSL_TEST_RAND_ORDER=0
+ run: .github/workflows/make-test OPENSSL_TEST_RAND_ORDER=0
+ - name: save artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: "ci@address_ub_sanitizer"
+ path: artifacts/
fuzz_tests:
runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
cat /proc/cpuinfo
./util/opensslwrap.sh version -c
- name: make test
- run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} OPENSSL_TEST_RAND_ORDER=0 TESTS="test_fuzz*"
+ run: .github/workflows/make-test OPENSSL_TEST_RAND_ORDER=0 TESTS="test_fuzz*"
+ - name: save artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: "ci@fuzz_tests"
+ path: artifacts/
+ if-no-files-found: ignore
memory_sanitizer:
runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
cat /proc/cpuinfo
./util/opensslwrap.sh version -c
- name: make test
- run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} OPENSSL_TEST_RAND_ORDER=0
+ run: .github/workflows/make-test OPENSSL_TEST_RAND_ORDER=0
+ - name: save artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: "ci@memory_sanitizer"
+ path: artifacts/
threads_sanitizer:
runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
cat /proc/cpuinfo
./util/opensslwrap.sh version -c
- name: make test
- run: make V=1 TESTS="test_threads test_internal_provider test_provfetch test_provider test_pbe test_evp_kdf test_pkcs12 test_store test_evp test_quic*" test HARNESS_JOBS=${HARNESS_JOBS:-4}
+ run: .github/workflows/make-test V=1 TESTS="test_threads test_internal_provider test_provfetch test_provider test_pbe test_evp_kdf test_pkcs12 test_store test_evp test_quic*"
+ - name: save artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: "ci@threads_sanitizer"
+ path: artifacts/
enable_non-default_options:
runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
cat /proc/cpuinfo
./util/opensslwrap.sh version -c
- name: make test
- run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
+ run: .github/workflows/make-test
+ - name: save artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: "ci@enable_non-default_options"
+ path: artifacts/
full_featured:
runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
cat /proc/cpuinfo
./util/opensslwrap.sh version -c
- name: make test
- run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
+ run: .github/workflows/make-test
+ - name: save artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: "ci@full_featured"
+ path: artifacts/
no-legacy:
runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
cat /proc/cpuinfo
./util/opensslwrap.sh version -c
- name: make test
- run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
+ run: .github/workflows/make-test
+ - name: save artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: "ci@no-legacy"
+ path: artifacts/
legacy:
runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
cat /proc/cpuinfo
./util/opensslwrap.sh version -c
- name: make test
- run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
+ run: .github/workflows/make-test
+ - name: save artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: "ci@legacy"
+ path: artifacts/
# out-of-source-and-install checks multiple things at the same time:
# - That building, testing and installing works from an out-of-source
./util/opensslwrap.sh version -c
working-directory: ./build
- name: make test
- run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
+ run: ../source/.github/workflows/make-test
working-directory: ./build
+ - name: save artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: "ci@out-of-readonly-source-and-install-ubuntu"
+ path: build/artifacts/
- name: make install
run: make install
working-directory: ./build
./util/opensslwrap.sh version -c
working-directory: ./build
- name: make test
- run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
+ run: ../source/.github/workflows/make-test
working-directory: ./build
+ - name: save artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: "ci@out-of-readonly-source-and-install-macos"
+ path: build/artifacts/
- name: make install
run: make install
working-directory: ./build
use OpenSSL::Test qw/:DEFAULT srctop_file result_dir data_file/;
use OpenSSL::Test::Utils;
use File::Temp qw(tempfile);
-use File::Path 2.00 qw(rmtree);
+use File::Path 2.00 qw(rmtree mkpath);
setup("test_quic_multistream");
plan skip_all => "QUIC protocol is not supported by this OpenSSL build"
if disabled('quic');
-plan tests => 2;
+plan tests => 3;
+my $qlog_output;
if (!disabled('qlog') && $ENV{OSSL_RUN_CI_TESTS} == "1") {
- my $qlog_output = result_dir("qlog-output");
+ $qlog_output = result_dir("qlog-output");
print "# Writing qlog output to $qlog_output\n";
rmtree($qlog_output, { safe => 1 });
mkdir($qlog_output);
"running qlog verification script");
};
}
+
+SKIP: {
+ skip "no qlog", 1 if disabled('qlog');
+ skip "not running CI tests", 1 unless $ENV{OSSL_RUN_CI_TESTS};
+ skip "not running artifacts upload", 1 unless $ENV{OSSL_CI_ARTIFACTS_PATH};
+
+ subtest "copy qlog artifacts to upload directory" => sub {
+ plan tests => 1;
+
+ my $artifacts_path = $ENV{OSSL_CI_ARTIFACTS_PATH};
+ mkpath("${artifacts_path}/quic_multistream_test");
+ ok(run(cmd(["mv", "--", $qlog_output,
+ "${artifacts_path}/quic_multistream_test/"])));
+ };
+}