From 550ddf7090a28921f16cfdac9da0f054c2da4ec2 Mon Sep 17 00:00:00 2001 From: Winston Li Date: Mon, 3 Nov 2014 16:26:51 +0000 Subject: [PATCH] Added support for system tests. --- services/git-bridge/.idea/workspace.xml | 187 ++++++++++++------------ services/git-bridge/README.md | 11 +- services/git-bridge/build.xml | 12 +- services/git-bridge/test/system/main.sh | 2 + 4 files changed, 118 insertions(+), 94 deletions(-) create mode 100755 services/git-bridge/test/system/main.sh diff --git a/services/git-bridge/.idea/workspace.xml b/services/git-bridge/.idea/workspace.xml index 619aab2e46..50226b577f 100644 --- a/services/git-bridge/.idea/workspace.xml +++ b/services/git-bridge/.idea/workspace.xml @@ -7,11 +7,8 @@ - - - - - + + @@ -38,7 +35,7 @@ - + @@ -48,28 +45,28 @@ - + - - + + - - + + - + - - + + @@ -78,7 +75,7 @@ - + @@ -88,8 +85,8 @@ - - + + @@ -98,7 +95,7 @@ - + @@ -108,33 +105,36 @@ - + + + + + + + + + + + + + + - + - - - - - - - - - - @@ -184,9 +184,7 @@ @@ -231,6 +231,7 @@ + @@ -315,6 +316,20 @@ + + + + + + + + - @@ -695,33 +709,33 @@ - + - - + - - + + - + + @@ -763,6 +777,7 @@ + @@ -795,7 +810,6 @@ - @@ -803,7 +817,6 @@ - @@ -869,7 +882,6 @@ - @@ -877,7 +889,6 @@ - @@ -1021,7 +1032,6 @@ - @@ -1029,7 +1039,6 @@ - @@ -1037,23 +1046,6 @@ - - - - - - - - - - - - - - - - - @@ -1061,7 +1053,6 @@ - @@ -1069,15 +1060,6 @@ - - - - - - - - - @@ -1085,15 +1067,6 @@ - - - - - - - - - @@ -1101,7 +1074,6 @@ - @@ -1121,6 +1093,22 @@ + + + + + + + + + + + + + + + + @@ -1137,18 +1125,37 @@ - + - - + + - + - - + + + + + + + + + + + + + + + + + + + + + diff --git a/services/git-bridge/README.md b/services/git-bridge/README.md index 88befd0267..1ffe307e40 100644 --- a/services/git-bridge/README.md +++ b/services/git-bridge/README.md @@ -1,5 +1,12 @@ writelatex-git-bridge ===================== -Run ant all to build the server. -then java -jar ./bin/writelatex-git-bridge +ant test: run unit and system tests. + +ant all: build the server into ./bin/writelatex-git-bridge.jar + +ant clean: clean built files + +to run: + +java -jar ./bin/writelatex-git-bridge.jar port root_git_directory diff --git a/services/git-bridge/build.xml b/services/git-bridge/build.xml index 10c18e62cf..8abcf2583e 100644 --- a/services/git-bridge/build.xml +++ b/services/git-bridge/build.xml @@ -260,7 +260,7 @@ - + @@ -274,10 +274,18 @@ + + + + + + + - + \ No newline at end of file diff --git a/services/git-bridge/test/system/main.sh b/services/git-bridge/test/system/main.sh new file mode 100755 index 0000000000..16a0f41683 --- /dev/null +++ b/services/git-bridge/test/system/main.sh @@ -0,0 +1,2 @@ +echo "System tests complete." +exit 0 \ No newline at end of file