mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-23 03:19:51 +00:00
sys/linux: add mount f2fs test
Add several unit tests that mount different versions of f2fs image, and the .sh file that generates these tests.
This commit is contained in:
parent
8a9bdb4a7e
commit
84b0c3d8f6
1
sys/linux/test/syz_image_mount_f2fs_0
Normal file
1
sys/linux/test/syz_image_mount_f2fs_0
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_1
Normal file
1
sys/linux/test/syz_image_mount_f2fs_1
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_10
Normal file
1
sys/linux/test/syz_image_mount_f2fs_10
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_11
Normal file
1
sys/linux/test/syz_image_mount_f2fs_11
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_12
Normal file
1
sys/linux/test/syz_image_mount_f2fs_12
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_13
Normal file
1
sys/linux/test/syz_image_mount_f2fs_13
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_14
Normal file
1
sys/linux/test/syz_image_mount_f2fs_14
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_15
Normal file
1
sys/linux/test/syz_image_mount_f2fs_15
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_16
Normal file
1
sys/linux/test/syz_image_mount_f2fs_16
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_17
Normal file
1
sys/linux/test/syz_image_mount_f2fs_17
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_18
Normal file
1
sys/linux/test/syz_image_mount_f2fs_18
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_19
Normal file
1
sys/linux/test/syz_image_mount_f2fs_19
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_2
Normal file
1
sys/linux/test/syz_image_mount_f2fs_2
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_20
Normal file
1
sys/linux/test/syz_image_mount_f2fs_20
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_21
Normal file
1
sys/linux/test/syz_image_mount_f2fs_21
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_22
Normal file
1
sys/linux/test/syz_image_mount_f2fs_22
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_23
Normal file
1
sys/linux/test/syz_image_mount_f2fs_23
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_3
Normal file
1
sys/linux/test/syz_image_mount_f2fs_3
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_4
Normal file
1
sys/linux/test/syz_image_mount_f2fs_4
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_5
Normal file
1
sys/linux/test/syz_image_mount_f2fs_5
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_6
Normal file
1
sys/linux/test/syz_image_mount_f2fs_6
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_7
Normal file
1
sys/linux/test/syz_image_mount_f2fs_7
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_8
Normal file
1
sys/linux/test/syz_image_mount_f2fs_8
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_f2fs_9
Normal file
1
sys/linux/test/syz_image_mount_f2fs_9
Normal file
File diff suppressed because one or more lines are too long
28
tools/create_f2fs_image.sh
Executable file
28
tools/create_f2fs_image.sh
Executable file
@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
# Copyright 2020 syzkaller project authors. All rights reserved.
|
||||
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
|
||||
|
||||
declare -a Op1=("-a 0 " "-a 1 ")
|
||||
declare -a Op2=("-s 1 " "-s 2 ")
|
||||
declare -a Op3=("-m " "")
|
||||
declare -a Op4=("-O encrypt " "-O compression " "")
|
||||
declare -i dex=0
|
||||
|
||||
dir=`dirname $0`
|
||||
echo $dir
|
||||
|
||||
for op1 in "${Op1[@]}"; do
|
||||
for op2 in "${Op2[@]}"; do
|
||||
for op3 in "${Op3[@]}"; do
|
||||
for op4 in "${Op4[@]}"; do
|
||||
echo mkfs.f2fs ${op1}${op2}${op3}${op4} disk.raw
|
||||
fallocate -l 64M disk.raw
|
||||
mkfs.f2fs "${op1}${op2}${op3}${op4}" disk.raw
|
||||
go run "$dir/syz-imagegen/imagegen.go" -image=./disk.raw -fs=f2fs > "$dir/../sys/linux/test/syz_image_mount_f2fs_$dex"
|
||||
rm disk.raw
|
||||
dex=dex+1
|
||||
done
|
||||
done
|
||||
done
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user