projects
/
rrq
/
fuse_xattrs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
cache the size of the sidecar_dir path
[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 enable_namespaces 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
if [[ "$OSTYPE" == "darwin"* ]]; then
23
umount test/mount
24
else
25
fusermount -uz test/mount
26
fi
27
28
rm -d test/source
29
rm -d test/mount
30
31
exit ${RESULT}