Skip to content

Commit 2092408

Browse files
authored
Merge pull request #120 from vasi/update-example2
Fix example + distcheck
2 parents 6835845 + ebfad36 commit 2092408

File tree

6 files changed

+23
-8
lines changed

6 files changed

+23
-8
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
os: ubuntu-latest
1818
disable_fuse: "--disable-fuse"
1919
check_features: demo
20+
- name: distcheck
21+
os: ubuntu-latest
2022
- name: Old distro
2123
os: ubuntu-20.04
2224
- name: Mac
@@ -46,17 +48,20 @@ jobs:
4648
brew install autoconf automake libtool pkgconfig squashfs coreutils
4749
brew install --cask macfuse
4850
if: runner.os == 'macOS'
49-
- name: build
51+
- name: configure
5052
run: |
5153
./autogen.sh
5254
CPPFLAGS="-Werror" ./configure $DISABLE_FUSE
55+
- name: build
56+
run: |
5357
make -j2 V=1
58+
if: matrix.name != 'distcheck'
5459
- name: test
5560
run: |
5661
make check
5762
diff -u ci/expected-features/${CHECK_FEATURES:-all} ci/features
58-
if: runner.os != 'macOS'
59-
- name: test
63+
if: runner.os != 'macOS' && matrix.name != 'distcheck'
64+
- name: test mac
6065
run: |
6166
# On macOS loading the macfuse extension is needed. This
6267
# command should load it without rebooting, except System
@@ -68,8 +73,13 @@ jobs:
6873
diff -u ci/expected-features/${CHECK_FEATURES:-all} ci/features
6974
fi
7075
if: runner.os == 'macOS'
76+
- name: distcheck
77+
run: |
78+
make distcheck
79+
if: matrix.name == 'distcheck'
7180
- name: install
7281
run: sudo make install
82+
if: matrix.name != 'distcheck'
7383
- name: output
7484
run: |
7585
cp /tmp/*.log . || true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ win/Release
3333
ci/features
3434
tests/lib.sh
3535
tests/ll-smoke.sh
36+
tests/ll-smoke-singlethreaded.sh
3637
tests/umount-test.sh

Makefile.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,13 @@ if SQ_DEMO_TESTS
126126
TESTS += tests/ls.sh
127127
endif
128128
tests/ll-smoke.sh tests/ls.sh: tests/lib.sh
129-
129+
EXTRA_DIST += tests/ll-smoke-singlethreaded.sh tests/ls.sh tests/notify_test.sh
130130

131131
# Handle generation of swap include files
132132
CLEANFILES = swap.h.inc swap.c.inc
133133
EXTRA_DIST += swap.h.inc swap.c.inc
134134
$(libsquashfuse_convenience_la_OBJECTS): swap.h.inc
135135
swap.h.inc swap.c.inc: gen_swap.sh squashfs_fs.h Makefile
136136
SED="$(SED)" $(srcdir)/gen_swap.sh $(srcdir)/squashfs_fs.h
137+
138+
EXTRA_DIST += ci/expected-features/all ci/expected-features/demo

README

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,10 @@ detailed instructions:
116116

117117
For example on Ubuntu 22.04:
118118

119-
$ sudo apt install pkg-config liblzma-dev libfuse3-dev \
120-
automake autoconf libtool fio \
121-
zlib1g-dev liblzo2-dev liblzma-dev liblz4-dev libzstd-dev
119+
$ sudo apt install gcc make pkg-config libfuse3-dev \
120+
zlib1g-dev liblzo2-dev liblzma-dev liblz4-dev libzstd-dev \
121+
automake autoconf libtool \
122+
fuse3 fio squashfs-tools
122123
$ ./autogen.sh
123124
$ ./configure
124125
$ make -j4

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ AS_IF([test "x$sq_tests" = x], [sq_tests=" none"])
9191

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

9697

tests/ll-smoke-singlethreaded.sh renamed to tests/ll-smoke-singlethreaded.sh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
# the FUSE '-s' commandline option.
88
#
99
# So we just re-run the normal ll-smoke test with the '-s' option.
10-
SFLL_EXTRA_ARGS="-s" $(dirname -- $0)/ll-smoke.sh
10+
SFLL_EXTRA_ARGS="-s" @builddir@/tests/ll-smoke.sh

0 commit comments

Comments
 (0)