From 37a5a3545ef6d8d03dad8bbd888f53e13274c9e5 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 5 May 2016 10:22:18 -0400 Subject: testing --- test/fs_var_lock.exp | 87 ---------------------------------------------------- 1 file changed, 87 deletions(-) delete mode 100755 test/fs_var_lock.exp (limited to 'test/fs_var_lock.exp') diff --git a/test/fs_var_lock.exp b/test/fs_var_lock.exp deleted file mode 100755 index dfcf571f4..000000000 --- a/test/fs_var_lock.exp +++ /dev/null @@ -1,87 +0,0 @@ -#!/usr/bin/expect -f - -set timeout 10 -spawn $env(SHELL) -match_max 100000 - -# testing read-write /var/lock -send -- "firejail\r" -expect { - timeout {puts "TESTING ERROR 0\n";exit} - "Child process initialized" -} -sleep 1 - -send -- "echo mytest > /var/lock/ttt;pwd\r" -expect { - timeout {puts "TESTING ERROR 1\n";exit} - "home" -} - -send -- "cat /var/lock/ttt;pwd\r" -expect { - timeout {puts "TESTING ERROR 2.1\n";exit} - "mytest" -} -expect { - timeout {puts "TESTING ERROR 2\n";exit} - "home" -} - -send -- "rm /var/lock/ttt;pwd\r" -expect { - timeout {puts "TESTING ERROR 3\n";exit} - "home" -} - -send -- "cat /var/lock/ttt;pwd\r" -expect { - timeout {puts "TESTING ERROR 4\n";exit} - "mytest" {puts "TESTING ERROR 4.1\n";exit} - "home" -} - -sleep 1 -send -- "exit\r" -sleep 1 - -# redo the test with --private -send -- "firejail\r" -expect { - timeout {puts "TESTING ERROR 10\n";exit} - "Child process initialized" -} -sleep 1 - -send -- "echo mytest > /var/lock/ttt;pwd\r" -expect { - timeout {puts "TESTING ERROR 11\n";exit} - "home" -} - -send -- "cat /var/lock/ttt;pwd\r" -expect { - timeout {puts "TESTING ERROR 12.1\n";exit} - "mytest" -} -expect { - timeout {puts "TESTING ERROR 12\n";exit} - "home" -} - -send -- "rm /var/lock/ttt;pwd\r" -expect { - timeout {puts "TESTING ERROR 13\n";exit} - "home" -} - -send -- "cat /var/lock/ttt;pwd\r" -expect { - timeout {puts "TESTING ERROR 14\n";exit} - "mytest" {puts "TESTING ERROR 14.1\n";exit} - "home" -} - -sleep 1 - -puts "\n" -- cgit v1.2.3-54-g00ecf