diff options
author | ng0 <ng0@n0.is> | 2019-04-03 10:19:46 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-04-03 10:19:46 +0000 |
commit | fcac585424151f1c8d28905040cc7791e3ee05fa (patch) | |
tree | 6235965c810c7b692ca464fe41d2a1a3f731103b | |
parent | c1eea71192ecdd9dd978acd9ea756af56273d3ee (diff) | |
parent | 4ca288cb9a4e6e411a79456813e7b83f090863aa (diff) | |
download | gnunet-fcac585424151f1c8d28905040cc7791e3ee05fa.tar.gz gnunet-fcac585424151f1c8d28905040cc7791e3ee05fa.zip |
Merge branch 'master' of gnunet.org:gnunet
-rwxr-xr-x | src/fs/test_gnunet_fs_rec.py.in | 4 | ||||
-rw-r--r-- | src/gns/gnunet-gns-proxy-setup-ca.in | 3 | ||||
-rw-r--r-- | src/gns/test_gns_proxy.c | 4 | ||||
-rwxr-xr-x | src/gns/test_proxy.sh | 2 |
4 files changed, 9 insertions, 4 deletions
diff --git a/src/fs/test_gnunet_fs_rec.py.in b/src/fs/test_gnunet_fs_rec.py.in index 59063a9ee..0f881564f 100755 --- a/src/fs/test_gnunet_fs_rec.py.in +++ b/src/fs/test_gnunet_fs_rec.py.in | |||
@@ -11,7 +11,7 @@ | |||
11 | # WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | # Affero General Public License for more details. | 13 | # Affero General Public License for more details. |
14 | # | 14 | # |
15 | # You should have received a copy of the GNU Affero General Public License | 15 | # You should have received a copy of the GNU Affero General Public License |
16 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | # | 17 | # |
@@ -65,7 +65,7 @@ tar.extractall() | |||
65 | # first, basic publish-search-download run | 65 | # first, basic publish-search-download run |
66 | try: | 66 | try: |
67 | pub = pexpect() | 67 | pub = pexpect() |
68 | pub.spawn(None, [publish, '-c', 'test_gnunet_fs_rec_data.conf', '-d', '-k', 'testdir', 'dir/'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) | 68 | pub.spawn(None, [publish, '-c', 'test_gnunet_fs_rec_data.conf', '-k', 'testdir', 'dir/'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) |
69 | # Can't say much for publishing, except that the last one is the toplevel directory | 69 | # Can't say much for publishing, except that the last one is the toplevel directory |
70 | pub.expect("stdout", re.compile(r"Publishing `.+' done\.\r?\n")) | 70 | pub.expect("stdout", re.compile(r"Publishing `.+' done\.\r?\n")) |
71 | pub.expect("stdout", re.compile(r"URI is `gnunet://fs/chk/[A-Z0-9]{103}\.[A-Z0-9]{103}\.\d+'\.\r?\n")) | 71 | pub.expect("stdout", re.compile(r"URI is `gnunet://fs/chk/[A-Z0-9]{103}\.[A-Z0-9]{103}\.\d+'\.\r?\n")) |
diff --git a/src/gns/gnunet-gns-proxy-setup-ca.in b/src/gns/gnunet-gns-proxy-setup-ca.in index 59dc69da9..184da4853 100644 --- a/src/gns/gnunet-gns-proxy-setup-ca.in +++ b/src/gns/gnunet-gns-proxy-setup-ca.in | |||
@@ -141,7 +141,7 @@ generate_ca() | |||
141 | rm -f $GNSCAKY $GNSCANO $GNSCERT | 141 | rm -f $GNSCAKY $GNSCANO $GNSCERT |
142 | exit 1 | 142 | exit 1 |
143 | fi | 143 | fi |
144 | if [ -n "${GNUNET_CONFIG}" ]; then | 144 | if [ -n "${GNUNET_CONFIG_FILE}" ]; then |
145 | GNUNET_CONFIG="-c ${GNUNET_CONFIG_FILE}" | 145 | GNUNET_CONFIG="-c ${GNUNET_CONFIG_FILE}" |
146 | else | 146 | else |
147 | GNUNET_CONFIG="" | 147 | GNUNET_CONFIG="" |
@@ -231,6 +231,7 @@ main() | |||
231 | c) | 231 | c) |
232 | options="$options -c $OPTARG" | 232 | options="$options -c $OPTARG" |
233 | infomsg "Using configuration file $OPTARG" | 233 | infomsg "Using configuration file $OPTARG" |
234 | GNUNET_CONFIG_FILE=${OPTARG} | ||
234 | ;; | 235 | ;; |
235 | \?) | 236 | \?) |
236 | echo "Invalid option: -$OPTARG" >&2 | 237 | echo "Invalid option: -$OPTARG" >&2 |
diff --git a/src/gns/test_gns_proxy.c b/src/gns/test_gns_proxy.c index 0bfd84c91..2a7f8104b 100644 --- a/src/gns/test_gns_proxy.c +++ b/src/gns/test_gns_proxy.c | |||
@@ -370,7 +370,9 @@ start_curl (void *cls) | |||
370 | multi = curl_multi_init (); | 370 | multi = curl_multi_init (); |
371 | GNUNET_assert (multi != NULL); | 371 | GNUNET_assert (multi != NULL); |
372 | GNUNET_assert (CURLM_OK == curl_multi_add_handle (multi, curl)); | 372 | GNUNET_assert (CURLM_OK == curl_multi_add_handle (multi, curl)); |
373 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Beginning HTTP download from `%s'\n", url); | 373 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
374 | "Beginning HTTP download from `%s'\n", | ||
375 | url); | ||
374 | curl_main (); | 376 | curl_main (); |
375 | } | 377 | } |
376 | 378 | ||
diff --git a/src/gns/test_proxy.sh b/src/gns/test_proxy.sh index 5ea083122..7c17cd4c5 100755 --- a/src/gns/test_proxy.sh +++ b/src/gns/test_proxy.sh | |||
@@ -2,6 +2,8 @@ | |||
2 | # This file is in the public domain. | 2 | # This file is in the public domain. |
3 | TEST_DOMAIN="www.test" | 3 | TEST_DOMAIN="www.test" |
4 | 4 | ||
5 | # Delete old files before starting test | ||
6 | rm -rf /tmp/gnunet/test-gnunet-gns-testing/ | ||
5 | gnunet-arm -s -c test_gns_proxy.conf | 7 | gnunet-arm -s -c test_gns_proxy.conf |
6 | gnunet-gns-proxy-setup-ca -c test_gns_proxy.conf | 8 | gnunet-gns-proxy-setup-ca -c test_gns_proxy.conf |
7 | 9 | ||