From 0386d562f44ebf612980c7d779336e967973f9c5 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Fri, 31 Mar 2017 11:05:05 -0400 Subject: testing --- test/utils/firecfg-fix.exp | 25 +++++++++++++++++++++++++ test/utils/utils.sh | 5 +++++ 2 files changed, 30 insertions(+) create mode 100755 test/utils/firecfg-fix.exp (limited to 'test/utils') diff --git a/test/utils/firecfg-fix.exp b/test/utils/firecfg-fix.exp new file mode 100755 index 000000000..685ce9c7b --- /dev/null +++ b/test/utils/firecfg-fix.exp @@ -0,0 +1,25 @@ +#!/usr/bin/expect -f +# This file is part of Firejail project +# Copyright (C) 2014-2017 Firejail Authors +# License GPL v2 + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "firecfg --fix\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "created" +} +sleep 1 + +send -- "firecfg --fix\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "skipped" +} +sleep 1 + +puts "\nall done\n" + diff --git a/test/utils/utils.sh b/test/utils/utils.sh index 751f1f8e7..d5ee5ef32 100755 --- a/test/utils/utils.sh +++ b/test/utils/utils.sh @@ -112,3 +112,8 @@ echo "TESTING: firemon interface (test/utils/firemon-interface.exp)" echo "TESTING: firemon name (test/utils/firemon-name.exp)" ./firemon-name.exp +echo "TESTING: firecfg --fix (test/utils/firecfg-fix.exp)" +mv ~/.local/share/applications ~/firejail-test-local-apps +./firecfg-fix.exp +rm -fr ~/.local/share/applications +mv ~/firejail-test-local-apps ~/.local/share/applications -- cgit v1.2.3-70-g09d2