Skip to content

Commit dfe87e1

Browse files
more tests
1 parent 342136d commit dfe87e1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ci/tests.bats

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@ function teardown() {
5555
run squashfs-mount ${SQFSDIR}/tools-offset.sqfs@2048:/user-tools -- cat /user-tools/tools/fileB.txt
5656
}
5757

58+
@test "mount_offset_image_neg_offset" {
59+
run squashfs-mount ${SQFSDIR}/tools-offset.sqfs@-2048434:/user-tools -- cat /user-tools/tools/fileB.txt
60+
assert_failure
61+
assert_line --regexp ".*invalid value in offset:.*"
62+
}
63+
64+
@test "mount_offset_image_offset_twice" {
65+
run squashfs-mount ${SQFSDIR}/tools-offset.sqfs@2@2:/user-tools -- cat /user-tools/tools/fileB.txt
66+
assert_failure
67+
assert_line --regexp ".*invalid format:.*"
68+
}
69+
5870
@test "mount_images" {
5971
run squashfs-mount ${SQFSDIR}/binaries.sqfs:/user-environment ${SQFSDIR}/profilers.sqfs:/user-profilers ${SQFSDIR}/tools.sqfs:/user-tools -- cat /user-environment/spack-install/fileA.txt
6072
}

0 commit comments

Comments
 (0)