Remove run_with_fuse.sh from CI

This commit is contained in:
Sebastian Messmer 2017-09-11 15:25:56 +01:00
parent f6d447658b
commit 29cb24b762
2 changed files with 3 additions and 34 deletions

View File

@ -12,8 +12,8 @@ references:
uname -a uname -a
cmake --version cmake --version
g++ --version g++ --version
# TODO Use /dev/urandom when /dev/random is accessed to use less entropy # Use /dev/urandom when /dev/random is accessed to use less entropy
# cp -a /dev/urandom /dev/random sudo cp -a /dev/urandom /dev/random
upgrade_boost: &upgrade_boost upgrade_boost: &upgrade_boost
run: run:
name: Upgrade Boost name: Upgrade Boost
@ -65,7 +65,7 @@ jobs:
cd cmake cd cmake
./test/gitversion/gitversion-test ./test/gitversion/gitversion-test
./test/cpp-utils/cpp-utils-test ./test/cpp-utils/cpp-utils-test
../.circleci/run_with_fuse.sh ./test/fspp/fspp-test ./test/fspp/fspp-test
./test/parallelaccessstore/parallelaccessstore-test ./test/parallelaccessstore/parallelaccessstore-test
./test/blockstore/blockstore-test ./test/blockstore/blockstore-test
./test/blobstore/blobstore-test ./test/blobstore/blobstore-test

View File

@ -1,31 +0,0 @@
#!/bin/bash
# Install fuse
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y libfuse-dev pkg-config fuse user-mode-linux
sudo mknod /dev/fuse c 10 229
sudo chmod 666 /dev/fuse
# Run the command specified as parameter in a user-mode-linux with fuse kernel module enabled
CURDIR="`pwd`"
cat > umltest.inner.sh <<EOF
#!/bin/sh
(
export PATH="$PATH"
set -e
insmod /usr/lib/uml/modules/\`uname -r\`/kernel/fs/fuse/fuse.ko
cd "$CURDIR"
$@
)
echo "\$?" > "$CURDIR"/umltest.status
halt -f
EOF
chmod +x umltest.inner.sh
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559622 seems resolved, so we can use memory larger than 503MB
#TMPDIR=/tmp /usr/bin/linux.uml init=`pwd`/umltest.inner.sh mem=255M rootfstype=hostfs rw
TMPDIR=/tmp /usr/bin/linux.uml init=`pwd`/umltest.inner.sh mem=1G rootfstype=hostfs rw
exit $(<umltest.status)