Btrfs: separate out tests into their own directory
authorJosef Bacik <jbacik@fusionio.com>
Wed, 14 Aug 2013 19:05:12 +0000 (15:05 -0400)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:15:38 +0000 (08:15 -0400)
commitdc11dd5d707a4157882f281c96055d6894d10c8c
tree57cebbc3b1746c4184d31e09ff452a34842f2340
parent00361589d2eebd90fca022148c763e40d3e90871
Btrfs: separate out tests into their own directory

The plan is to have a bunch of unit tests that run when btrfs is loaded when you
build with the appropriate config option.  My ultimate goal is to have a test
for every non-static function we have, but at first I'm going to focus on the
things that cause us the most problems.  To start out with this just adds a
tests/ directory and moves the existing free space cache tests into that
directory and sets up all of the infrastructure.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/Makefile
fs/btrfs/free-space-cache.c
fs/btrfs/free-space-cache.h
fs/btrfs/super.c
fs/btrfs/tests/btrfs-tests.h [new file with mode: 0644]
fs/btrfs/tests/free-space-tests.c [new file with mode: 0644]