[gnote] fix make check from the addins branch
- From: Hubert Figuière <hub src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnote] fix make check from the addins branch
- Date: Wed, 20 May 2009 20:11:09 -0400 (EDT)
commit 22d1595ccf83778f4d385a39f5c00d76e95af95d
Author: Hubert Figuiere <hub figuiere net>
Date: Wed May 20 18:44:11 2009 -0400
fix make check from the addins branch
---
.gitignore | 9 +++++----
NEWS | 3 +--
po/POTFILES.in | 3 +++
src/test/filestest.cpp | 36 ++++++++++++++++++++++++++++++++++++
4 files changed, 45 insertions(+), 6 deletions(-)
diff --git a/.gitignore b/.gitignore
index 20bd87a..751a4b2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -32,13 +32,14 @@ data/gnote.desktop.in
data/gnote.schemas
data/GNOME_GnoteApplet.server
data/GNOME_GnoteApplet.server.in
+src/dttest
+src/filestest
src/gnote
src/gnote-applet
-src/trietest
-src/stringtest
-src/notetest
-src/dttest
src/libgnote.a
+src/notetest
+src/stringtest
+src/trietest
src/addins/addins.mk
src/addins/fixedwidth/fixedwidth.so
m4/intltool.m4
diff --git a/NEWS b/NEWS
index 59be053..20904a5 100644
--- a/NEWS
+++ b/NEWS
@@ -1,11 +1,10 @@
- * Addin to export to HTML.
-
0.4.0 -
New features:
* Handle command line argument --version and --search
* Backlinks addin.
+ * Addin to export to HTML.
Fixes:
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 0e73b13..70e48bc 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -20,8 +20,11 @@ src/notebooks/notebookmanager.cpp
src/notebooks/notebooknewnotemenuitem.cpp
src/notebooks/notebookmenuitem.cpp
src/notebooks/notebooknoteaddin.cpp
+src/addins/backlinks/backlinksnoteaddin.cpp
src/addins/bugzilla/bugzillanoteaddin.cpp
src/addins/bugzilla/bugzillapreferences.cpp
+src/addins/exporttohtml/exporttohtmldialog.cpp
+src/addins/exporttohtml/exporttohtmlnoteaddin.cpp
src/addins/fixedwidth/fixedwidthmenuitem.cpp
src/addins/fixedwidth/fixedwidthnoteaddin.cpp
src/addins/printnotes/printnotesnoteaddin.cpp
diff --git a/src/test/filestest.cpp b/src/test/filestest.cpp
new file mode 100644
index 0000000..d11e54c
--- /dev/null
+++ b/src/test/filestest.cpp
@@ -0,0 +1,36 @@
+/*
+ * gnote
+ *
+ * Copyright (C) 2009 Hubert Figuiere
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <iostream>
+
+#include <boost/test/minimal.hpp>
+
+#include "sharp/files.hpp"
+
+using namespace sharp;
+
+int test_main(int /*argc*/, char ** /*argv*/)
+{
+ std::string path = "/foo/bar/baz.txt";
+
+ BOOST_CHECK(file_basename(path) == "baz");
+ BOOST_CHECK(file_dirname(path) == "/foo/bar");
+
+ return 0;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]