freebsd-dev/contrib/pjdfstest/travis/test.sh
Enji Cooper 3416500aef Pull down pjdfstest 0.1
The summary of changes is as follows..

Generic changes::
- Added configure support [2].
- Check for lchmod filesystem support with create_file(..); for
  testcases that require lchmod, skip the testcase -- otherwise
  use chmod directly [1].
- Added Travis CI integration [2].
- Added utimensat testcases [1].

Linux support::
- Fixed Linux support to pass on later supported versions of
  Fedora/Ubuntu [2].
- Conditionally enable posix_fallocate(2) support [2].

OSX support::
- Fixed compilation on OSX [2].
- Added partial OSX support (the test run isn't fully green yet)
  [2].

MFC after:	2 months
Obtained from:	https://github.com/pjd/pjdfstest/tree/0.1
Relnotes:	yes
Submitted by:	asomers [1], ngie [2]
Tested with:	UFS, ZFS
2017-06-28 09:22:45 +00:00

30 lines
374 B
Bash
Executable File

#!/bin/sh
set -ex
cd $(dirname $0)/..
df .
uname -a
case "$(uname)" in
Darwin)
sw_vers -productVersion
mount
# FIXME: OSX has test issues that need to be addressed per Issue #13.
exit 0
;;
FreeBSD)
mount -p
;;
Linux)
for release_file in /etc/lsb-release /etc/os-release; do
echo "$release_file.. ->"
cat $release_file
done
mount
;;
esac
sudo prove -rv .