From 4f8ac29f0ca730d48212282605cd61c654a42529 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 2 Sep 2013 19:34:59 +0200 Subject: urlparse ->uriparse --- util/t/uriparse/parse-url | 12 ++++++++++++ util/t/urlparse/parse-url | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) create mode 100755 util/t/uriparse/parse-url delete mode 100755 util/t/urlparse/parse-url (limited to 'util/t') diff --git a/util/t/uriparse/parse-url b/util/t/uriparse/parse-url new file mode 100755 index 00000000..153afb4a --- /dev/null +++ b/util/t/uriparse/parse-url @@ -0,0 +1,12 @@ +#!/bin/sh +set -euf +tempfile="`mktemp /tmp/test.XXXXXXXX`" +trap "/bin/rm -f $tempfile" EXIT INT + +urlparse "http://user:pass@domain.tld/path" > $tempfile +. $tempfile +[ $HOSTNAME == "domain.tld" ] && \ + [ $USERNAME == "user" ] && \ + [ $PASSWORD == "pass" ] && \ + [ $URIPATH == "/path" ] + diff --git a/util/t/urlparse/parse-url b/util/t/urlparse/parse-url deleted file mode 100755 index 153afb4a..00000000 --- a/util/t/urlparse/parse-url +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -set -euf -tempfile="`mktemp /tmp/test.XXXXXXXX`" -trap "/bin/rm -f $tempfile" EXIT INT - -urlparse "http://user:pass@domain.tld/path" > $tempfile -. $tempfile -[ $HOSTNAME == "domain.tld" ] && \ - [ $USERNAME == "user" ] && \ - [ $PASSWORD == "pass" ] && \ - [ $URIPATH == "/path" ] - -- cgit v1.2.3