13
0

Fix libpbd tests and add test for url_decode().

git-svn-id: svn://localhost/ardour2/branches/3.0@11770 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2012-04-01 14:29:26 +00:00
parent c886f761eb
commit 3240a93aad
4 changed files with 17 additions and 2 deletions

View File

@ -6,7 +6,7 @@ if [ ! -f './id.cc' ]; then
fi
srcdir=`pwd`
cd ../../build/default
cd ../../build
libs='libs'

View File

@ -0,0 +1,14 @@
#include "convert_test.h"
#include "pbd/convert.h"
CPPUNIT_TEST_SUITE_REGISTRATION (ConvertTest);
using namespace std;
void
ConvertTest::testUrlDecode ()
{
string url = "http://foo.bar.baz/A%20B%20C%20.html";
PBD::url_decode (url);
CPPUNIT_ASSERT_EQUAL (url, string ("http://foo.bar.baz/A B C .html"));
}

View File

@ -8,7 +8,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION (XPathTest);
using namespace std;
static string const prefix = "../../libs/pbd/test/";
static string const prefix = "../libs/pbd/test/";
void
XPathTest::testMisc ()

View File

@ -136,6 +136,7 @@ def build(bld):
test/xpath.cc
test/scalar_properties.cc
test/signals_test.cc
test/convert_test.cc
'''.split()
testobj.target = 'run-tests'
testobj.includes = obj.includes + ['test', '../pbd']