mirror of
https://github.com/vgough/encfs.git
synced 2025-02-16 09:49:46 +01:00
gcc is default compiler on most distributions, we should also test with it. build.sh exists and should be tested as well, so why not use it in Travis. test.sh outputs much more details than "make check", so run it as well. Additionally, make build.sh and test.sh work when called from other directories.
17 lines
555 B
Bash
Executable File
17 lines
555 B
Bash
Executable File
#!/bin/bash -eu
|
|
|
|
# Make sure we are in the directory this script is in.
|
|
cd "$(dirname "$0")"
|
|
|
|
# Failed tests can leave dangling mounts behind.
|
|
for i in $(mount | grep -e "/tmp/encfs-reverse-tests-\|/tmp/encfs-tests-" | cut -f3 -d" "); do
|
|
echo "Warning: unmounting leftover filesystem: $i"
|
|
fusermount -u $i || true
|
|
done
|
|
|
|
# This is very noisy so run it silently at first. Run it again with
|
|
# output if the first run fails.
|
|
./build/checkops &> /dev/null || ./build/checkops
|
|
|
|
perl -MTest::Harness -e '$$Test::Harness::debug=1; runtests @ARGV;' tests/*.t.pl
|