- fix test
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Wed, 7 Dec 2016 14:51:34 +0000 (15:51 +0100)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Wed, 7 Dec 2016 14:51:34 +0000 (15:51 +0100)
src/credential/Makefile.am
src/credential/gnunet-service-credential.c
src/credential/test_credential_verify_simple.sh

index e85c3cc2d32718195bce19808941c783488c3945..47204ae26316cddbb592154a96f47b25325607c8 100644 (file)
@@ -103,8 +103,10 @@ libgnunetcredential_la_LDFLAGS = \
 # $(GN_PLUGIN_LDFLAGS)
 
 
-#check_SCRIPTS = \
-  #test_gns_lookup.sh 
+check_SCRIPTS = \
+  test_credential_issue.sh \
+       test_credential_verify_simple.sh \
+       test_credential_verify.sh
 
 if ENABLE_TEST_RUN
 if HAVE_SQLITE
index bf85b1583b4dc3aab404b12ce76dff5b14c8bf6d..9f7b60f1f037f0f022ca1830c0d3e07432b3f1fb 100644 (file)
@@ -526,14 +526,6 @@ handle_credential_query (void* cls,
       continue;
     cred_record_count++;
     crd = rd[i].data;
-    /**
-     * TODO:
-     * Check if we have already found our credential here
-     * If so return success
-     * Else
-     *  Save all found attributes/issues and prepare forward
-     *  resolution of issuer attribute
-     */
     if(GNUNET_OK != GNUNET_CRYPTO_ecdsa_verify(GNUNET_SIGNATURE_PURPOSE_CREDENTIAL, 
                                                &crd->purpose,
                                                &crd->sig,
index 2fac4659e959f75521fc184aa7ffc565f1924a15..924f2ab4a443854a15b2a32336317038b0ab0141 100755 (executable)
@@ -19,7 +19,7 @@ rm -rf `gnunet-config -c test_credential_lookup.conf -s PATHS -o GNUNET_HOME -f`
 
 
 which timeout &> /dev/null && DO_TIMEOUT="timeout 30"
-#gnunet-arm -s -c test_credential_lookup.conf
+gnunet-arm -s -c test_credential_lookup.conf
 gnunet-identity -C testissuer -c test_credential_lookup.conf
 gnunet-identity -C testsubject -c test_credential_lookup.conf