Skip to content

Commit

Permalink
crate type swap on rs integration testing
Browse files Browse the repository at this point in the history
We need to be able to do this:
rust-lang/rust#20267
  • Loading branch information
tantaman committed Sep 15, 2023
1 parent cc469b1 commit fc01bde
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rs-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Integration Tests
run: |
cd core/rs/integration-check
cargo test
./test.sh
- name: Test Core
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rs-valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Integration Tests
run: |
cd core/rs/integration-check
cargo valgrind test
./test-valgrind.sh
- name: Test Core
run: |
Expand Down
3 changes: 3 additions & 0 deletions core/rs/integration-check/test-valgrind.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sed -i .bk 's/crate-type = \["staticlib"\]/crate-type = \["rlib"\]/' ../bundle/Cargo.toml
cargo valgrind test
mv ../bundle/Cargo.toml.bk ../bundle/Cargo.toml
3 changes: 3 additions & 0 deletions core/rs/integration-check/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sed -i .bk 's/crate-type = \["staticlib"\]/crate-type = \["rlib"\]/' ../bundle/Cargo.toml
cargo test
mv ../bundle/Cargo.toml.bk ../bundle/Cargo.toml
1 change: 1 addition & 0 deletions core/src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define CRSQLITE_UTIL

#include <ctype.h>
#include <stddef.h>

#include "crsqlite.h"

Expand Down

0 comments on commit fc01bde

Please sign in to comment.