/t/t18-tarball-encryption.sh
Shell | 42 lines | 24 code | 9 blank | 9 comment | 2 complexity | 30c16f4f4f1747ba1a78e66d9de372ab MD5 | raw file
Possible License(s): GPL-2.0
1#!/bin/sh 2 3set -e 4 5# Each test script should include testlib.sh 6source testlib.sh 7# When the test is ready, set this to false for nice outputs. 8# if you want to see what happens, use those flags 9# verbose="true" 10# warnings="true" 11 12# The conffile part of the test, see confs/* for details. 13source confs/base.conf 14source confs/tarball.conf 15 16export BM_ARCHIVE_ROOT="repository" 17export BM_ARCHIVE_METHOD="tarball" 18export BM_TARBALL_DIRECTORIES="$PWD" 19export BM_TARBALL_FILETYPE="tar.gz" 20export BM_ENCRYPTION_METHOD="gpg" 21export BM_ENCRYPTION_RECIPIENT="0x1EE5DD34" 22source $locallib/sanitize.sh 23 24# The test actions 25 26if [[ -e $BM_ARCHIVE_ROOT ]]; then 27 rm -f $BM_ARCHIVE_ROOT/* 28fi 29 30bm_init_env 31bm_init_today 32 33create_directories 34make_archives 35 36name=$(get_dir_name $PWD long) 37if [[ -e "$BM_ARCHIVE_ROOT/$BM_ARCHIVE_PREFIX$name.$TODAY.master.tar.gz.gpg" ]]; then 38# rm -rf $BM_ARCHIVE_ROOT 39 exit 0 40else 41 exit 1 42fi