CS3700-project2/Makefile

22 lines
500 B
Makefile
Raw Normal View History

2020-01-29 21:23:07 +00:00
.PHONY: all test clean
TESTS_DIR=build
TEST_SIM_PKG=https://course.ccs.neu.edu/cs3700sp20/archive/bgp-sim.tar.gz
all:
2020-01-30 23:40:35 +00:00
$(TESTS_DIR): $(TESTS_DIR)/sim
2020-01-29 21:23:07 +00:00
mkdir -p $(TESTS_DIR)
sudo ./scripts/nspawn-support.sh create $(TESTS_DIR)/container
2020-01-30 23:40:35 +00:00
$(TESTS_DIR)/sim:
mkdir -p $(TESTS_DIR)
2020-01-29 21:23:07 +00:00
cd $(TESTS_DIR) && wget -O bgp-sim.tar.gz $(TEST_SIM_PKG)
cd $(TESTS_DIR) && tar xf bgp-sim.tar.gz
clean:
sudo $(RM) -r $(TESTS_DIR)
test: $(TESTS_DIR)
sudo ./scripts/nspawn-support.sh boot $(TESTS_DIR)/container