[librsvg/hospitality] CONTRIBUTING.md: Note on how to test changes
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/hospitality] CONTRIBUTING.md: Note on how to test changes
- Date: Fri, 19 Jan 2018 03:06:03 +0000 (UTC)
commit 6969b14b55bf5dbacecd0a359c006ce3566f31c9
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Jan 18 20:48:49 2018 -0600
CONTRIBUTING.md: Note on how to test changes
CONTRIBUTING.md | 14 ++++++++++++++
1 file changed, 14 insertions(+)
---
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index c39ceb8..8e5bd41 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -107,6 +107,20 @@ It is perfectly fine to [ask the maintainer][maintainer] if you have
questions about the Autotools setup; it's a tricky bit of machinery,
and we are glad to help.
+### Testing changes
+
+The most direct way to test a change is to have an example SVG file
+that exercises the code you want to test. Then you can rebuild
+librsvg, and run this:
+
+```
+cd /src/librsvg
+libtool --mode=execute ./rsvg-convert -o foo.png foo.svg
+```
+
+Then you can view the resulting `foo.png` image. Alternatively, you
+can use `./rsvg-view-3` for a quick-and-dirty SVG viewer.
+
[coc]: code_of_conduct.md
[gitlab]: https://gitlab.gnome.org/GNOME/librsvg
[bugs-browse]: https://gitlab.gnome.org/GNOME/librsvg/issues
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]