Skip to content

Commit e0f682e

Browse files
authored
Merge pull request #17 from anuj-modi/linus-app
Linus app
2 parents a494d49 + 28250c1 commit e0f682e

File tree

15 files changed

+31025
-51
lines changed

15 files changed

+31025
-51
lines changed

.github/workflows/ccpp.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v2
17-
- name: install compile tools
17+
- name: Install compile tools
1818
run: |
1919
sudo apt update -y
2020
sudo apt install -y make g++ valgrind
2121
- name: Run tests
22-
run: make test
22+
run: make test-all
2323
- name: Valgrind tests
24-
run: make valgrind
24+
run: make valgrind-all

Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ $(ODIR)/%.o: ./tests/%.cpp $(DEPS)
3535
$(TEST_OUT): $(OBJS) $(DEPS)
3636
$(CC) $(CFLAGS) -o $(TEST_OUT) $(OBJS)
3737

38+
$(ODIR)/linus: src/linus.cpp $(DEPS)
39+
$(CC) $(CFLAGS) -Isrc/ -o $@ $<
40+
41+
$(ODIR)/client: $(ODIR)/linus
42+
cp $< $@
43+
44+
$(ODIR)/server: $(ODIR)/linus
45+
cp $< $@
46+
3847
.PHONY:test
3948
test: $(ODIR) $(TEST_OUT)
4049
$(TEST_OUT) "~[milestone]"
@@ -59,6 +68,10 @@ m1: $(TEST_OUT)
5968
m4: $(TEST_OUT)
6069
$(TEST_OUT) "[m4]"
6170

71+
.PHONY: m5
72+
m5: $(TEST_OUT)
73+
$(TEST_OUT) "[m5]"
74+
6275
.PHONY: valgrind-m1
6376
valgrind-m1: $(TEST_OUT)
6477
valgrind --errors-for-leak-kinds=all --error-exitcode=5 --leak-check=full $(TEST_OUT) "[m1]"
@@ -67,6 +80,10 @@ valgrind-m1: $(TEST_OUT)
6780
valgrind-m4: $(TEST_OUT)
6881
valgrind --errors-for-leak-kinds=all --error-exitcode=5 --leak-check=full $(TEST_OUT) "[m4]"
6982

83+
.PHONY: valgrind-m5
84+
valgrind-m5: $(TEST_OUT)
85+
valgrind --errors-for-leak-kinds=all --error-exitcode=5 --leak-check=full $(TEST_OUT) "[m5]"
86+
7087
.PHONY: clean
7188
clean:
7289
rm -rf $(ODIR)/* submission.zip

0 commit comments

Comments
 (0)