diff options
-rw-r--r-- | .github/workflows/macos.yml | 31 | ||||
-rw-r--r-- | .github/workflows/macos_test.yml | 21 | ||||
-rw-r--r-- | OPENBSD_BRANCH | 2 | ||||
-rw-r--r-- | patches/win32_amd64_bn_arch.h.patch | 6 | ||||
-rw-r--r-- | tests/CMakeLists.txt | 5 | ||||
-rw-r--r-- | tests/Makefile.am | 5 |
6 files changed, 36 insertions, 34 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..e813191 --- /dev/null +++ b/.github/workflows/macos.yml | |||
@@ -0,0 +1,31 @@ | |||
1 | # GitHub Actions workflow to run tests on macOS. | ||
2 | name: "macOS" | ||
3 | |||
4 | on: | ||
5 | push: {} | ||
6 | pull_request: {} | ||
7 | schedule: | ||
8 | - cron: "0 0 * * 0" # At 00:00 weekly on Sunday. | ||
9 | |||
10 | jobs: | ||
11 | test: | ||
12 | name: "${{ matrix.os }}/${{ matrix.arch }}" | ||
13 | runs-on: "${{ matrix.os }}" | ||
14 | permissions: | ||
15 | contents: read | ||
16 | strategy: | ||
17 | fail-fast: false | ||
18 | matrix: | ||
19 | os: ["macos-13", "macos-12"] | ||
20 | arch: ["arm64", "x86_64"] | ||
21 | steps: | ||
22 | - name: "Install required packages" | ||
23 | run: brew install automake | ||
24 | |||
25 | - name: "Checkout repository" | ||
26 | uses: actions/checkout@v4 | ||
27 | |||
28 | - name: "Run tests" | ||
29 | run: ./scripts/test | ||
30 | env: | ||
31 | ARCH: "${{ matrix.arch }}" | ||
diff --git a/.github/workflows/macos_test.yml b/.github/workflows/macos_test.yml deleted file mode 100644 index 9f88d77..0000000 --- a/.github/workflows/macos_test.yml +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | name: macos_ci | ||
2 | |||
3 | on: [push, pull_request] | ||
4 | |||
5 | jobs: | ||
6 | build-native: | ||
7 | strategy: | ||
8 | matrix: | ||
9 | os: [macos-13, macos-12] | ||
10 | arch: [arm64, x86_64] | ||
11 | runs-on: ${{ matrix.os }} | ||
12 | continue-on-error: false | ||
13 | env: | ||
14 | ARCH: ${{ matrix.arch }} | ||
15 | name: ${{ matrix.os }} - ${{ matrix.arch }} | ||
16 | steps: | ||
17 | - name: Install packages for macos | ||
18 | run: brew install automake | ||
19 | - uses: actions/checkout@main | ||
20 | - name: Run CI script | ||
21 | run: ./scripts/test | ||
diff --git a/OPENBSD_BRANCH b/OPENBSD_BRANCH index 1f7391f..fc2b08a 100644 --- a/OPENBSD_BRANCH +++ b/OPENBSD_BRANCH | |||
@@ -1 +1 @@ | |||
master | OPENBSD_7_4 | ||
diff --git a/patches/win32_amd64_bn_arch.h.patch b/patches/win32_amd64_bn_arch.h.patch index 20205dc..ad7c89d 100644 --- a/patches/win32_amd64_bn_arch.h.patch +++ b/patches/win32_amd64_bn_arch.h.patch | |||
@@ -1,17 +1,19 @@ | |||
1 | --- crypto/bn/arch/amd64/bn_arch.h.orig 2023-02-27 04:43:12.257874699 -0600 | 1 | --- crypto/bn/arch/amd64/bn_arch.h.orig 2023-02-27 04:43:12.257874699 -0600 |
2 | +++ crypto/bn/arch/amd64/bn_arch.h 2023-02-27 04:44:05.541873870 -0600 | 2 | +++ crypto/bn/arch/amd64/bn_arch.h 2023-02-27 04:44:05.541873870 -0600 |
3 | @@ -20,6 +20,10 @@ | 3 | @@ -20,6 +20,12 @@ |
4 | #ifndef HEADER_BN_ARCH_H | 4 | #ifndef HEADER_BN_ARCH_H |
5 | #define HEADER_BN_ARCH_H | 5 | #define HEADER_BN_ARCH_H |
6 | 6 | ||
7 | +#ifdef _WIN32 | 7 | +#ifdef _WIN32 |
8 | +#ifndef OPENSSL_NO_ASM | ||
8 | +#define OPENSSL_NO_ASM | 9 | +#define OPENSSL_NO_ASM |
10 | +#endif | ||
9 | +#else | 11 | +#else |
10 | + | 12 | + |
11 | #ifndef OPENSSL_NO_ASM | 13 | #ifndef OPENSSL_NO_ASM |
12 | 14 | ||
13 | #define HAVE_BN_ADD | 15 | #define HAVE_BN_ADD |
14 | @@ -85,6 +89,7 @@ | 16 | @@ -85,6 +91,7 @@ |
15 | *out_r0 = r0; | 17 | *out_r0 = r0; |
16 | } | 18 | } |
17 | #endif /* __GNUC__ */ | 19 | #endif /* __GNUC__ */ |
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index aa00455..d09b9da 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -769,11 +769,6 @@ add_executable(x509attribute x509attribute.c) | |||
769 | target_link_libraries(x509attribute ${OPENSSL_TEST_LIBS}) | 769 | target_link_libraries(x509attribute ${OPENSSL_TEST_LIBS}) |
770 | add_test(x509attribute x509attribute) | 770 | add_test(x509attribute x509attribute) |
771 | 771 | ||
772 | # x509_algor | ||
773 | add_executable(x509_algor x509_algor.c) | ||
774 | target_link_libraries(x509_algor ${OPENSSL_TEST_LIBS}) | ||
775 | add_test(x509_algor x509_algor) | ||
776 | |||
777 | # x509_asn1 | 772 | # x509_asn1 |
778 | add_executable(x509_asn1 x509_asn1.c) | 773 | add_executable(x509_asn1 x509_asn1.c) |
779 | target_link_libraries(x509_asn1 ${OPENSSL_TEST_LIBS}) | 774 | target_link_libraries(x509_asn1 ${OPENSSL_TEST_LIBS}) |
diff --git a/tests/Makefile.am b/tests/Makefile.am index 5d87bde..b860ace 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am | |||
@@ -775,11 +775,6 @@ TESTS += x509attribute | |||
775 | check_PROGRAMS += x509attribute | 775 | check_PROGRAMS += x509attribute |
776 | x509attribute_SOURCES = x509attribute.c | 776 | x509attribute_SOURCES = x509attribute.c |
777 | 777 | ||
778 | # x509_algor | ||
779 | TESTS += x509_algor | ||
780 | check_PROGRAMS += x509_algor | ||
781 | x509_algor_SOURCES = x509_algor.c | ||
782 | |||
783 | # x509_asn1 | 778 | # x509_asn1 |
784 | TESTS += x509_asn1 | 779 | TESTS += x509_asn1 |
785 | check_PROGRAMS += x509_asn1 | 780 | check_PROGRAMS += x509_asn1 |