Use tags for tests, remove duplicate test.
This commit is contained in:
parent
98f8561ba1
commit
a7df448839
@ -15,6 +15,8 @@ xfs_v4_ftype0_s05k_b2k_n8k.img:
|
|||||||
sudo mkfs.xfs -b size=2k -m crc=0,finobt=0,rmapbt=0,reflink=0 -d sectsize=512 -i maxpct=100 -n size=8k,ftype=0 $@
|
sudo mkfs.xfs -b size=2k -m crc=0,finobt=0,rmapbt=0,reflink=0 -d sectsize=512 -i maxpct=100 -n size=8k,ftype=0 $@
|
||||||
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
|
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
|
||||||
sudo chown $$USER $(TEMP_DIR) -R
|
sudo chown $$USER $(TEMP_DIR) -R
|
||||||
|
#
|
||||||
|
mkdir $(TEMP_DIR)/sf_empty
|
||||||
#
|
#
|
||||||
mkdir $(TEMP_DIR)/sf
|
mkdir $(TEMP_DIR)/sf
|
||||||
$(MKDIRRANGE) $(TEMP_DIR)/sf 0 3 0 244
|
$(MKDIRRANGE) $(TEMP_DIR)/sf 0 3 0 244
|
||||||
@ -44,6 +46,8 @@ xfs_v4_ftype1_s05k_b2k_n8k.img:
|
|||||||
sudo mkfs.xfs -b size=2k -m crc=0,finobt=0,rmapbt=0,reflink=0 -d sectsize=512 -i maxpct=100 -n size=8k,ftype=1 $@
|
sudo mkfs.xfs -b size=2k -m crc=0,finobt=0,rmapbt=0,reflink=0 -d sectsize=512 -i maxpct=100 -n size=8k,ftype=1 $@
|
||||||
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
|
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
|
||||||
sudo chown $$USER $(TEMP_DIR) -R
|
sudo chown $$USER $(TEMP_DIR) -R
|
||||||
|
#
|
||||||
|
mkdir $(TEMP_DIR)/sf_empty
|
||||||
#
|
#
|
||||||
mkdir $(TEMP_DIR)/sf
|
mkdir $(TEMP_DIR)/sf
|
||||||
$(MKDIRRANGE) $(TEMP_DIR)/sf 0 3 0 244
|
$(MKDIRRANGE) $(TEMP_DIR)/sf 0 3 0 244
|
||||||
@ -139,6 +143,8 @@ xfs_v4_ftype0_s4k_b4k_n8k.img:
|
|||||||
sudo mkfs.xfs -b size=4k -m crc=0,finobt=0,rmapbt=0,reflink=0 -d sectsize=4k -i maxpct=100 -n size=8k,ftype=0 $@
|
sudo mkfs.xfs -b size=4k -m crc=0,finobt=0,rmapbt=0,reflink=0 -d sectsize=4k -i maxpct=100 -n size=8k,ftype=0 $@
|
||||||
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
|
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
|
||||||
sudo chown $$USER $(TEMP_DIR) -R
|
sudo chown $$USER $(TEMP_DIR) -R
|
||||||
|
#
|
||||||
|
mkdir $(TEMP_DIR)/sf_empty
|
||||||
#
|
#
|
||||||
mkdir $(TEMP_DIR)/sf
|
mkdir $(TEMP_DIR)/sf
|
||||||
$(MKDIRRANGE) $(TEMP_DIR)/sf 0 3 0 244
|
$(MKDIRRANGE) $(TEMP_DIR)/sf 0 3 0 244
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,8 +0,0 @@
|
|||||||
disk_add ../img/xfs_v4_ftype0_s05k_b2k_n8k.img hd0
|
|
||||||
ls /hd0/1/sf
|
|
||||||
ls /hd0/1/block
|
|
||||||
ls /hd0/1/leaf
|
|
||||||
ls /hd0/1/node
|
|
||||||
ls /hd0/1/btree_leaf
|
|
||||||
ls /hd0/1/btree_leaf_free
|
|
||||||
disk_del hd0
|
|
@ -1,5 +1,10 @@
|
|||||||
/> disk_add ../img/xfs_v4_ftype1_s05k_b2k_n8k.img hd0
|
/> disk_add ../img/xfs_v4_ftype1_s05k_b2k_n8k.img hd0
|
||||||
/hd0/1: xfs
|
/hd0/1: xfs
|
||||||
|
/> ls /hd0/1/sf_empty
|
||||||
|
status = 6 end_of_file, count = 2
|
||||||
|
total = 2
|
||||||
|
----f .
|
||||||
|
----f ..
|
||||||
/> ls /hd0/1/sf
|
/> ls /hd0/1/sf
|
||||||
status = 6 end_of_file, count = 5
|
status = 6 end_of_file, count = 5
|
||||||
total = 5
|
total = 5
|
@ -1,4 +1,5 @@
|
|||||||
disk_add ../img/xfs_v4_ftype1_s05k_b2k_n8k.img hd0
|
disk_add ../img/xfs_v4_ftype1_s05k_b2k_n8k.img hd0
|
||||||
|
ls /hd0/1/sf_empty
|
||||||
ls /hd0/1/sf
|
ls /hd0/1/sf
|
||||||
ls /hd0/1/block
|
ls /hd0/1/block
|
||||||
ls /hd0/1/leaf
|
ls /hd0/1/leaf
|
@ -1,5 +1,10 @@
|
|||||||
/> disk_add ../img/xfs_v4_ftype0_s05k_b2k_n8k.img hd0
|
/> disk_add ../img/xfs_v4_ftype0_s05k_b2k_n8k.img hd0
|
||||||
/hd0/1: xfs
|
/hd0/1: xfs
|
||||||
|
/> ls /hd0/1/sf_empty
|
||||||
|
status = 6 end_of_file, count = 2
|
||||||
|
total = 2
|
||||||
|
----f .
|
||||||
|
----f ..
|
||||||
/> ls /hd0/1/sf
|
/> ls /hd0/1/sf
|
||||||
status = 6 end_of_file, count = 5
|
status = 6 end_of_file, count = 5
|
||||||
total = 5
|
total = 5
|
||||||
@ -3453,10 +3458,11 @@ total = 5
|
|||||||
----f d0000000001_x
|
----f d0000000001_x
|
||||||
----f d0000000002_xx
|
----f d0000000002_xx
|
||||||
/> ls /hd0/1/sf/..
|
/> ls /hd0/1/sf/..
|
||||||
status = 6 end_of_file, count = 8
|
status = 6 end_of_file, count = 9
|
||||||
total = 8
|
total = 9
|
||||||
----f .
|
----f .
|
||||||
----f ..
|
----f ..
|
||||||
|
----f sf_empty
|
||||||
----f sf
|
----f sf
|
||||||
----f block
|
----f block
|
||||||
----f leaf
|
----f leaf
|
@ -1,4 +1,5 @@
|
|||||||
disk_add ../img/xfs_v4_ftype0_s05k_b2k_n8k.img hd0
|
disk_add ../img/xfs_v4_ftype0_s05k_b2k_n8k.img hd0
|
||||||
|
ls /hd0/1/sf_empty
|
||||||
ls /hd0/1/sf
|
ls /hd0/1/sf
|
||||||
ls /hd0/1/block
|
ls /hd0/1/block
|
||||||
ls /hd0/1/leaf
|
ls /hd0/1/leaf
|
@ -1,5 +1,17 @@
|
|||||||
/> disk_add ../img/xfs_v4_ftype1_s05k_b2k_n8k.img hd0
|
/> disk_add ../img/xfs_v4_ftype1_s05k_b2k_n8k.img hd0
|
||||||
/hd0/1: xfs
|
/hd0/1: xfs
|
||||||
|
/> stat /hd0/1/sf_empty
|
||||||
|
status = 0 success
|
||||||
|
attr: ----f
|
||||||
|
/> stat /hd0/1/sf_empty/.
|
||||||
|
status = 0 success
|
||||||
|
attr: ----f
|
||||||
|
/> stat /hd0/1/sf_empty/..
|
||||||
|
status = 0 success
|
||||||
|
attr: ----f
|
||||||
|
/> stat /hd0/1/sf_empty/deadbeef
|
||||||
|
status = 5 file_not_found
|
||||||
|
|
||||||
/> stat /hd0/1/sf/.
|
/> stat /hd0/1/sf/.
|
||||||
status = 0 success
|
status = 0 success
|
||||||
attr: ----f
|
attr: ----f
|
@ -1,4 +1,9 @@
|
|||||||
disk_add ../img/xfs_v4_ftype1_s05k_b2k_n8k.img hd0
|
disk_add ../img/xfs_v4_ftype1_s05k_b2k_n8k.img hd0
|
||||||
|
stat /hd0/1/sf_empty
|
||||||
|
stat /hd0/1/sf_empty/.
|
||||||
|
stat /hd0/1/sf_empty/..
|
||||||
|
stat /hd0/1/sf_empty/deadbeef
|
||||||
|
|
||||||
stat /hd0/1/sf/.
|
stat /hd0/1/sf/.
|
||||||
stat /hd0/1/sf/..
|
stat /hd0/1/sf/..
|
||||||
stat /hd0/1/sf///
|
stat /hd0/1/sf///
|
@ -1,22 +1,29 @@
|
|||||||
KOFU=../kofu
|
KOFU=../kofu
|
||||||
|
|
||||||
f30_tests := $(addsuffix .out, $(basename $(wildcard ???_f30_*.t)))
|
xfs_tests := $(addsuffix .out, $(basename $(wildcard *\#xfs_*.t)))
|
||||||
|
s05k_tests := $(addsuffix .out, $(basename $(wildcard *\#s05k_*.t)))
|
||||||
|
s4k_tests := $(addsuffix .out, $(basename $(wildcard *\#s4k_*.t)))
|
||||||
|
f30_tests := $(addsuffix .out, $(basename $(wildcard *\#f30_*.t)))
|
||||||
|
f70_tests := $(addsuffix .out, $(basename $(wildcard *\#f70_*.t)))
|
||||||
|
f70s0_tests := $(addsuffix .out, $(basename $(wildcard *\#f70s0_*.t)))
|
||||||
|
f70s1_tests := $(addsuffix .out, $(basename $(wildcard *\#f70s1_*.t)))
|
||||||
|
f70s5_tests := $(addsuffix .out, $(basename $(wildcard *\#f70s5_*.t)))
|
||||||
|
lookup_tests := $(addsuffix .out, $(basename $(wildcard *\#lookup_*.t)))
|
||||||
|
bug_tests := $(addsuffix .out, $(basename $(wildcard *\#bug_*.t)))
|
||||||
|
|
||||||
f70s0_tests := $(addsuffix .out, $(basename $(wildcard ???_f70s0_*.t)))
|
all: xfs s05k s4k f30 f70 f70s0 f70s1 f70s5 lookup bug
|
||||||
f70s1_tests := $(addsuffix .out, $(basename $(wildcard ???_f70s1_*.t)))
|
|
||||||
f70s5_tests := $(addsuffix .out, $(basename $(wildcard ???_f70s5_*.t)))
|
|
||||||
f70lookup_tests := $(addsuffix .out, $(basename $(wildcard ???_f70lookup*.t)))
|
|
||||||
|
|
||||||
all: f30 f70
|
|
||||||
@echo all tests passed
|
@echo all tests passed
|
||||||
|
|
||||||
|
xfs: $(xfs_tests)
|
||||||
|
s05k: $(s05k_tests)
|
||||||
|
s4k: $(s4k_tests)
|
||||||
f30: $(f30_tests)
|
f30: $(f30_tests)
|
||||||
|
f70: $(f70_tests)
|
||||||
f70: f70s0 f70s1 f70s5 f70lookup
|
|
||||||
f70s0: $(f70s0_tests)
|
f70s0: $(f70s0_tests)
|
||||||
f70s1: $(f70s1_tests)
|
f70s1: $(f70s1_tests)
|
||||||
f70s5: $(f70s5_tests)
|
f70s5: $(f70s5_tests)
|
||||||
f70lookup: $(f70lookup_tests)
|
lookup: $(lookup_tests)
|
||||||
|
bug: $(bug_tests)
|
||||||
|
|
||||||
%.out: %.ref %.t
|
%.out: %.ref %.t
|
||||||
$(KOFU) < $(word 2, $^) > $@
|
$(KOFU) < $(word 2, $^) > $@
|
||||||
|
Loading…
Reference in New Issue
Block a user