aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2019-09-24 14:17:37 +0200
committerLibravatar smitsohu <smitsohu@gmail.com>2019-09-24 14:17:37 +0200
commitda8432359460b17f30c0d73844b7b1049913c9e1 (patch)
treed298e1474164d624d736f2b5d1372d3124dd4e1d /test
parentMerge branch 'master' of https://github.com/netblue30/firejail (diff)
downloadfirejail-da8432359460b17f30c0d73844b7b1049913c9e1.tar.gz
firejail-da8432359460b17f30c0d73844b7b1049913c9e1.tar.zst
firejail-da8432359460b17f30c0d73844b7b1049913c9e1.zip
testing suite fixes: remove shell localization
Diffstat (limited to 'test')
-rwxr-xr-xtest/appimage/appimage.sh1
-rwxr-xr-xtest/apps-x11-xorg/apps-x11-xorg.sh1
-rwxr-xr-xtest/apps-x11/apps-x11.sh1
-rwxr-xr-xtest/apps/apps.sh1
-rwxr-xr-xtest/arguments/arguments.sh1
-rwxr-xr-xtest/chroot/chroot.sh1
-rwxr-xr-xtest/environment/environment.sh1
-rwxr-xr-xtest/fcopy/fcopy.sh1
-rwxr-xr-xtest/features/test.sh1
-rwxr-xr-xtest/filters/filters.sh1
-rwxr-xr-xtest/fnetfilter/fnetfilter.sh1
-rwxr-xr-xtest/fs/fs.sh6
-rwxr-xr-xtest/network/network.sh1
-rwxr-xr-xtest/overlay/overlay.sh1
-rwxr-xr-xtest/private-lib/private-lib.sh2
-rwxr-xr-xtest/profiles/profiles.sh1
-rwxr-xr-xtest/root/root.sh1
-rwxr-xr-xtest/ssh/ssh.sh1
-rwxr-xr-xtest/stress/stress.sh1
-rwxr-xr-xtest/sysutils/sysutils.sh1
-rwxr-xr-xtest/utils/utils.sh1
21 files changed, 24 insertions, 3 deletions
diff --git a/test/appimage/appimage.sh b/test/appimage/appimage.sh
index 39c288199..937ae9f31 100755
--- a/test/appimage/appimage.sh
+++ b/test/appimage/appimage.sh
@@ -5,6 +5,7 @@
5 5
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C
8 9
9echo "TESTING: AppImage v1 (test/appimage/appimage-v1.exp)" 10echo "TESTING: AppImage v1 (test/appimage/appimage-v1.exp)"
10./appimage-v1.exp 11./appimage-v1.exp
diff --git a/test/apps-x11-xorg/apps-x11-xorg.sh b/test/apps-x11-xorg/apps-x11-xorg.sh
index fd532f7b0..40ae4017c 100755
--- a/test/apps-x11-xorg/apps-x11-xorg.sh
+++ b/test/apps-x11-xorg/apps-x11-xorg.sh
@@ -5,6 +5,7 @@
5 5
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C
8 9
9which firefox 2>/dev/null 10which firefox 2>/dev/null
10if [ "$?" -eq 0 ]; 11if [ "$?" -eq 0 ];
diff --git a/test/apps-x11/apps-x11.sh b/test/apps-x11/apps-x11.sh
index e195036ce..8badbc3be 100755
--- a/test/apps-x11/apps-x11.sh
+++ b/test/apps-x11/apps-x11.sh
@@ -5,6 +5,7 @@
5 5
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C
8 9
9echo "TESTING: no x11 (test/apps-x11/x11-none.exp)" 10echo "TESTING: no x11 (test/apps-x11/x11-none.exp)"
10./x11-none.exp 11./x11-none.exp
diff --git a/test/apps/apps.sh b/test/apps/apps.sh
index c239ed8b8..c129846dd 100755
--- a/test/apps/apps.sh
+++ b/test/apps/apps.sh
@@ -5,6 +5,7 @@
5 5
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C
8 9
9LIST="firefox midori chromium opera transmission-qt qbittorrent uget-gtk filezilla gthumb thunderbird " 10LIST="firefox midori chromium opera transmission-qt qbittorrent uget-gtk filezilla gthumb thunderbird "
10LIST+="vlc fbreader deluge gnome-mplayer xchat wine kcalc ktorrent hexchat" 11LIST+="vlc fbreader deluge gnome-mplayer xchat wine kcalc ktorrent hexchat"
diff --git a/test/arguments/arguments.sh b/test/arguments/arguments.sh
index d9f2d4697..fc1bc64e1 100755
--- a/test/arguments/arguments.sh
+++ b/test/arguments/arguments.sh
@@ -1,4 +1,5 @@
1#!/bin/bash 1#!/bin/bash
2export LC_ALL=C
2 3
3if [ -f /etc/debian_version ]; then 4if [ -f /etc/debian_version ]; then
4 libdir=$(dirname "$(dpkg -L firejail | grep faudit)") 5 libdir=$(dirname "$(dpkg -L firejail | grep faudit)")
diff --git a/test/chroot/chroot.sh b/test/chroot/chroot.sh
index ac7bc6a54..ecadb899a 100755
--- a/test/chroot/chroot.sh
+++ b/test/chroot/chroot.sh
@@ -5,6 +5,7 @@
5 5
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C
8 9
9rm -f unchroot 10rm -f unchroot
10gcc -o unchroot unchroot.c 11gcc -o unchroot unchroot.c
diff --git a/test/environment/environment.sh b/test/environment/environment.sh
index 5b4aa32f4..735d3e59e 100755
--- a/test/environment/environment.sh
+++ b/test/environment/environment.sh
@@ -5,6 +5,7 @@
5 5
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C
8 9
9 10
10echo "TESTING: timeout (test/environment/timeout.exp)" 11echo "TESTING: timeout (test/environment/timeout.exp)"
diff --git a/test/fcopy/fcopy.sh b/test/fcopy/fcopy.sh
index 728782d49..b87518e03 100755
--- a/test/fcopy/fcopy.sh
+++ b/test/fcopy/fcopy.sh
@@ -5,6 +5,7 @@
5 5
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C
8 9
9if [ -f /etc/debian_version ]; then 10if [ -f /etc/debian_version ]; then
10 libdir=$(dirname "$(dpkg -L firejail | grep fcopy)") 11 libdir=$(dirname "$(dpkg -L firejail | grep fcopy)")
diff --git a/test/features/test.sh b/test/features/test.sh
index cf62d0a3d..cb3f6f871 100755
--- a/test/features/test.sh
+++ b/test/features/test.sh
@@ -1,4 +1,5 @@
1#!/bin/bash 1#!/bin/bash
2export LC_ALL=C
2OVERLAY="overlay" 3OVERLAY="overlay"
3CHROOT="chroot" 4CHROOT="chroot"
4NETWORK="network" 5NETWORK="network"
diff --git a/test/filters/filters.sh b/test/filters/filters.sh
index 10e50539b..6a8ce1f99 100755
--- a/test/filters/filters.sh
+++ b/test/filters/filters.sh
@@ -5,6 +5,7 @@
5 5
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C
8 9
9if [ -f /etc/debian_version ]; then 10if [ -f /etc/debian_version ]; then
10 libdir=$(dirname "$(dpkg -L firejail | grep fseccomp)") 11 libdir=$(dirname "$(dpkg -L firejail | grep fseccomp)")
diff --git a/test/fnetfilter/fnetfilter.sh b/test/fnetfilter/fnetfilter.sh
index e3aa2f12b..a37931422 100755
--- a/test/fnetfilter/fnetfilter.sh
+++ b/test/fnetfilter/fnetfilter.sh
@@ -5,6 +5,7 @@
5 5
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C
8 9
9if [ -f /etc/debian_version ]; then 10if [ -f /etc/debian_version ]; then
10 libdir=$(dirname "$(dpkg -L firejail | grep fcopy)") 11 libdir=$(dirname "$(dpkg -L firejail | grep fcopy)")
diff --git a/test/fs/fs.sh b/test/fs/fs.sh
index e706acd8d..c60d44904 100755
--- a/test/fs/fs.sh
+++ b/test/fs/fs.sh
@@ -70,6 +70,9 @@ echo "TESTING: empty private-etc (test/fs/private-etc-empty.exp)"
70echo "TESTING: private-bin (test/fs/private-bin.exp)" 70echo "TESTING: private-bin (test/fs/private-bin.exp)"
71./private-bin.exp 71./private-bin.exp
72 72
73echo "TESTING: private-cache (test/fs/private-cache.exp)"
74./private-cache.exp
75
73echo "TESTING: private-cwd (test/fs/private-cwd.exp)" 76echo "TESTING: private-cwd (test/fs/private-cwd.exp)"
74./private-cwd.exp 77./private-cwd.exp
75 78
@@ -121,9 +124,6 @@ echo "TESTING: fscheck --tmpfs non root (test/fs/fscheck-tmpfs.exp)"
121echo "TESTING: fscheck --private= (test/fs/fscheck-private.exp)" 124echo "TESTING: fscheck --private= (test/fs/fscheck-private.exp)"
122./fscheck-private.exp 125./fscheck-private.exp
123 126
124echo "TESTING: fscheck --private-cache (test/fs/fscheck-private-cache.exp)"
125./fscheck-private-cache.exp
126
127echo "TESTING: fscheck --read-only= (test/fs/fscheck-readonly.exp)" 127echo "TESTING: fscheck --read-only= (test/fs/fscheck-readonly.exp)"
128./fscheck-readonly.exp 128./fscheck-readonly.exp
129 129
diff --git a/test/network/network.sh b/test/network/network.sh
index e1804ae3b..c8ff3f1e1 100755
--- a/test/network/network.sh
+++ b/test/network/network.sh
@@ -5,6 +5,7 @@
5 5
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C
8 9
9sudo ./configure 10sudo ./configure
10 11
diff --git a/test/overlay/overlay.sh b/test/overlay/overlay.sh
index 5dfacea18..bedd66a87 100755
--- a/test/overlay/overlay.sh
+++ b/test/overlay/overlay.sh
@@ -5,6 +5,7 @@
5 5
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C
8 9
9echo "TESTING: overlay fs (test/overlay/fs.exp)" 10echo "TESTING: overlay fs (test/overlay/fs.exp)"
10rm -fr ~/_firejail_test_* 11rm -fr ~/_firejail_test_*
diff --git a/test/private-lib/private-lib.sh b/test/private-lib/private-lib.sh
index 79913fed6..6a5588d5b 100755
--- a/test/private-lib/private-lib.sh
+++ b/test/private-lib/private-lib.sh
@@ -5,6 +5,8 @@
5 5
6export MALLOC_CHECK_=3g 6export MALLOC_CHECK_=3g
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C
9
8LIST="gnome-logs gnome-system-log gnome-nettool pavucontrol dig evince whois galculator gnome-calculator gedit leafpad mousepad pluma transmission-gtk xcalc atril gpicview eom eog" 10LIST="gnome-logs gnome-system-log gnome-nettool pavucontrol dig evince whois galculator gnome-calculator gedit leafpad mousepad pluma transmission-gtk xcalc atril gpicview eom eog"
9 11
10 12
diff --git a/test/profiles/profiles.sh b/test/profiles/profiles.sh
index 85e5c1c13..52ee74234 100755
--- a/test/profiles/profiles.sh
+++ b/test/profiles/profiles.sh
@@ -5,6 +5,7 @@
5 5
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C
8 9
9echo "TESTING: profile conditional (test/profiles/conditional.exp)" 10echo "TESTING: profile conditional (test/profiles/conditional.exp)"
10./conditional.exp 11./conditional.exp
diff --git a/test/root/root.sh b/test/root/root.sh
index a20142c5f..363865fad 100755
--- a/test/root/root.sh
+++ b/test/root/root.sh
@@ -3,6 +3,7 @@
3# set a new firejail config file 3# set a new firejail config file
4#cp firejail.config /etc/firejail/firejail.config 4#cp firejail.config /etc/firejail/firejail.config
5 5
6export LC_ALL=C
6 7
7#******************************** 8#********************************
8# firecfg 9# firecfg
diff --git a/test/ssh/ssh.sh b/test/ssh/ssh.sh
index 56e815f6f..e7de1babd 100755
--- a/test/ssh/ssh.sh
+++ b/test/ssh/ssh.sh
@@ -5,6 +5,7 @@
5 5
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C
8 9
9echo "TESTING: ssh login (test/ssh/login.exp)" 10echo "TESTING: ssh login (test/ssh/login.exp)"
10./login.exp 11./login.exp
diff --git a/test/stress/stress.sh b/test/stress/stress.sh
index 37b1a3bbc..6853c5a13 100755
--- a/test/stress/stress.sh
+++ b/test/stress/stress.sh
@@ -5,6 +5,7 @@
5 5
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C
8 9
9 10
10# blacklist testing 11# blacklist testing
diff --git a/test/sysutils/sysutils.sh b/test/sysutils/sysutils.sh
index 0acf94d71..3f5ed33cb 100755
--- a/test/sysutils/sysutils.sh
+++ b/test/sysutils/sysutils.sh
@@ -5,6 +5,7 @@
5 5
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C
8 9
9which cpio 2>/dev/null 10which cpio 2>/dev/null
10if [ "$?" -eq 0 ]; 11if [ "$?" -eq 0 ];
diff --git a/test/utils/utils.sh b/test/utils/utils.sh
index fd24a5db0..7ebd5a1d5 100755
--- a/test/utils/utils.sh
+++ b/test/utils/utils.sh
@@ -5,6 +5,7 @@
5 5
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C
8 9
9if [ -f /etc/debian_version ]; then 10if [ -f /etc/debian_version ]; then
10 libdir=$(dirname "$(dpkg -L firejail | grep faudit)") 11 libdir=$(dirname "$(dpkg -L firejail | grep faudit)")