From 37a9efa2901e8ac47089ac8766217e1677a0e232 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Fri, 1 Jun 2012 14:16:13 -0500 Subject: [PATCH] Added test for msi -o option. --- src/dbtools/test/msi.plt | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/dbtools/test/msi.plt b/src/dbtools/test/msi.plt index 7671e903d..f15a0b90c 100644 --- a/src/dbtools/test/msi.plt +++ b/src/dbtools/test/msi.plt @@ -13,15 +13,21 @@ use FindBin qw($Bin); # To find the msi executable use strict; use Test; -BEGIN {plan tests => 6} +BEGIN {plan tests => 7} -ok(msi('-I.. ../t1-template.txt'), slurp('../t1-result.txt')); -ok(msi('-I.. -S ../t2-substitution.txt'), slurp('../t2-result.txt')); -ok(msi('-I.. -S ../t3-substitution.txt'), slurp('../t3-result.txt')); -ok(msi('-g -I.. -S ../t4-substitution.txt'),slurp('../t4-result.txt')); +ok(msi('-I .. ../t1-template.txt'), slurp('../t1-result.txt')); +ok(msi('-I.. -S ../t2-substitution.txt'), slurp('../t2-result.txt')); +ok(msi('-I. -I.. -S ../t3-substitution.txt'), slurp('../t3-result.txt')); +ok(msi('-g -I.. -S ../t4-substitution.txt'), slurp('../t4-result.txt')); ok(msi('-S ../t5-substitute.txt ../t5-template.txt'), slurp('../t5-result.txt')); ok(msi('-S ../t6-substitute.txt ../t6-template.txt'), slurp('../t6-result.txt')); +# Check -o works +my $out = 't7-output.txt'; +unlink $out; +msi("-I.. -o $out ../t1-template.txt"); +ok(slurp($out), slurp('../t1-result.txt')); + # Support routines