mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-13 08:01:17 +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();
|
//document.normalize();
|
||||||
stylesheet->execute(document);
|
stylesheet->execute(document);
|
||||||
|
|
||||||
|
/*
|
||||||
std::cout << "\n==============" << std::endl;
|
std::cout << "\n==============" << std::endl;
|
||||||
|
|
||||||
Arabica::XSLT::DOMSink output;
|
Arabica::XSLT::DOMSink output;
|
||||||
|
@ -55,7 +55,7 @@ int main(int argc, const char* argv[])
|
||||||
|
|
||||||
Arabica::DOM::Node<std::string> node = output.node();
|
Arabica::DOM::Node<std::string> node = output.node();
|
||||||
std::cout << node << std::endl;
|
std::cout << node << std::endl;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
catch(const std::runtime_error& ex)
|
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