-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #161 from nasa/157-kmc-support-of-null-iv
157 kmc support of null iv
- Loading branch information
Showing
26 changed files
with
1,809 additions
and
725 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,42 @@ | ||
name: MDB Build | ||
|
||
on: | ||
push: | ||
branches: [ main,dev ] | ||
pull_request: | ||
|
||
jobs: | ||
mariadb_build: | ||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. | ||
# You can convert this to a matrix build if you need cross-platform coverage. | ||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
runs-on: ubuntu-latest | ||
container: rbrown00/cryptolib:latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Configure CMake | ||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. | ||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type | ||
run: cmake -B ${{github.workspace}}/build -DDEBUG=1 -DMYSQL=1 -DLIBGCRYPT=1 -DKMCCRYPTO=0 | ||
|
||
- name: Build | ||
# Build your program with the given configuration | ||
run: cmake --build ${{github.workspace}}/build | ||
|
||
- name: Initailize SADB | ||
working-directory: ${{github.workspace}}/build | ||
#Maybe create a variable for this SQL location | ||
run: | | ||
cd /__w/CryptoLib/CryptoLib/src/crypto_sadb/sadb_mariadb_sql | ||
echo "----------------" | ||
/etc/init.d/mysql start | ||
mysql --host=localhost -uroot -pitc123! < delete_sadb.sql | ||
mysql --host=localhost -uroot -pitc123! < create_sadb.sql | ||
cd /__w/CryptoLib/CryptoLib/src/crypto_sadb/test_sadb_mariadb_sql | ||
mysql --host=localhost -uroot -pitc123! < create_sadb_unit_test_user_grant_permissions.sql | ||
mysql --host=localhost -uroot -pitc123! < create_sadb_jpl_unit_test_security_associations.sql | ||
cd /__w/CryptoLib/CryptoLib/build/bin | ||
./ut_mariadb | ||
# mysql --host=localhost -uroot -pitc123! < create_sadb_unit_test_security_associations.sql | ||
# Disabling this test for now, as there is no local containerization. | ||
#name: MDB Build | ||
# | ||
#on: | ||
# push: | ||
# branches: [ main,dev ] | ||
# pull_request: | ||
# | ||
#jobs: | ||
# mariadb_build: | ||
# # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. | ||
# # You can convert this to a matrix build if you need cross-platform coverage. | ||
# # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
# runs-on: ubuntu-latest | ||
# container: rbrown00/cryptolib:latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - name: Configure CMake | ||
# # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. | ||
# # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type | ||
# run: cmake -B ${{github.workspace}}/build -DDEBUG=1 -DMYSQL=1 -DLIBGCRYPT=1 -DKMCCRYPTO=0 | ||
# | ||
# - name: Build | ||
# # Build your program with the given configuration | ||
# run: cmake --build ${{github.workspace}}/build | ||
# | ||
# - name: Initailize SADB | ||
# working-directory: ${{github.workspace}}/build | ||
# #Maybe create a variable for this SQL location | ||
# run: | | ||
# cd /__w/CryptoLib/CryptoLib/src/crypto_sadb/sadb_mariadb_sql | ||
# echo "----------------" | ||
# /etc/init.d/mysql start | ||
# mysql --host=localhost -uroot -pitc123! < delete_sadb.sql | ||
# mysql --host=localhost -uroot -pitc123! < create_sadb.sql | ||
# cd /__w/CryptoLib/CryptoLib/src/crypto_sadb/test_sadb_mariadb_sql | ||
# mysql --host=localhost -uroot -pitc123! < create_sadb_unit_test_user_grant_permissions.sql | ||
# mysql --host=localhost -uroot -pitc123! < create_sadb_jpl_unit_test_security_associations.sql | ||
# cd /__w/CryptoLib/CryptoLib/build/bin | ||
# ./ut_mariadb | ||
# | ||
# # mysql --host=localhost -uroot -pitc123! < create_sadb_unit_test_security_associations.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.