Skip to content

Commit

Permalink
Added replacing script and admin_scripts dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Aghili committed Oct 8, 2024
1 parent f8116d5 commit 2e79534
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/kani-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Run replace script
run: ./admin_scripts/replace.sh
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions kani_test.sh → admin_scripts/kani_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
cd ../kani
cd ~/kani
cargo build-dev
cd ../twizzler
cd ~/twizzler
../kani/scripts/cargo-kani --workspace --exclude monitor -Z stubbing -Z unstable-options --output-into-files

5 changes: 5 additions & 0 deletions admin_scripts/replace.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

# Replace 'input_file.txt' with your actual file name
sed -i '/const _SIZE_CHECKER: \[u8; 0x1000\]/s/0x1000/4112/' ../src/lib/nvme-rs/src/ds/identify/controller.rs

0 comments on commit 2e79534

Please sign in to comment.