head	1.4;
access;
symbols
	rpm-4_4_8-release:1.4
	jbj_before_refatoring:1.4
	rpm-4_4_7-release:1.4
	rpm-4_4_6-release:1.4
	rpm-4_4_5-release:1.4
	rpm-4_4_4-release:1.4
	rpm-4_4_3-release:1.4
	rpm-4_4:1.4.0.4
	joo_foo:1.4
	pjones-sparse-experiment:1.4.0.2;
locks; strict;
comment	@# @;


1.4
date	2005.06.07.14.34.41;	author joden;	state Exp;
branches
	1.4.4.1;
next	1.3;

1.3
date	2005.02.17.03.25.50;	author joden;	state Exp;
branches;
next	1.2;

1.2
date	2005.02.16.15.19.00;	author joden;	state Exp;
branches;
next	1.1;

1.1
date	2005.02.08.15.36.30;	author joden;	state Exp;
branches;
next	;

1.4.4.1
date	2007.05.10.13.34.20;	author joden;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Added new test for autorollback goal when pre-transaction test fails.
Added check for core files.
@
text
@APP_NAME      = rpm-test-harness
VERSION       = 12.2
NV            = $(APP_NAME)-$(VERSION)
TMP_DIR       = /tmp
PREFIX        = /
BUILD_ROOT    = $(TMP_DIR)/$(USER)
BUILD_DIR     = $(BUILD_ROOT)$(PREFIX)/$(NV)
SRC_DIR       = $(shell pwd)
TARBALL       = $(BUILD_ROOT)/$(NV).tgz
CACHE_DIR     = $(SRC_DIR)/cache
RPMSOURCE_DIR = $(shell rpm --eval '%{_sourcedir}')
SPECFILE      = $(shell pwd)/$(APP_NAME).spec

.PHONY: test

test:
	@@echo "APP_NAME  = $(APP_NAME)"
	@@echo "VERSION   = $(VERSION)"
	@@echo "NV        = $(NV)"
	@@echo "TMP_DIR   = $(TMP_DIR)"
	@@echo "BUILD_DIR = $(BUILD_DIR)"
	@@echo "SRC_DIR   = $(SRC_DIR)"
	@@echo "TARBALL   = $(TARBALL)"

buildprep:
	rm -rf $(BUILD_DIR)
	mkdir -p $(BUILD_DIR)
	(cd $(SRC_DIR); tar cf - .) | (cd $(BUILD_DIR); tar xvf -)
	cd $(BUILD_DIR); make clean
	cd $(BUILD_DIR); ./init clean

distro: 
	make buildprep
	cd $(BUILD_ROOT); tar czhvf "$(TARBALL)" "$(NV)"
	@@echo ""
	@@echo "TARBALL: $(TARBALL)"
	@@echo ""

rpmbuild:
	make buildprep

rpm:
	make distro
	cp $(TARBALL) $(RPMSOURCE_DIR)
	rpmbuild -ba --define 'version $(VERSION)' $(SPECFILE)

clean:
	@@echo "Cleaning up core files..."
	rm -f core.*
	rm -f core

@


1.4.4.1
log
@Added test maps, and modified some.
@
text
@d2 1
a2 1
VERSION       = 13.0
@


1.3
log
@Added arbgoal test that tests ability to handle pre rpm transaction errors:

   - deps
   - order
   - file space.

The tests fails right now as expected.  Working on changing rpm to make it
pass (-;
@
text
@d2 1
a2 1
VERSION       = 12.1
@


1.2
log
@- Now throw --repackage in rollback and autorollback tests.
- Fixed bug in test harness specfile where harness directory was duplicated.
- Upped version.
@
text
@d2 1
a2 1
VERSION       = 12
@


1.1
log
@Adding version 11 of rpm-test-harness.
@
text
@d2 1
a2 1
VERSION       = 11
@

