Skip to content

Commit

Permalink
Rename test-runner to just runner
Browse files Browse the repository at this point in the history
And a minor fix to the VS solution.
  • Loading branch information
piscisaureus committed Apr 18, 2011
1 parent c3eda7a commit a3be533
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 21 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CFLAGS=-ansi -g -Wall
LINKFLAGS=-g -lm
all: oio.a test/test-runner
all: oio.a test/runner

TESTS=test/echo-server.c \
test/test-pass-always.c \
Expand All @@ -9,8 +9,8 @@ TESTS=test/echo-server.c \
test/test-callback-stack.c \
test/test-timeout.c

test/test-runner: test/*.h test/test-runner.c test/test-runner-unix.c $(TESTS) oio.a
$(CC) $(CFLAGS) $(LINKFLAGS) -o test/test-runner test/test-runner.c test/test-runner-unix.c $(TESTS) oio.a
test/runner: test/*.h test/runner.c test/runner-unix.c $(TESTS) oio.a
$(CC) $(CFLAGS) $(LINKFLAGS) -o test/runner test/runner.c test/runner-unix.c $(TESTS) oio.a

oio.a: oio-unix.o ev/ev.o
$(AR) rcs oio.a oio-unix.o ev/ev.o
Expand All @@ -30,11 +30,11 @@ ev/config.h:

.PHONY: clean distclean test

test: test/test-runner
test/test-runner
test: test/runner
test/runner

clean:
$(RM) -f *.o *.a test/test-runner
$(RM) -f *.o *.a test/runner
$(MAKE) -C ev clean

distclean:
Expand Down
8 changes: 4 additions & 4 deletions liboio-test.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,14 @@
<ClCompile Include="test\test-fail-always.c" />
<ClCompile Include="test\test-pass-always.c" />
<ClCompile Include="test\test-ping-pong.c" />
<ClCompile Include="test\test-runner-win32.c" />
<ClCompile Include="test\test-runner.c" />
<ClCompile Include="test\runner-win32.c" />
<ClCompile Include="test\runner.c" />
<ClCompile Include="test\test-timeout.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="test\test-list.h" />
<ClInclude Include="test\test-runner-win32.h" />
<ClInclude Include="test\test-runner.h" />
<ClInclude Include="test\runner-win32.h" />
<ClInclude Include="test\runner.h" />
<ClInclude Include="test\test.h" />
</ItemGroup>
<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions liboio.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,19 @@
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
<IntDir>$(Platform)\$(Configuration)</IntDir>
<IntDir>$(Platform)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
<IntDir>$(Platform)\$(Configuration)</IntDir>
<IntDir>$(Platform)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
<IntDir>$(Platform)\$(Configuration)</IntDir>
<IntDir>$(Platform)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
<IntDir>$(Platform)\$(Configuration)</IntDir>
<IntDir>$(Platform)\$(Configuration)\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
Expand Down
4 changes: 2 additions & 2 deletions test/test-runner-unix.c → test/runner-unix.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "test-runner-unix.h"
#include "test-runner.h"
#include "runner-unix.h"
#include "runner.h"

#include <unistd.h>
#include <stdio.h>
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions test/test-runner-win32.c → test/runner-win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <windows.h>

#include "test.h"
#include "test-runner.h"
#include "runner.h"


int process_start(char *name, process_info_t *p) {
Expand Down Expand Up @@ -104,7 +104,7 @@ int process_wait(process_info_t *vec, int n, int timeout) {
if (n == 0)
return 0;

ASSERT(n <= MAXIMUM_WAIT_OBJECTS)
ASSERT(n <= MAXIMUM_WAIT_OBJECTS);

for (i = 0; i < n; i++)
handles[i] = vec[i].process;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/test-runner.c → test/runner.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

#include "test.h"
#include "test-runner.h"
#include "runner.h"

#include <stdio.h>
#include <string.h>
Expand Down
4 changes: 2 additions & 2 deletions test/test-runner.h → test/runner.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ typedef struct {
* Include platform-dependent definitions
*/
#ifdef _WIN32
# include "test-runner-win32.h"
# include "runner-win32.h"
#else
# include "test-runner-unix.h"
# include "runner-unix.h"
#endif


Expand Down

0 comments on commit a3be533

Please sign in to comment.