2020-10-02 12:42:48 -07:00
|
|
|
include ../Makefile
|
|
|
|
|
|
|
|
LIB_NAME=serum_registry_program
|
|
|
|
|
|
|
|
.PHONY: test test-program
|
|
|
|
|
|
|
|
#
|
|
|
|
# Registry tests need to deploy *both* the rewards and regsitry program before
|
|
|
|
# running.
|
|
|
|
#
|
|
|
|
test: deploy-rewards deploy-super test-program
|
|
|
|
@ # no-op
|
|
|
|
|
|
|
|
deploy-rewards:
|
|
|
|
$(eval TMP=$(shell make -s -C ../rewards deploy))
|
|
|
|
$(eval TEST_REWARDS_PROGRAM_ID=$(shell echo $(TMP) | sed 's/.*{programId: \(.*\)}.*/\1/g'))
|
|
|
|
|
|
|
|
test-program:
|
2020-10-08 11:42:45 -07:00
|
|
|
make TEST_PROGRAM_ID=$(TEST_PROGRAM_ID) test-program-super
|