aboutsummaryrefslogtreecommitdiff
path: root/lib/cpluff/test/test-loadmaximal
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cpluff/test/test-loadmaximal')
-rwxr-xr-xlib/cpluff/test/test-loadmaximal17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/cpluff/test/test-loadmaximal b/lib/cpluff/test/test-loadmaximal
new file mode 100755
index 0000000000..420dd204cb
--- /dev/null
+++ b/lib/cpluff/test/test-loadmaximal
@@ -0,0 +1,17 @@
+#! /bin/sh
+
+# Copyright 2007 Johannes Lehtinen
+# This shell script is free software; Johannes Lehtinen gives unlimited
+# permission to copy, distribute and modify it.
+
+set -e
+
+tmpdir="tmp/test-loadmaximal"
+mkdir -p "$tmpdir"
+LC_ALL=C libtool --mode=execute $TEST_WRAPPER ../console/cpluff-console <<EOI > "$tmpdir"/console-out.txt
+set-log-level error
+load-plugin $srcdir/plugins/maximal
+show-plugin-info maximal
+EOI
+sed -n -e '/^{$/,/^}$/{/^ plugin_path =/!p}' < "$tmpdir"/console-out.txt > "$tmpdir"/filtered.txt
+diff -u "$srcdir"/expected/output-loadmaximal.txt "$tmpdir"/filtered.txt