File tree Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 1
1
* .o
2
- /test
2
+ /testprog
Original file line number Diff line number Diff line change @@ -6,16 +6,19 @@ CXX = g++
6
6
WARN_FLAGS = -O3 -g -Wall -Wextra -Wabi -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wstrict-null-sentinel -Woverloaded-virtual -Wshadow -Wcast-align -Wpointer-arith -Wwrite-strings -Wundef -Wredundant-decls -Werror # -Weffc++
7
7
endif
8
8
9
- BIN = test
10
- OBJECTS = OptionParser.o test .o
9
+ BIN = testprog
10
+ OBJECTS = OptionParser.o testprog .o
11
11
12
12
$(BIN ) : $(OBJECTS )
13
13
$(CXX ) -o $@ $(OBJECTS ) $(WARN_FLAGS ) $(LINKFLAGS )
14
14
15
15
% .o : % .cpp OptionParser.h
16
16
$(CXX ) $(WARN_FLAGS ) $(CXXFLAGS ) -c $< -o $@
17
17
18
- .PHONY : clean
18
+ .PHONY : clean test
19
+
20
+ test : testprog
21
+ ./test.sh
19
22
20
23
clean :
21
24
rm -f * .o $(BIN )
File renamed without changes.
Original file line number Diff line number Diff line change 3
3
# vim: set filetype=sh fileencoding=utf-8 expandtab sw=4 sts=4:
4
4
5
5
c () {
6
- echo " $( printf " %q " ./test " $@ " ) "
6
+ echo " $( printf " %q " ./testprog " $@ " ) "
7
7
local t_stdout_cpp=$( mktemp --tmpdir cpp-stdout-optparse.XXXXXXXXXX)
8
8
local t_stderr_cpp=$( mktemp --tmpdir cpp-stderr-optparse.XXXXXXXXXX)
9
9
local t_stdout_pyt=$( mktemp --tmpdir pyt-stdout-optparse.XXXXXXXXXX)
10
10
local t_stderr_pyt=$( mktemp --tmpdir pyt-stderr-optparse.XXXXXXXXXX)
11
- ./test " $@ " > " $t_stdout_cpp " 2> " $t_stderr_cpp "
11
+ ./testprog " $@ " > " $t_stdout_cpp " 2> " $t_stderr_cpp "
12
12
status_cpp=$?
13
- ./t/test " $@ " > " $t_stdout_pyt " 2> " $t_stderr_pyt "
13
+ ./t/testprog " $@ " > " $t_stdout_pyt " 2> " $t_stderr_pyt "
14
14
status_pyt=$?
15
15
if ! cmp -s " $t_stderr_cpp " " $t_stderr_pyt " ; then
16
16
diff -u " $t_stderr_cpp " " $t_stderr_pyt "
File renamed without changes.
You can’t perform that action at this time.
0 commit comments