gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-46


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-464-g4cc61f4
Date: Tue, 16 Apr 2013 15:19:30 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  4cc61f4871d2a2fd63f3f1a2d56d9a6c144b250b (commit)
      from  3795eb73e6f03a959db6908d31181b04a3fbb7de (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=4cc61f4871d2a2fd63f3f1a2d56d9a6c144b250b


commit 4cc61f4871d2a2fd63f3f1a2d56d9a6c144b250b
Author: Daniele Forsi <address@hidden>
Date:   Tue Apr 16 16:43:58 2013 +0200

    Add a test for writephonebook

diff --git a/common/phones/fake.c b/common/phones/fake.c
index 9f78efa..eaeeab0 100644
--- a/common/phones/fake.c
+++ b/common/phones/fake.c
@@ -482,7 +482,8 @@ static gn_error fake_writephonebook(gn_data *data, struct 
gn_statemachine *state
        tmp[len-1] = '"';
        tmp[len++] = '\r';
        tmp[len] = '\0';
-       dprintf("%s\n", req);
+       fprintf(stdout, "%s\n", req);
+
        return GN_ERR_NONE;
 }
 
diff --git a/testsuite/out.1.writephonebook b/testsuite/out.1.writephonebook
new file mode 100644
index 0000000..dbbe397
--- /dev/null
+++ b/testsuite/out.1.writephonebook
@@ -0,0 +1,2 @@
+AT+CPBW=1,"002B00310032003300340035003600370038003900300031003200330034",145,"0054006500730074002000C000E000C800E800C900E900CC00EC00D200F200D900F9"
+Write Succeeded: memory type: ME, loc: 1, name: Test ÀàÈèÉéÌìÒòÙù, 
number: +12345678901234
diff --git a/testsuite/test.1.writephonebook b/testsuite/test.1.writephonebook
new file mode 100644
index 0000000..62647c2
--- /dev/null
+++ b/testsuite/test.1.writephonebook
@@ -0,0 +1,2 @@
+# (the following line is UTF-8)
+echo "Test ÀàÈèÉéÌìÒòÙù;+12345678901234;ME;1;0" | $GNOKII 
--writephonebook --overwrite
diff --git a/testsuite/testit b/testsuite/testit
index 9e1de1f..47bcb10 100755
--- a/testsuite/testit
+++ b/testsuite/testit
@@ -29,7 +29,8 @@ for A in test.0.identify \
        test.11.ringtone \
        test.13.emspicture test.15.emspicture2 test.18.emsanimation \
        test.16.imelody \
-       test.40.getsms test.41.getsms test.42.getsms test.43.getsms; do
+       test.40.getsms test.41.getsms test.42.getsms test.43.getsms \
+       test.1.writephonebook; do
     echo -n "Doing $A... "
     B=`echo $A | sed s/test/out/`
     source $A 2>&1 | grep -v ^GNOKII | grep -v '^Doing operation' > my$B

-----------------------------------------------------------------------

Summary of changes:
 common/phones/fake.c            |    3 ++-
 testsuite/out.1.writephonebook  |    2 ++
 testsuite/test.1.writephonebook |    2 ++
 testsuite/testit                |    3 ++-
 4 files changed, 8 insertions(+), 2 deletions(-)
 create mode 100644 testsuite/out.1.writephonebook
 create mode 100644 testsuite/test.1.writephonebook


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]