- Add mock-specific build artifacts (chroot/, mock-*, mockroot/) - Include package build files (*.deb, *.changes, *.buildinfo) - Add development tools (.coverage, .pytest_cache, .tox) - Include system files (.DS_Store, Thumbs.db, ._*) - Add temporary and backup files (*.tmp, *.bak, *.backup) - Include local configuration overrides (config.local.yaml, .env.local) - Add test artifacts and documentation builds - Comprehensive coverage for Python build system project This ensures build artifacts, chroot environments, and development tools are properly ignored in version control.
21 lines
925 B
Text
21 lines
925 B
Text
TESTDIR=$(cd $(dirname $0); pwd; cd ..)
|
|
TOPDIR=$(dirname $TESTDIR)
|
|
SIMPLESRPM=$TESTDIR/test-C-1.1-0.src.rpm
|
|
|
|
#VERBOSE=
|
|
VERBOSE=--verbose
|
|
|
|
#
|
|
# most tests below will use this mock command line
|
|
#
|
|
testConfig=fedora-42-x86_64
|
|
uniqueext="$$-$RANDOM"
|
|
outdir=${TOPDIR}/mock-unit-test
|
|
cfgdir=${TOPDIR}/../mock-core-configs/etc/mock
|
|
#MOCKCMD="sudo ./py/mock.py $VERBOSE --resultdir=$outdir --uniqueext=$uniqueext --configdir=$cfgdir -r $testConfig --plugin-option=root_cache:age_check=False $MOCK_EXTRA_ARGS"
|
|
MOCKCMD_NO_RESULTDIR="mock $VERBOSE --uniqueext=$uniqueext --configdir=$cfgdir -r $testConfig $MOCK_EXTRA_ARGS"
|
|
MOCKCMD="$MOCKCMD_NO_RESULTDIR --resultdir=$outdir"
|
|
MOCKCHAIN="mock $VERBOSE --chain --configdir=$cfgdir -r $testConfig $MOCK_EXTRA_ARGS"
|
|
CHROOT=/var/lib/mock/${testConfig}-$uniqueext/root
|
|
|
|
export MOCKSRPM TOPDIR TESTDIR testConfig uniqueext outdir MOCKCMD MOCKCMD_NO_RESULTDIR CHROOT VERBOSE MOCKCHAIN SIMPLESRPM
|