]> git.saurik.com Git - apple/security.git/blame - OSX/codesign_tests/teamid.sh
Security-58286.240.4.tar.gz
[apple/security.git] / OSX / codesign_tests / teamid.sh
CommitLineData
5c19dc3a
A
1#!/bin/bash
2
3echo "[TEST] team identifier verification"
4
5echo "[BEGIN] executable with false team identifier"
6
7MY_TEMP=$(mktemp /tmp/codesign.XXXXXX)
8codesign --verify --verbose=3 $1 2> $MY_TEMP
9
10if grep -s "invalid or unsupported format for signature" $MY_TEMP
11then
12 echo "[PASS]"
13else
14 echo "[FAIL]"
15fi
16rm -f $MY_TEMP
17