CMakeLists.txt: update man install location.
[rrq/fuse_xattrs.git] / run_tests.sh
1 #!/usr/bin/env bash
2
3 mkdir -p test/mount
4 mkdir -p test/source
5 ./fuse_xattrs -o nonempty test/source/ test/mount/
6
7 if [ $? -ne 0 ]; then
8     echo "Error mounting the filesystem."
9     echo "Do you have permissions?"
10     exit 1
11 fi
12
13 pushd test
14
15 set +e
16 python3 -m unittest -v
17 RESULT=$?
18 set -e
19
20 popd
21
22 fusermount -zu test/mount
23 rm -d test/source
24 rm -d test/mount
25
26 exit ${RESULT}