btrfs-progs: tests: copy fsstress.c from fstests
The fsstress tool is a useful file generator, pull it from fstests as it's not packaged as a standalone tool anywhere and the LTP version is out of date. The file has been modified to build, some xfs-specific ioctls are not supported. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
19f0b3dbcd
commit
2341d7fb9b
8
Makefile
8
Makefile
|
@ -451,7 +451,7 @@ else
|
||||||
$(Q)TEST_ENABLE_OVERRIDE=true TEST_ARGS_CHECK=--mode=lowmem bash tests/fsck-tests.sh
|
$(Q)TEST_ENABLE_OVERRIDE=true TEST_ARGS_CHECK=--mode=lowmem bash tests/fsck-tests.sh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
test-misc: btrfs btrfs-image btrfs-corrupt-block mkfs.btrfs btrfstune fssum \
|
test-misc: btrfs btrfs-image btrfs-corrupt-block mkfs.btrfs btrfstune fssum fsstress \
|
||||||
btrfs-find-root btrfs-select-super btrfs-convert
|
btrfs-find-root btrfs-select-super btrfs-convert
|
||||||
@echo " [TEST] misc-tests.sh"
|
@echo " [TEST] misc-tests.sh"
|
||||||
$(Q)bash tests/misc-tests.sh
|
$(Q)bash tests/misc-tests.sh
|
||||||
|
@ -491,7 +491,7 @@ test-json: json-formatter-test
|
||||||
|
|
||||||
test: test-check test-check-lowmem test-mkfs test-misc test-cli test-convert test-fuzz
|
test: test-check test-check-lowmem test-mkfs test-misc test-cli test-convert test-fuzz
|
||||||
|
|
||||||
testsuite: btrfs-corrupt-block btrfs-find-root btrfs-select-super fssum
|
testsuite: btrfs-corrupt-block btrfs-find-root btrfs-select-super fssum fsstress
|
||||||
@echo "Export tests as a package"
|
@echo "Export tests as a package"
|
||||||
$(Q)cd tests && ./export-testsuite.sh
|
$(Q)cd tests && ./export-testsuite.sh
|
||||||
|
|
||||||
|
@ -722,6 +722,10 @@ fssum: tests/fssum.c crypto/sha224-256.c
|
||||||
@echo " [LD] $@"
|
@echo " [LD] $@"
|
||||||
$(Q)$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
$(Q)$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||||
|
|
||||||
|
fsstress: tests/fsstress.c
|
||||||
|
@echo " [LD] $@"
|
||||||
|
$(Q)$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -luring -laio
|
||||||
|
|
||||||
hash-speedtest: crypto/hash-speedtest.c $(objects) libbtrfsutil.a
|
hash-speedtest: crypto/hash-speedtest.c $(objects) libbtrfsutil.a
|
||||||
@echo " [LD] $@"
|
@echo " [LD] $@"
|
||||||
$(Q)$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS)
|
$(Q)$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS)
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue