From 56c742bd90ebcb22feaff4d78ae4e62e72ffc7ad Mon Sep 17 00:00:00 2001 From: realtime-neil Date: Sun, 4 Aug 2019 19:56:44 +0000 Subject: fix #167: whitespace license path (#168) --- test/whitespacelicense | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100755 test/whitespacelicense (limited to 'test') diff --git a/test/whitespacelicense b/test/whitespacelicense new file mode 100755 index 0000000..43c976f --- /dev/null +++ b/test/whitespacelicense @@ -0,0 +1,63 @@ +#!/bin/bash + +THIS="$(readlink -f "$0")" +HERE="$(dirname "${THIS}")" +SUT="$(dirname "${HERE}")/makeself.sh" + +testWhiteSpaceLicense() { + # for each license file: its canonical path is identical to its content + local license_dir="$(mktemp -dt license_dir.XXXXXX)" + ( + cd "${license_dir}" + cat >"$(printf "_\x09_character_tabulation.txt")" <"$(printf "_\x0b_line_tabulation.txt")" <"$(printf "_\x0c_form_feed.txt")"<"$(printf "_\x0d_carriage_return.txt")"<"$(printf "_\x20_space.txt")"<