-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Launch test under UML in order to be able to use fuse on Travis infra…
…structure
- Loading branch information
Mathieu Clabaut
committed
Oct 11, 2015
1 parent
c2bab6d
commit f446f94
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
PROGNAME=$1 | ||
|
||
CURDIR="`pwd`" | ||
|
||
cat > umltest.inner.sh <<EOF | ||
#!/bin/sh | ||
( | ||
set -e | ||
set -x | ||
insmod /usr/lib/uml/modules/\`uname -r\`/kernel/fs/fuse/fuse.ko | ||
cd "$CURDIR" | ||
./$PROGNAME | ||
echo Success | ||
) | ||
echo "\$?" > "$CURDIR"/umltest.status | ||
halt -f | ||
EOF | ||
|
||
chmod +x umltest.inner.sh | ||
|
||
/usr/bin/linux.uml mem=256M init=`pwd`/umltest.inner.sh rootfstype=hostfs rw | ||
|
||
exit $(<umltest.status) |