From a8b23c83998c7964f8898c39784ac186a0216c3f Mon Sep 17 00:00:00 2001 From: netblue30 Date: Fri, 11 Nov 2016 07:47:46 -0500 Subject: testing --- test/overlay/overlay.sh | 57 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100755 test/overlay/overlay.sh (limited to 'test/overlay/overlay.sh') diff --git a/test/overlay/overlay.sh b/test/overlay/overlay.sh new file mode 100755 index 000000000..971adddfe --- /dev/null +++ b/test/overlay/overlay.sh @@ -0,0 +1,57 @@ +#!/bin/bash +# This file is part of Firejail project +# Copyright (C) 2014-2016 Firejail Authors +# License GPL v2 + +export MALLOC_CHECK_=3 +export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) + +echo "TESTING: overlay fs (test/overlay/fs.exp)" +rm -fr ~/_firejail_test_* +./fs.exp +rm -fr ~/_firejail_test_* + +which firefox +if [ "$?" -eq 0 ]; +then + echo "TESTING: overlay firefox" + ./firefox.exp +else + echo "TESTING SKIP: firefox not found" +fi + +which firefox +if [ "$?" -eq 0 ]; +then + echo "TESTING: overlay firefox x11 xorg" + ./firefox.exp +else + echo "TESTING SKIP: firefox not found" +fi + + +# check xpra/xephyr +which xpra +if [ "$?" -eq 0 ]; +then + echo "xpra found" +else + echo "xpra not found" + which Xephyr + if [ "$?" -eq 0 ]; + then + echo "Xephyr found" + else + echo "TESTING SKIP: xpra and/or Xephyr not found" + exit + fi +fi + +which firefox +if [ "$?" -eq 0 ]; +then + echo "TESTING: overlay firefox x11" + ./firefox.exp +else + echo "TESTING SKIP: firefox not found" +fi -- cgit v1.2.3-54-g00ecf