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 11* .o
2- /test
2+ /testprog
Original file line number Diff line number Diff line change @@ -6,16 +6,19 @@ CXX = g++
66WARN_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++
77endif
88
9- BIN = test
10- OBJECTS = OptionParser.o test .o
9+ BIN = testprog
10+ OBJECTS = OptionParser.o testprog .o
1111
1212$(BIN ) : $(OBJECTS )
1313 $(CXX ) -o $@ $(OBJECTS ) $(WARN_FLAGS ) $(LINKFLAGS )
1414
1515% .o : % .cpp OptionParser.h
1616 $(CXX ) $(WARN_FLAGS ) $(CXXFLAGS ) -c $< -o $@
1717
18- .PHONY : clean
18+ .PHONY : clean test
19+
20+ test : testprog
21+ ./test.sh
1922
2023clean :
2124 rm -f * .o $(BIN )
File renamed without changes.
Original file line number Diff line number Diff line change 33# vim: set filetype=sh fileencoding=utf-8 expandtab sw=4 sts=4:
44
55c () {
6- echo " $( printf " %q " ./test " $@ " ) "
6+ echo " $( printf " %q " ./testprog " $@ " ) "
77 local t_stdout_cpp=$( mktemp --tmpdir cpp-stdout-optparse.XXXXXXXXXX)
88 local t_stderr_cpp=$( mktemp --tmpdir cpp-stderr-optparse.XXXXXXXXXX)
99 local t_stdout_pyt=$( mktemp --tmpdir pyt-stdout-optparse.XXXXXXXXXX)
1010 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 "
1212 status_cpp=$?
13- ./t/test " $@ " > " $t_stdout_pyt " 2> " $t_stderr_pyt "
13+ ./t/testprog " $@ " > " $t_stdout_pyt " 2> " $t_stderr_pyt "
1414 status_pyt=$?
1515 if ! cmp -s " $t_stderr_cpp " " $t_stderr_pyt " ; then
1616 diff -u " $t_stderr_cpp " " $t_stderr_pyt "
File renamed without changes.
You can’t perform that action at this time.
0 commit comments