summaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2015-02-04 18:09:45 -0800
committerBrian Anderson <banderson@mozilla.com>2015-02-04 18:13:16 -0800
commit0397e0edb9a777eaa064ebc0d24e19598cb4a55c (patch)
tree12803d8a6f8bb0900de36536f9d2a225b888b8cc /test.sh
parent43443a127bad87974e4dce1b4e6f57d969af7def (diff)
downloadrust-installer-0397e0edb9a777eaa064ebc0d24e19598cb4a55c.tar.gz
Make --destdir work without a trailing slash in path name
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/test.sh b/test.sh
index b7841ab..62c9827 100755
--- a/test.sh
+++ b/test.sh
@@ -754,6 +754,17 @@ destdir() {
}
runtest destdir
+destdir_no_trailing_slash() {
+ try sh "$S/gen-installer.sh" \
+ --verify-bin=program \
+ --image-dir="$TEST_DIR/image1" \
+ --work-dir="$WORK_DIR" \
+ --output-dir="$OUT_DIR"
+ try "$WORK_DIR/package/install.sh" --destdir="$PREFIX_DIR" --prefix=prefix
+ try test -e "$PREFIX_DIR/prefix/bin/program"
+}
+runtest destdir_no_trailing_slash
+
# TODO: DESTDIR
# TODO: mandir/libdir/bindir, etc.