diff --git a/examples/XSLT/mangle.cpp b/examples/XSLT/mangle.cpp index 49c468c8..3bdf085b 100755 --- a/examples/XSLT/mangle.cpp +++ b/examples/XSLT/mangle.cpp @@ -45,7 +45,7 @@ int main(int argc, const char* argv[]) //document.normalize(); stylesheet->execute(document); - +/* std::cout << "\n==============" << std::endl; Arabica::XSLT::DOMSink output; @@ -55,7 +55,7 @@ int main(int argc, const char* argv[]) Arabica::DOM::Node node = output.node(); std::cout << node << std::endl; - +*/ } catch(const std::runtime_error& ex) { diff --git a/tests/XSLT/xslt_test_and_check.sh b/tests/XSLT/xslt_test_and_check.sh new file mode 100755 index 00000000..306226b6 --- /dev/null +++ b/tests/XSLT/xslt_test_and_check.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +./xslt_test -table > test-run.csv +MISMATCH=`diff test.csv test-run.csv | wc -l ` + +if [ 0 -eq $MISMATCH ] +then + exit 0 +fi + +echo "TEST OUTPUT HAS CHANGED" +diff test.csv test-run.csv +exit 1