Cls is no longer needed
[ci.git] / scenarios / base / fs.yml
blobe62856f0c57cf56daac01afe71ec5909372955e7
1 meta:
2   name: "Base file system test"
3   harbours: []
5 tasks:
6   - boot
7   - command: "mkfile --size 2m /tmp/img"
8   - name: Checking image file has the right size.
9     command:
10       args: "ls /tmp"
11       assert:  "2097152"
12   - name: Starting file_bd
13     command:
14       args: "file_bd /tmp/img fbd0"
15       assert: "Accepting connections"
16       negassert: "Failed to start block device layer."
17   - name: Creating filesystem
18     command:
19       args: "mkfat --type 12 fbd0"
20       assert: "Success"
21       negassert: "Failed to create FAT file system"
22   - name: Creating a dedicated mount-point
23     command: "mkdir /tmp/mnt" 
24   - name: Mounting the file system
25     command:
26       args: "mount fat /tmp/mnt fbd0"
27       negassert: "Unable"
28   - name: Copy the file to the mounted filesystem
29     command: "cp demo.txt /tmp/mnt"
30   - name: Checking file copying actually succeeded
31     command:
32       args: "ls /tmp/mnt"
33       assert: "demo.txt"
34   - command: "umount /tmp/mnt"
35   - name: Checking demo.txt is not present when unmounted
36     command:
37       args: "ls /tmp/mnt"
38       negassert: "demo.txt"
39   - command:
40       args: "mount fat /tmp/mnt fbd0"
41       negassert: "Unable"
42   - name: Checking the file is still there after re-mounting
43     command:
44       args: "ls /tmp/mnt"
45       assert: "demo.txt"