mirror of
https://github.com/jezhiggins/arabica
synced 2024-12-26 21:58:39 +01:00
added the new test script
This commit is contained in:
parent
0030be4581
commit
9b0ffe958f
2 changed files with 15 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
13
tests/XSLT/xslt_test_and_check.sh
Executable file
13
tests/XSLT/xslt_test_and_check.sh
Executable 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
|
Loading…
Reference in a new issue