Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix example + distcheck #120

Merged
merged 3 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
os: ubuntu-latest
disable_fuse: "--disable-fuse"
check_features: demo
- name: distcheck
os: ubuntu-latest
- name: Old distro
os: ubuntu-20.04
- name: Mac
Expand Down Expand Up @@ -46,17 +48,20 @@ jobs:
brew install autoconf automake libtool pkgconfig squashfs coreutils
brew install --cask macfuse
if: runner.os == 'macOS'
- name: build
- name: configure
run: |
./autogen.sh
CPPFLAGS="-Werror" ./configure $DISABLE_FUSE
- name: build
run: |
make -j2 V=1
if: matrix.name != 'distcheck'
- name: test
run: |
make check
diff -u ci/expected-features/${CHECK_FEATURES:-all} ci/features
if: runner.os != 'macOS'
- name: test
if: runner.os != 'macOS' && matrix.name != 'distcheck'
- name: test mac
run: |
# On macOS loading the macfuse extension is needed. This
# command should load it without rebooting, except System
Expand All @@ -68,8 +73,13 @@ jobs:
diff -u ci/expected-features/${CHECK_FEATURES:-all} ci/features
fi
if: runner.os == 'macOS'
- name: distcheck
run: |
make distcheck
if: matrix.name == 'distcheck'
- name: install
run: sudo make install
if: matrix.name != 'distcheck'
- name: output
run: |
cp /tmp/*.log . || true
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ win/Release
ci/features
tests/lib.sh
tests/ll-smoke.sh
tests/ll-smoke-singlethreaded.sh
tests/umount-test.sh
4 changes: 3 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,13 @@ if SQ_DEMO_TESTS
TESTS += tests/ls.sh
endif
tests/ll-smoke.sh tests/ls.sh: tests/lib.sh

EXTRA_DIST += tests/ll-smoke-singlethreaded.sh tests/ls.sh tests/notify_test.sh

# Handle generation of swap include files
CLEANFILES = swap.h.inc swap.c.inc
EXTRA_DIST += swap.h.inc swap.c.inc
$(libsquashfuse_convenience_la_OBJECTS): swap.h.inc
swap.h.inc swap.c.inc: gen_swap.sh squashfs_fs.h Makefile
SED="$(SED)" $(srcdir)/gen_swap.sh $(srcdir)/squashfs_fs.h

EXTRA_DIST += ci/expected-features/all ci/expected-features/demo
7 changes: 4 additions & 3 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ detailed instructions:

For example on Ubuntu 22.04:

$ sudo apt install pkg-config liblzma-dev libfuse3-dev \
automake autoconf libtool fio \
zlib1g-dev liblzo2-dev liblzma-dev liblz4-dev libzstd-dev
$ sudo apt install gcc make pkg-config libfuse3-dev \
zlib1g-dev liblzo2-dev liblzma-dev liblz4-dev libzstd-dev \
automake autoconf libtool \
fuse3 fio squashfs-tools
$ ./autogen.sh
$ ./configure
$ make -j4
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ AS_IF([test "x$sq_tests" = x], [sq_tests=" none"])

AC_SUBST([sq_mksquashfs_compressors])
AC_CONFIG_FILES([tests/ll-smoke.sh],[chmod +x tests/ll-smoke.sh])
AC_CONFIG_FILES([tests/ll-smoke-singlethreaded.sh],[chmod +x tests/ll-smoke-singlethreaded.sh])
AC_CONFIG_FILES([tests/umount-test.sh],[chmod +x tests/umount-test.sh])


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
# the FUSE '-s' commandline option.
#
# So we just re-run the normal ll-smoke test with the '-s' option.
SFLL_EXTRA_ARGS="-s" $(dirname -- $0)/ll-smoke.sh
SFLL_EXTRA_ARGS="-s" @builddir@/tests/ll-smoke.sh
Loading