mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-04 22:43:12 +00:00
Add tests to CI
This commit is contained in:
parent
2cdb50b8d0
commit
1fd1cc10bc
13
.github/workflows/ci-reusable.yml
vendored
13
.github/workflows/ci-reusable.yml
vendored
@ -90,6 +90,19 @@ jobs:
|
||||
if: matrix.tests == 'tools' || matrix.tests == 'all'
|
||||
run: make -j${ncpu} testTools
|
||||
|
||||
## Part 5 C Binding ##
|
||||
- name: C Binding build
|
||||
if: matrix.tests == 'cbindingtest' || matrix.tests == 'all'
|
||||
run: |
|
||||
make -j${ncpu} libstorage
|
||||
|
||||
- name: C Binding test
|
||||
if: matrix.tests == 'cbindingtest' || matrix.tests == 'all'
|
||||
run: |
|
||||
cd examples/c
|
||||
gcc -o storage storage.c -L../../build -lstorage -Wl,-rpath,../../ -pthread
|
||||
LD_LIBRARY_PATH=../../build ./storage
|
||||
|
||||
status:
|
||||
if: always()
|
||||
needs: [build]
|
||||
|
||||
@ -72,6 +72,12 @@ tools_test () {
|
||||
job
|
||||
}
|
||||
|
||||
c_binding_test () {
|
||||
job_tests="cbindingtest"
|
||||
job_includes=""
|
||||
job
|
||||
}
|
||||
|
||||
# finds all files named test*.nim in the specified directory
|
||||
find_tests () {
|
||||
local dir=$1
|
||||
@ -129,6 +135,7 @@ all_tests () {
|
||||
contract_test
|
||||
integration_test
|
||||
tools_test
|
||||
c_binding_test
|
||||
}
|
||||
|
||||
# outputs jobs for the specified operating systems and all test types
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user