[master] d0805ed Run the utilities in curses-mode.

Poul-Henning Kamp phk at FreeBSD.org
Thu Jan 11 11:08:07 UTC 2018


commit d0805ed9673c9d539e43192aea8267eec7cb6d28
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Jan 11 11:06:34 2018 +0000

    Run the utilities in curses-mode.

diff --git a/bin/varnishtest/tests/u00009.vtc b/bin/varnishtest/tests/u00009.vtc
new file mode 100644
index 0000000..7a5985a
--- /dev/null
+++ b/bin/varnishtest/tests/u00009.vtc
@@ -0,0 +1,25 @@
+varnishtest	"trivial run of varnihist in curses mode"
+
+feature term
+
+server s1 {
+	rxreq
+	txresp
+} -start
+
+varnish v1 -vcl+backend {} -start
+
+process p1 -dump {varnishhist -n ${v1_name}} -start
+
+delay 3
+
+client c1 {
+	txreq
+	rxresp
+} -run
+
+delay 3
+
+process p1 -write {q}
+
+process p1 -wait
diff --git a/bin/varnishtest/tests/u00010.vtc b/bin/varnishtest/tests/u00010.vtc
new file mode 100644
index 0000000..6a5c0c5
--- /dev/null
+++ b/bin/varnishtest/tests/u00010.vtc
@@ -0,0 +1,25 @@
+varnishtest	"trivial run of varnishtop in curses mode"
+
+feature term
+
+server s1 {
+	rxreq
+	txresp
+} -start
+
+varnish v1 -vcl+backend {} -start
+
+process p1 -dump {varnishtop -n ${v1_name}} -start
+
+delay 3
+
+client c1 {
+	txreq
+	rxresp
+} -run
+
+delay 3
+
+process p1 -write {q}
+
+process p1 -wait
diff --git a/bin/varnishtest/tests/u00011.vtc b/bin/varnishtest/tests/u00011.vtc
new file mode 100644
index 0000000..3f0f6dd
--- /dev/null
+++ b/bin/varnishtest/tests/u00011.vtc
@@ -0,0 +1,29 @@
+varnishtest	"trivial run of varnishadm in curses mode"
+
+feature term
+
+server s1 {
+	rxreq
+	txresp
+} -start
+
+varnish v1 -vcl+backend {} -start
+
+process p1 -dump {varnishadm -n ${v1_name}} -start
+
+delay 2
+
+client c1 {
+	txreq
+	rxresp
+} -run
+
+delay 2
+
+process p1 -writeln {panic.show}
+
+delay 2
+
+process p1 -writeln {quit}
+
+process p1 -wait
diff --git a/bin/varnishtest/vtc_process.c b/bin/varnishtest/vtc_process.c
index 81d18bc..86d4708 100644
--- a/bin/varnishtest/vtc_process.c
+++ b/bin/varnishtest/vtc_process.c
@@ -365,6 +365,7 @@ process_start(struct process *p)
 	assert(p->pid >= 0);
 	if (p->pid == 0) {
 		AZ(setenv("TERM", "adm3a", 1));
+		AZ(unsetenv("TERMCAP"));
 		assert(dup2(slave, STDIN_FILENO) == STDIN_FILENO);
 		assert(dup2(slave, STDOUT_FILENO) == STDOUT_FILENO);
 		assert(dup2(fd2[1], STDERR_FILENO) == STDERR_FILENO);


More information about the varnish-commit mailing list