154N/A# The contents of this file are subject to the terms of the 154N/A# Common Development and Distribution License (the "License"). 154N/A# You may not use this file except in compliance with the License. 154N/A# See the License for the specific language governing permissions 154N/A# and limitations under the License. 154N/A# When distributing Covered Code, include this CDDL HEADER in each 154N/A# If applicable, add the following below this CDDL HEADER, with the 409N/A# fields enclosed by brackets "[]" replaced with your own identifying 409N/A# information: Portions Copyright [yyyy] [name of copyright owner] 3339N/A# Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved. 2721N/A # If something in this list does not exist, the test_valid_elf 2721N/A # tests may fail. At some point if someone moves paths around in 2721N/A # ON, this might fail. Sorry! 2721N/A """Test that elf routines gracefully handle non-elf objects.""" 2721N/A p =
"this-is-not-an-elf-file.so" 2721N/A """Test that elf routines gracefully handle ENOENT.""" 2721N/A """Test that elf routines work on a small set of objects.""" 3236N/A """Test that get_hashes(..) returns checksums according to the 2962N/A parameters passed to the method.""" 2962N/A # Check that the hashes generated have the correct length 2962N/A # depending on the algorithm used to generated. 3402N/A # the default is to return both the SHA-1 elfhash and 3402N/A # the SHA-256 pkg.content-hash 3402N/A elif v[
1] ==
"sha512t_256":