diff options
author | Damien Martin-Guillerez <dmarting@google.com> | 2015-11-10 20:20:54 +0000 |
---|---|---|
committer | Dmitry Lomov <dslomov@google.com> | 2015-11-11 13:08:16 +0000 |
commit | 17c8d1c3cae0997ca7759ac5fa6b8bfc8f2675c3 (patch) | |
tree | 300f2790c38858e5c8cc36390c7369ae5796ec44 /tools/build_defs/pkg/build_test.sh | |
parent | 98f3149107056cbc733fd983f00440f609280591 (diff) |
Fix tools/build_defs/pkg:build_test
This is a fallout from race between
https://bazel-review.googlesource.com/#/c/2222/
and
https://bazel-review.googlesource.com/#/c/2212/
--
MOS_MIGRATED_REVID=107512322
Diffstat (limited to 'tools/build_defs/pkg/build_test.sh')
-rwxr-xr-x | tools/build_defs/pkg/build_test.sh | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/tools/build_defs/pkg/build_test.sh b/tools/build_defs/pkg/build_test.sh index d0caa2c197..7792932788 100755 --- a/tools/build_defs/pkg/build_test.sh +++ b/tools/build_defs/pkg/build_test.sh @@ -53,8 +53,12 @@ function get_deb_permission() { function test_tar() { - local listing="./etc/nsswitch.conf + local listing="./ +./etc/ +./etc/nsswitch.conf +./usr/ ./usr/titi +./usr/bin/ ./usr/bin/java -> /path/to/bin/java" for i in "" ".gz" ".bz2"; do check_eq "$listing" "$(get_tar_listing test-tar-${i:1}.tar$i)" @@ -62,10 +66,15 @@ function test_tar() { check_eq "-rw-r--r--" "$(get_tar_permission test-tar-${i:1}.tar$i ./etc/nsswitch.conf)" done; - check_eq "./nsswitch.conf" "$(get_tar_listing test-tar-strip_prefix-empty.tar)" - check_eq "./nsswitch.conf" "$(get_tar_listing test-tar-strip_prefix-none.tar)" - check_eq "./nsswitch.conf" "$(get_tar_listing test-tar-strip_prefix-empty.tar)" - check_eq "./etc/nsswitch.conf" "$(get_tar_listing test-tar-strip_prefix-dot.tar)" + check_eq "./ +./nsswitch.conf" "$(get_tar_listing test-tar-strip_prefix-empty.tar)" + check_eq "./ +./nsswitch.conf" "$(get_tar_listing test-tar-strip_prefix-none.tar)" + check_eq "./ +./nsswitch.conf" "$(get_tar_listing test-tar-strip_prefix-etc.tar)" + check_eq "./ +./etc/ +./etc/nsswitch.conf" "$(get_tar_listing test-tar-strip_prefix-dot.tar)" } function test_deb() { @@ -73,8 +82,12 @@ function test_deb() { echo "Unable to run test for debian, no dpkg-deb!" >&2 return 0 fi - local listing="./etc/nsswitch.conf + local listing="./ +./etc/ +./etc/nsswitch.conf +./usr/ ./usr/titi +./usr/bin/ ./usr/bin/java -> /path/to/bin/java" check_eq "$listing" "$(get_deb_listing test-deb.deb)" check_eq "-rwxr-xr-x" "$(get_deb_permission test-deb.deb ./usr/titi)" |