Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasFella committed Oct 16, 2024
1 parent 7caf316 commit faebbe3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ jobs:

- name: Configure libQuotient
run: |
cmake -S $GITHUB_WORKSPACE -B build $CMAKE_ARGS -DQuotient_INSTALL_TESTS=ON
cmake -S $GITHUB_WORKSPACE -B build $CMAKE_ARGS -DQuotient_INSTALL_TESTS=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=1
- name: Regenerate API code
if: matrix.update-api
Expand Down Expand Up @@ -239,14 +239,25 @@ jobs:
run: |
mkdir .coverage && pushd .coverage
ls ..
find ../build -name '*.gcda' -print0 \
| xargs -0 gcov$GCC_VERSION -s $GITHUB_WORKSPACE -pr
# Coverage of the test source code is not tracked, as it is always 100%
# (if not, some tests failed and broke the build at an earlier stage)
rm -f quotest* autotests*
popd
echo "pwd:"
pwd
echo "..:"
ls ..
echo " - "
ls ../..
echo "in build folder:"
ls ../build
echo "in pwd"
ls
${{ steps.sonar.outputs.sonar-scanner-binary }} \
-Dsonar.host.url="$SONAR_SERVER_URL" \
-Dsonar.cfamily.compile-commands="build/compile_commands.json" \
-Dsonar.cfamily.compile-commands="home/runner/work/libquotient/libquotient/compile_commands.json" \
-Dsonar.cfamily.threads=2 \
-Dsonar.cfamily.gcov.reportsPath=.coverage
1 change: 1 addition & 0 deletions matrix-rust-sdk-crypto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ fn init(user_id: String, device_id: String, path: String) -> Box<CryptoMachine>
let device_id: Box<DeviceId> = device_id.into();

//TODO: use real pickle key
println!("path: {path}");
let store = SqliteCryptoStore::open(Path::new(&path), "123123123".into()).await.unwrap();

OlmMachine::with_store(&user_id, &device_id, store)
Expand Down

0 comments on commit faebbe3

Please sign in to comment.