Skip to content

Commit

Permalink
Merge pull request #243 from Gottox/fix/obsd-test
Browse files Browse the repository at this point in the history
Fix/obsd test
  • Loading branch information
Gottox authored May 30, 2024
2 parents 7d85f0b + 72a675e commit 5717441
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@ jobs:
- arm64
steps:
- uses: actions/checkout@v4
- uses: "cross-platform-actions/action@v0.19.0"
- uses: "cross-platform-actions/action@v0.24.0"
with:
operating_system: openbsd
architecture: ${{ matrix.arch }}
version: 7.2
version: 7.5
run: |
sudo pkg_add git meson squashfs-tools curl lz4 xz zstd
CC=clang meson setup /tmp/build \
Expand Down
2 changes: 2 additions & 0 deletions test/libsqsh/integration.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ UTEST(integration, sqsh_test_extended_dir) {
ASSERT_EQ(0, rv);
}

#ifndef __OpenBSD__
UTEST(integration, sqsh_test_xattr) {
const char *expected_value = "1234567891234567891234567890001234567890";
int rv;
Expand Down Expand Up @@ -523,6 +524,7 @@ UTEST(integration, sqsh_test_xattr) {
rv = sqsh__archive_cleanup(&sqsh);
ASSERT_EQ(0, rv);
}
#endif

struct Walker {
struct SqshArchive *sqsh;
Expand Down
6 changes: 5 additions & 1 deletion test/libsqsh/integration_create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ cat > $tmp/pf <<EOF
"a" F 0 777 2020 202020 echo a
"b" F 0 777 2020 202020 seq 1 1050000 | head -1050000 | tr -cd "\n" | tr '\n' b
"large_dir" D 0 777 2020 202020
"large_dir/link" s 777 2020 202020 ..
EOF
if [ `uname` != "OpenBSD" ]; then
cat >> $tmp/pf <<EOF
"large_dir" x user.force_extended=true
"a" x user.foo=1234567891234567891234567890001234567890
"b" x user.bar=1234567891234567891234567890001234567890
"large_dir/link" s 777 2020 202020 ..
EOF
fi

for i in $(seq 1 1000); do
printf '"large_dir/%i" I 0 777 2020 202020 f\n' "$i" >> $tmp/pf
Expand Down

0 comments on commit 5717441

Please sign in to comment.