blob: 93016e526a6a5ce5611705ff2690f92671694a40 [file] [log] [blame]
# SPDX-License-Identifier: GPL-2.0+
# Makefile.am
AUTOMAKE_OPTIONS = serial-tests
SUBDIRS = src
TESTS =
TESTS_ENVIRONMENT = \
if [ -z $$SCRATCH_MNT ]; then \
export SCRATCH_MNT=/tmp/erofstest/scratch; \
mkdir -p $$SCRATCH_MNT 2>/dev/null; \
fi; \
if [ -z $$TEST_MNT ]; then \
export TEST_MNT=/tmp/erofstest/test; \
mkdir -p $$TEST_MNT 2>/dev/null; \
fi; \
if [ -z $$RESULT_DIR ]; then \
export RESULT_DIR=`pwd`/results; \
mkdir -p $$RESULT_DIR/erofs 2>/dev/null; \
mkdir -p $$RESULT_DIR/fscache 2>/dev/null; \
fi; \
[ -z $$MKFS_EROFS_PROG ] && export MKFS_EROFS_PROG=../mkfs/mkfs.erofs; \
[ -z $$FSCK_EROFS_PROG ] && export FSCK_EROFS_PROG=../fsck/fsck.erofs; \
[ -z $$EROFSFUSE_PROG ] && export EROFSFUSE_PROG=../fuse/erofsfuse;
if ENABLE_LZ4
TESTS_ENVIRONMENT += export lz4_on=1;
endif
if ENABLE_LZ4HC
TESTS_ENVIRONMENT += export lz4hc_on=1;
endif
if ENABLE_LIBLZMA
TESTS_ENVIRONMENT += export lzma_on=1;
endif
TESTS_ENVIRONMENT += export deflate_on=1;
# 001 - test if unknown algorithm is specificed
TESTS += erofs/001
# 002 - mkfs & test short symlink (fast symlink)
TESTS += erofs/002
# 003 - mkfs & test long symlink (non-fast symlink)
TESTS += erofs/003
# 004 - mkfs & test character/block device
TESTS += erofs/004
# 005 - mkfs & test pipe
TESTS += erofs/005
# 006 - verify the uncompressed image
TESTS += erofs/006
# 007 - check for bad lz4 versions
TESTS += erofs/007
# 008 - verify lz4 compressed image
TESTS += erofs/008
# 009 - verify lz4hc compressed image
TESTS += erofs/009
# 010 - (legacy image) verify lz4 compressed image
TESTS += erofs/010
# 011 - (legacy image) verify lz4hc compressed image
TESTS += erofs/011
# 012 - check the hard-link functionality
TESTS += erofs/012
# 013 - check if hardlinked directories are allowed
TESTS += erofs/013
# 014 - check if cross-device submounts are handled properly
TESTS += erofs/014
# 015 - regression test for battach on full buffer block
TESTS += erofs/015
# 016 - verify the uncompressed image with 2-level random files
TESTS += erofs/016
# 017 - check the compress-hints functionality
TESTS += erofs/017
# 018 - verify microlzma compressed image
TESTS += erofs/018
# 019 - check extended attribute functionality
TESTS += erofs/019
# 020 - check extended attributes in different layouts
TESTS += erofs/020
# 021 - check extended attributes crossing block boundary
TESTS += erofs/021
# 022 - check long extended attribute name prefixes
TESTS += erofs/022
# 023 - check extended attributes in random layouts
TESTS += erofs/023
# 024 - verify deflate compressed image
TESTS += erofs/024
# 025 - regression test for corrupted directories with hardlinks
TESTS += erofs/025
EXTRA_DIST = common/rc erofs
clean-local: clean-local-check
.PHONY: clean-local-check
clean-local-check:
-rm -rf results