Sha256: 06141d3fe68f02e0a222a02d0f863a32c8fdaadd6fa41050ced3e676fe5f6ad2

Contents?: true

Size: 794 Bytes

Versions: 3

Compression:

Stored size: 794 Bytes

Contents

#!/bin/bash

#
# libseccomp regression test automation data
#
# Copyright (c) 2019 Oracle and/or its affiliates.  All rights reserved.
# Author: Tom Hromatka <tom.hromatka@oracle.com>
#

####
# functions

#
# Dependency check
#
# Arguments:
#     1    Dependency to check for
#
function check_deps() {
	[[ -z "$1" ]] && return
	which "$1" >& /dev/null
	return $?
}

#
# Dependency verification
#
# Arguments:
#     1    Dependency to check for
#
function verify_deps() {
	[[ -z "$1" ]] && return
	if ! check_deps "$1"; then
		echo "error: install \"$1\" and include it in your \$PATH"
		exit 1
	fi
}

####
# functions

verify_deps diff

# compare output to the known good output, fail if different
./55-basic-pfc_binary_tree | \
	diff -q ${srcdir:=.}/55-basic-pfc_binary_tree.pfc - > /dev/null

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
script_core-0.3.2 ext/enterprise_script_service/libseccomp/tests/55-basic-pfc_binary_tree.sh
script_core-0.3.0 ext/enterprise_script_service/libseccomp/tests/55-basic-pfc_binary_tree.sh
script_core-0.2.7 ext/enterprise_script_service/libseccomp/tests/55-basic-pfc_binary_tree.sh