Skip to content

Commit 36dbd48

Browse files
authored
Merge pull request #94 from os-checker/verify-rust-std
Chore: adjust scripts & CI; fix sqlite empty db by calling commit
2 parents e01dc70 + 9b46ae9 commit 36dbd48

File tree

11 files changed

+14112
-75
lines changed

11 files changed

+14112
-75
lines changed

.github/gen_core.json.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ $VERIFY_RUST_STD
2929

3030
popd
3131
pushd verify-rust-std
32-
cp library/core/db.sqlite3 ../assets/core.sqlite3
32+
ls -a library/core/db.sqlite3
33+
mv library/core/db.sqlite3 ../assets/core.sqlite3
3334
git checkout .

.github/workflows/test.yml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,33 @@ jobs:
3636
uses: actions/upload-artifact@v4
3737
with:
3838
name: artifact-libcore
39-
path: assets/core.json
39+
path: |
40+
assets/core.json
41+
assets/core.sqlite3
4042
compression-level: 9
4143
if-no-files-found: error
4244

4345
- name: Run tests
4446
run: cargo test -- --nocapture
4547

4648
kani-list:
49+
name: kani-list${{ matrix.autoharness }}
4750
runs-on: ubuntu-latest
48-
if: false
51+
strategy:
52+
matrix:
53+
autoharness: ["", "-autoharness"]
54+
if: true
55+
env:
56+
UNSTABLE_ARGS: -Z function-contracts -Z mem-predicates -Z float-lib -Z c-ffi -Z loop-contracts
57+
AUTO: ${{ matrix.autoharness }}
4958
steps:
59+
- name: Remove unnecessary software to free up disk space
60+
run: |
61+
# inspired by https://github.com/easimon/maximize-build-space/blob/master/action.yml
62+
df -h
63+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /usr/local/.ghcup
64+
df -h
65+
5066
- uses: actions/checkout@v4
5167
with:
5268
submodules: 'recursive'
@@ -56,9 +72,13 @@ jobs:
5672

5773
- name: Kani list
5874
working-directory: verify-rust-std
59-
env:
60-
UNSTABLE_ARGS: -Z function-contracts -Z mem-predicates -Z float-lib -Z c-ffi -Z loop-contracts
61-
run: kani list -Zlist ${{ env.UNSTABLE_ARGS }} --std ./library --format=json
75+
if: ${{ env.AUTO == '' }}
76+
run: kani list -Zlist ${{ env.UNSTABLE_ARGS }} --std ./library --format=json
77+
78+
- name: Kani list with Autoharness
79+
working-directory: verify-rust-std
80+
if: ${{ env.AUTO == '-autoharness' }}
81+
run: kani autoharness -Z autoharness --list -Z list ${{ env.UNSTABLE_ARGS }} --std ./library --format=json
6282

6383
- name: View list
6484
working-directory: verify-rust-std
@@ -67,7 +87,7 @@ jobs:
6787
- name: Upload kani-list.json
6888
uses: actions/upload-artifact@v4
6989
with:
70-
name: artifact-kani-list
90+
name: artifact-kani-list${{ env.AUTO }}
7191
path: verify-rust-std/kani-list.json
7292
compression-level: 9
7393
if-no-files-found: error

assets/diff.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
SELECT
2-
name,
3-
hash
2+
*
43
FROM
54
db
65
WHERE
7-
callees_len==1
6+
name LIKE 'char::convert%'
7+
-- hash=='22375753217274649884991570758697034622'
88
ORDER BY
99
name;

0 commit comments

Comments
 (0)