Skip to content

Commit 44bef6c

Browse files
committed
Add testing instructions
Update Makefile
1 parent aabfeda commit 44bef6c

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,13 @@ all:
22
@echo Nothing here
33

44
test:
5-
$(MAKE) -C tests
5+
@echo "============================ Executing Posix Mode ============================"
6+
$(MAKE) -C tests pjd.posix
7+
@echo "============================ Finished Posix Mode ============================="
8+
@echo "============================ Executing Sync Mode ============================="
9+
$(MAKE) -C tests pjd.sync
10+
@echo "============================ Finished Sync Mode =============================="
11+
@echo "============================ Executing Strict Mode ==========================="
12+
$(MAKE) -C tests pjd.strict
13+
@echo "============================ Finished Strict Mode ============================"
614

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $ cd splitfs; make clean; make; cd .. # Compile SplitFS
2727
$ export LD_LIBRARY_PATH=./splitfs
2828
$ export NVP_TREE_FILE=./splitfs/bin/nvp_nvp.tree
2929
```
30-
4. <b>Set up ext4-DAX </b>
30+
4. #### Set up ext4-DAX
3131
```
3232
$ sudo mkfs.ext4 -b 4096 /dev/pmem0
3333
$ sudo mount -o dax /dev/pmem0 /mnt/pmem_emul
@@ -110,6 +110,21 @@ Tests that failed include:
110110

111111
We aim to to improve this to a 100% pass rate soon.
112112

113+
**Running the Test Suite**
114+
Before running the tests, make sure you have [set-up ext4-DAX](#set-up-ext4-DAX)
115+
116+
To run tests in all modes:
117+
```
118+
$ make test
119+
```
120+
To run tests in a specific mode:
121+
```
122+
$ make -C tests pjd.<mode>
123+
```
124+
where `<mode>` is one of `posix`, `sync` or `strict`. Example: `make -C tests pjd.posix`
125+
126+
Tip: Redirect stderr for less verbose output: e.g `make test 2>/dev/null`
127+
113128
## License
114129

115130
Copyright for SplitFS is held by the University of Texas at Austin. Please contact us if you would like to obtain a license to use SplitFS in your commercial product.

0 commit comments

Comments
 (0)