diff options
author | Brian Anderson <banderson@mozilla.com> | 2015-02-04 18:09:45 -0800 |
---|---|---|
committer | Brian Anderson <banderson@mozilla.com> | 2015-02-04 18:13:16 -0800 |
commit | 0397e0edb9a777eaa064ebc0d24e19598cb4a55c (patch) | |
tree | 12803d8a6f8bb0900de36536f9d2a225b888b8cc /test.sh | |
parent | 43443a127bad87974e4dce1b4e6f57d969af7def (diff) | |
download | rust-installer-0397e0edb9a777eaa064ebc0d24e19598cb4a55c.tar.gz |
Make --destdir work without a trailing slash in path name
Diffstat (limited to 'test.sh')
-rwxr-xr-x | test.sh | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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. |