NAME=entitlements mach with iC
FILE=../bins/mach0/AppIOSEntitlements.ios
EXPECT=<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>com.apple.application-identifier</key>
        <string>9JTH7AWHE6.com.bot.r2ftw</string>
        <key>com.apple.developer.aps-environment</key>
        <string>production</string>
        <key>com.apple.developer.icloud-container-environment</key>
        <string>Production</string>
        <key>com.apple.developer.icloud-container-identifiers</key>
        <array>
                <string>iCloud.com.bot.r2ftw</string>
        </array>
        <key>com.apple.developer.icloud-services</key>
        <array>
                <string>CloudKit</string>
        </array>
        <key>com.apple.developer.team-identifier</key>
        <string>9JTH7AWHE6</string>
        <key>com.apple.developer.ubiquity-kvstore-identifier</key>
        <string>9JTH7AWHE6.com.bot.r2ftw</string>
        <key>com.apple.security.app-sandbox</key>
        <true/>
        <key>com.apple.security.files.downloads.read-write</key>
        <true/>
        <key>com.apple.security.files.user-selected.read-write</key>
        <true/>
        <key>com.apple.security.network.client</key>
        <true/>
        <key>com.apple.security.personal-information.location</key>
        <true/>
</dict>
</plist>

EOF
CMDS=<<EOF
iC
EOF
RUN

NAME=entitlements with rabin2
FILE=../bins/mach0/AppIOSEntitlements.ios
EXPECT=<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>com.apple.application-identifier</key>
        <string>9JTH7AWHE6.com.bot.r2ftw</string>
        <key>com.apple.developer.aps-environment</key>
        <string>production</string>
        <key>com.apple.developer.icloud-container-environment</key>
        <string>Production</string>
        <key>com.apple.developer.icloud-container-identifiers</key>
        <array>
                <string>iCloud.com.bot.r2ftw</string>
        </array>
        <key>com.apple.developer.icloud-services</key>
        <array>
                <string>CloudKit</string>
        </array>
        <key>com.apple.developer.team-identifier</key>
        <string>9JTH7AWHE6</string>
        <key>com.apple.developer.ubiquity-kvstore-identifier</key>
        <string>9JTH7AWHE6.com.bot.r2ftw</string>
        <key>com.apple.security.app-sandbox</key>
        <true/>
        <key>com.apple.security.files.downloads.read-write</key>
        <true/>
        <key>com.apple.security.files.user-selected.read-write</key>
        <true/>
        <key>com.apple.security.network.client</key>
        <true/>
        <key>com.apple.security.personal-information.location</key>
        <true/>
</dict>
</plist>

EOF
CMDS=<<EOF
!rabin2 -OC `i~file:0[1]`
EOF
RUN
