Skip to content

Commit 8253399

Browse files
committed
squashfs-tools: lint + add tests
Signed-off-by: Tuan Anh Tran <[email protected]>
1 parent 6cfb4a6 commit 8253399

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

squashfs-tools.yaml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ package:
99
environment:
1010
contents:
1111
packages:
12+
- attr-dev
1213
- bash
14+
- build-base
1315
- busybox
1416
- lz4-dev
17+
- lzo-dev
1518
- xz-dev
16-
- zstd-dev
1719
- zlib-dev
18-
- attr-dev
19-
- build-base
20-
- lzo-dev
20+
- zstd-dev
2121

2222
pipeline:
2323
- uses: git-checkout
@@ -47,11 +47,15 @@ update:
4747
enabled: true
4848
github:
4949
identifier: plougher/squashfs-tools
50-
# test:
51-
# pipeline:
52-
# - runs: |
53-
# apptainer version
54-
# apptainer help
55-
# # test adding remote. can't do build just yet because we dont have squashfs-tools pkg
56-
# - runs: |
57-
# apptainer remote add --no-login docker docker://docker.io
50+
51+
test:
52+
pipeline:
53+
- runs: |
54+
mksquashfs -version
55+
unsquashfs -help
56+
57+
- runs: |
58+
mkdir test_dir
59+
echo "Hello, World!" > test_dir/test_file.txt
60+
mksquashfs test_dir test.sfs
61+
test -f test.sfs && echo "mksquashfs test passed" || echo "mksquashfs test failed"

0 commit comments

Comments
 (0)