firejail/test/fcopy/fcopy.sh
Kelvin M. Klann 167a0ea74a Fix misc whitespace
Command used to check for whitespace errors:

    $ git diff --check 0.9.78..
2026-02-23 13:20:38 -03:00

35 lines
733 B
Bash
Executable file

#!/bin/bash
# This file is part of Firejail project
# Copyright (C) 2014-2026 Firejail Authors
# License GPL v2
export MALLOC_CHECK_=3
export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
export LC_ALL=C
if [[ -f /etc/debian_version ]]; then
libdir=$(dirname "$(dpkg -L firejail | grep fcopy)")
export PATH="$PATH:$libdir"
fi
export PATH="$PATH:/usr/lib/firejail:/usr/lib64/firejail"
mkdir dest
echo "TESTING: fcopy cmdline (test/fcopy/cmdline.exp)"
./cmdline.exp
echo "TESTING: fcopy file (test/fcopy/filecopy.exp)"
./filecopy.exp
echo "TESTING: fcopy link (test/fcopy/linkcopy.exp)"
./linkcopy.exp
echo "TESTING: fcopy directory (test/fcopy/dircopy.exp)"
./dircopy.exp
rm -fr dest/*
rm -f src/dircopy.exp
cd ../..
./mkgcov.sh