Sha256: 7725a577b2037976bf3a668d01a1d60ba4c0d6fdb1ab7205b1ee3c7ffd7391b6

Contents?: true

Size: 758 Bytes

Versions: 12

Compression:

Stored size: 758 Bytes

Contents

#!/bin/bash

#
# libseccomp regression test automation data
#
# Copyright (c) 2017 Red Hat <pmoore@redhat.com>
# Author: Paul Moore <paul@paul-moore.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
./38-basic-pfc_coverage | \
	diff -q ${srcdir:=.}/38-basic-pfc_coverage.pfc - > /dev/null

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
script_core-0.3.2 ext/enterprise_script_service/libseccomp/tests/38-basic-pfc_coverage.sh
script_core-0.3.0 ext/enterprise_script_service/libseccomp/tests/38-basic-pfc_coverage.sh
script_core-0.2.7 ext/enterprise_script_service/libseccomp/tests/38-basic-pfc_coverage.sh
script_core-0.2.6 ext/enterprise_script_service/libseccomp/tests/38-basic-pfc_coverage.sh
script_core-0.2.5 ext/enterprise_script_service/libseccomp/tests/38-basic-pfc_coverage.sh
script_core-0.2.4 ext/enterprise_script_service/libseccomp/tests/38-basic-pfc_coverage.sh
script_core-0.2.3 ext/enterprise_script_service/libseccomp/tests/38-basic-pfc_coverage.sh
script_core-0.2.2 ext/enterprise_script_service/libseccomp/tests/38-basic-pfc_coverage.sh
script_core-0.2.1 ext/enterprise_script_service/libseccomp/tests/38-basic-pfc_coverage.sh
script_core-0.2.0 ext/enterprise_script_service/libseccomp/tests/38-basic-pfc_coverage.sh
script_core-0.1.1 ext/enterprise_script_service/libseccomp/tests/38-basic-pfc_coverage.sh
script_core-0.1.0 ext/enterprise_script_service/libseccomp/tests/38-basic-pfc_coverage.sh