3
# read-dir: check we cannot read an ecryptfs directory
4
# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/719691
6
# Author: Colin King <colin.king@canonical.com>
8
# Copyright (C) 2012 Canonical, Ltd.
10
# This program is free software; you can redistribute it and/or
11
# modify it under the terms of the GNU General Public License
12
# as published by the Free Software Foundation; either version 2
13
# of the License, or (at your option) any later version.
15
# This program is distributed in the hope that it will be useful,
16
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
# GNU General Public License for more details.
20
# You should have received a copy of the GNU General Public License
21
# along with this program; if not, write to the Free Software
22
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24
test_script_dir=$(dirname $0)
28
. ${test_script_dir}/../lib/etl_funcs.sh
32
etl_remove_test_dir $test_dir
38
trap test_cleanup 0 1 2 3 15
43
test_dir=$(etl_create_test_dir) || exit
45
${test_script_dir}/read-dir/test ${test_dir}