2 # vim:ts=4:sw=4:expandtab
4 # Please read the following documents before working on tests:
5 # • https://build.i3wm.org/docs/testsuite.html
8 # • https://build.i3wm.org/docs/lib-i3test.html
9 # (alternatively: perldoc ./testcases/lib/i3test.pm)
11 # • https://build.i3wm.org/docs/ipc.html
14 # • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
15 # (unless you are already familiar with Perl)
17 # Verifies that the config file is returned raw via the IPC interface.
19 # Bug still in: 4.13-133-ge4da07e7
20 use i3test i3_autostart => 0;
21 use File::Temp qw(tempdir);
23 my $tmpdir = tempdir(CLEANUP => 1);
24 my $socketpath = $tmpdir . "/config.sock";
25 ok(! -e $socketpath, "$socketpath does not exist yet");
29 font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
35 for_window [title="$vartest"] border none
38 $config .= "ipc-socket $socketpath";
40 my $pid = launch_with_config($config, dont_add_socket_path => 1, dont_create_temp_dir => 1);
42 my $i3 = i3(get_socket_path());
46 my $timer = AE::timer 0.5, 0, sub { $cv->send(0); };
48 my $last_config = $i3->get_config()->recv;
49 chomp($last_config->{config});
50 is($last_config->{config}, $config,
51 'received config is not equal to written config');
53 exit_gracefully($pid);