-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
523 additions
and
543 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import os | ||
|
||
TEST_POINT = "/mnt" | ||
TEST_PRESET_PATHS = [ | ||
("./behavior_test_judge.py", True), | ||
("./build_and_run_ovfs.sh", True), | ||
("./file_behavior_test.py", True), | ||
("./image.img", True), | ||
("./install_and_run_vm.sh", True), | ||
("./meta-data", True), | ||
("./path_behavior_test.py", True), | ||
("./seed.iso", True), | ||
("./ubuntu-20.04.6-live-server-amd64.iso", True), | ||
("./user-data", True), | ||
] | ||
|
||
def list_paths(): | ||
walked_entries = [] | ||
for dirpath, dirnames, filenames in os.walk(TEST_POINT): | ||
rel_dir = os.path.relpath(dirpath, TEST_POINT) | ||
for dirname in dirnames: | ||
walked_entries.append((os.path.join(rel_dir, dirname), False)) | ||
for filename in filenames: | ||
walked_entries.append((os.path.join(rel_dir, filename), True)) | ||
return walked_entries | ||
|
||
def test_path(): | ||
paths = list_paths() | ||
paths.sort() | ||
TEST_PRESET_PATHS.sort() | ||
assert paths == TEST_PRESET_PATHS | ||
|
||
if __name__ == "__main__": | ||
test_path() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: OVFS Format Check | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Format Check | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Run Format Check | ||
run: cargo fmt -- --check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.