File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1
- run_test :
2
- make -C test test
1
+ all : clean docs manpages tests
3
2
4
- run_clitests :
5
- make -C test clitests
3
+ tests :
4
+ make -C test
6
5
7
6
% .html : % .md
8
7
sed " s/\.md)/\.html)/g" $< | pandoc -s --css styles.css -f markdown -t html -o $@
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ UNIT_TESTCASES = testPrintHelloWorld \
22
22
testRepository
23
23
# UNIT_TESTCASES = testRepository
24
24
25
- test : unittests clitests git_diff_results
25
+ tests : unittests clitests git_diff_results returncodes
26
26
27
27
clitests : _cliTestHelpSystem _cliTestSuites _cliTestLs _cliTestShow _cliTestDsc _cliTestSource
28
28
@@ -42,6 +42,10 @@ unittests: clean
42
42
done
43
43
$(FINISHED_TEST)
44
44
45
+ returncodes :
46
+ $(IS_GIT_TREE ) || exit 0
47
+ make clitests IS_GIT_TREE=false
48
+
45
49
git_diff_results :
46
50
$(IS_GIT_TREE ) || exit 0
47
51
$(STARTING_TEST )
58
62
59
63
_cliTestHelpSystem :
60
64
$(STARTING_TEST )
61
- $(CLI ) > cliHelpTest1.res 2>&1 $(EXP_OK )
65
+ $(CLI ) > cliHelpTest1.res 2>&1 $(EXP_FAIL )
62
66
diff -u cliHelpTest1.ref cliHelpTest1.res $(EXP_OK )
63
67
64
68
$(CLI ) -h > cliHelpTest2.res 2>&1 $(EXP_OK )
@@ -139,10 +143,10 @@ _cliTestDsc:
139
143
$(CLI ) dsc -s ubuntu: reprepro > cliTestDsc2.res 2>&1 $(EXP_OK )
140
144
diff -u cliTestDsc2.ref cliTestDsc2.res $(EXP_OK )
141
145
142
- $(CLI ) dsc -s ubuntu: notexistent > cliTestDsc3.res 2>&1 $(EXP_FAIL )
146
+ $(CLI ) dsc -s ubuntu: notexistent > cliTestDsc3.res 2>&1 $(EXP_OK )
143
147
diff -u cliTestDsc3.ref cliTestDsc3.res $(EXP_OK )
144
148
145
- $(CLI ) dsc -c main -s ubuntu: reprepro > cliTestDsc4.res 2>&1 $(EXP_FAIL )
149
+ $(CLI ) dsc -c main -s ubuntu: reprepro > cliTestDsc4.res 2>&1 $(EXP_OK )
146
150
diff -u cliTestDsc4.ref cliTestDsc4.res $(EXP_OK )
147
151
148
152
$(CLI ) dsc -c universe -s ubuntu: reprepro > cliTestDsc5.res 2>&1 $(EXP_OK )
You can’t perform that action at this time.
0 commit comments