added the new test script

This commit is contained in:
Jez Higgins 2010-01-09 21:25:52 +00:00
parent 0030be4581
commit 9b0ffe958f
2 changed files with 15 additions and 2 deletions

View file

@ -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<std::string> node = output.node();
std::cout << node << std::endl;
*/
}
catch(const std::runtime_error& ex)
{

View file

@ -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