File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
SRC: =src
10
10
ROOT: =obj/$(OS ) /$(MODEL )
11
- TESTS: =stderr_msg
11
+ TESTS: =stderr_msg unittest_assert
12
12
13
13
ifneq (default,$(MODEL ) )
14
14
MODEL_FLAG:=-m$(MODEL)
@@ -29,6 +29,12 @@ $(ROOT)/stderr_msg.done: $(ROOT)/stderr_msg
29
29
$(QUIET ) ./$(ROOT ) /stderr_msg $(RUN_ARGS ) 2>&1 1> /dev/null | grep -qF " stderr_msg msg"
30
30
@touch $@
31
31
32
+ $(ROOT ) /unittest_assert.done : $(ROOT ) /unittest_assert
33
+ @echo Testing unittest_assert
34
+ $(QUIET ) ./$(ROOT ) /unittest_assert $(RUN_ARGS ) 2>&1 1> /dev/null | grep -qF " unittest_assert msg"
35
+ @touch $@
36
+
37
+ $(ROOT ) /unittest_assert : DFLAGS+=-unittest
32
38
$(ROOT ) /% : $(SRC ) /% .d
33
39
$(QUIET )$(DMD ) $(DFLAGS ) -of$@ $<
34
40
Original file line number Diff line number Diff line change
1
+ unittest
2
+ {
3
+ assert (0 , " unittest_assert msg" );
4
+ }
5
+
6
+ void main ()
7
+ {
8
+ }
You can’t perform that action at this time.
0 commit comments