Skip to content
Closed

test #249

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions .github/scripts/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ WORKSPACE="$(pwd)"
BUILD_DIR="$(pwd)/deps"
LOCK_FILE="/var/lock/uadk-lock"

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:/usr/lib/pkgconfig/
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64

version=$(openssl version)
major_version=$(echo $version | awk -F'[ .]' '{print $2}')
echo "OpenSSL major version is "$major_version

if (( major_version >= 3 )); then
dir="/usr/lib64/ossl-modules/"
else
dir="/usr/local/lib/engines-1.1/"
fi

lock() {
exit_code=1
pending=0
Expand Down Expand Up @@ -37,6 +50,7 @@ trap 'unlock' EXIT
clean_previous_installations() {
sudo rm -f /usr/local/lib/libwd*
sudo rm -rf /usr/local/lib/uadk/
sudo rm -f $dir/uadk_provider.*
}

detect_repository() {
Expand Down Expand Up @@ -79,19 +93,11 @@ build_uadk() {
exit 0
fi

sudo ./test/sanity_test.sh
sudo -E ./test/sanity_test.sh
}

build_uadk_engine() {
version=$(openssl version)
major_version=$(echo $version | awk -F'[ .]' '{print $2}')
echo "OpenSSL major version is "$major_version

if (( major_version >= 3 )); then
dir="/usr/lib64/ossl-modules/"
else
dir="/usr/local/lib/engines-1.1/"
fi
echo "build uadk_engine"

autoreconf -i
./configure --libdir="$dir" CFLAGS=-Wall
Expand Down
2 changes: 2 additions & 0 deletions src/uadk_engine_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
*
*/

//test

#define _GNU_SOURCE
#include <stdio.h>
#include <string.h>
Expand Down