From 9ed4b24f6d1d6e5ef9119b8a22744eb16721b1eb Mon Sep 17 00:00:00 2001 From: Mark Donszelmann Date: Tue, 6 Oct 2009 21:31:40 +0200 Subject: Fixed tests 6, 11 and 12 --- .../executable-dep-lib-static/pom.xml | 71 --------------------- .../src/main/c/HelloWorldExe.c | 9 --- .../lib-static/pom.xml | 74 ---------------------- .../lib-static/src/main/c/HelloWorldLib.c | 7 -- .../lib-static/src/main/include/HelloWorldLib.h | 6 -- .../lib-static/src/test/c/HelloWorldTest.c | 9 --- src/it/it0011-executable-dep-lib-static/pom.xml | 43 ++++++++++--- .../src/main/c/HelloWorldExe.c | 9 +++ 8 files changed, 42 insertions(+), 186 deletions(-) delete mode 100644 src/it/it0011-executable-dep-lib-static/executable-dep-lib-static/pom.xml delete mode 100644 src/it/it0011-executable-dep-lib-static/executable-dep-lib-static/src/main/c/HelloWorldExe.c delete mode 100644 src/it/it0011-executable-dep-lib-static/lib-static/pom.xml delete mode 100644 src/it/it0011-executable-dep-lib-static/lib-static/src/main/c/HelloWorldLib.c delete mode 100644 src/it/it0011-executable-dep-lib-static/lib-static/src/main/include/HelloWorldLib.h delete mode 100644 src/it/it0011-executable-dep-lib-static/lib-static/src/test/c/HelloWorldTest.c create mode 100644 src/it/it0011-executable-dep-lib-static/src/main/c/HelloWorldExe.c (limited to 'src/it/it0011-executable-dep-lib-static') diff --git a/src/it/it0011-executable-dep-lib-static/executable-dep-lib-static/pom.xml b/src/it/it0011-executable-dep-lib-static/executable-dep-lib-static/pom.xml deleted file mode 100644 index 6c78c71..0000000 --- a/src/it/it0011-executable-dep-lib-static/executable-dep-lib-static/pom.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.nar - it0011-pom - 1.0-SNAPSHOT - - - it0011-executable-dep-lib-static - nar - - Maven NAR Executable - 1.0-SNAPSHOT - - Executable - - - - integration-test - - - maven-nar-plugin - true - - - - executable - true - - - - - - maven-surefire-plugin - - true - - - - - - - - org.apache.maven.its.nar - it0011-lib-static - 1.0-SNAPSHOT - - - diff --git a/src/it/it0011-executable-dep-lib-static/executable-dep-lib-static/src/main/c/HelloWorldExe.c b/src/it/it0011-executable-dep-lib-static/executable-dep-lib-static/src/main/c/HelloWorldExe.c deleted file mode 100644 index 4aa35d8..0000000 --- a/src/it/it0011-executable-dep-lib-static/executable-dep-lib-static/src/main/c/HelloWorldExe.c +++ /dev/null @@ -1,9 +0,0 @@ -#include -#include "HelloWorldLib.h" - -int main(int argc, char *argv[]) { - printf("%s\n", HelloWorldLib_sayHello()); - return 0; -} - - diff --git a/src/it/it0011-executable-dep-lib-static/lib-static/pom.xml b/src/it/it0011-executable-dep-lib-static/lib-static/pom.xml deleted file mode 100644 index 3ef44a4..0000000 --- a/src/it/it0011-executable-dep-lib-static/lib-static/pom.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.nar - it0011-pom - 1.0-SNAPSHOT - - - it0011-lib-static - nar - - Maven NAR Static Library - 1.0-SNAPSHOT - - Simple static library and test file - - http://maven.apache.org/ - - - - install - - - maven-nar-plugin - true - - - - static - - - - - HelloWorldTest - static - - - - - - maven-surefire-plugin - - true - - - - - diff --git a/src/it/it0011-executable-dep-lib-static/lib-static/src/main/c/HelloWorldLib.c b/src/it/it0011-executable-dep-lib-static/lib-static/src/main/c/HelloWorldLib.c deleted file mode 100644 index 9f65143..0000000 --- a/src/it/it0011-executable-dep-lib-static/lib-static/src/main/c/HelloWorldLib.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#include "HelloWorldLib.h" - -char* HelloWorldLib_sayHello() { - return "Hello NAR LIB World!"; -} - diff --git a/src/it/it0011-executable-dep-lib-static/lib-static/src/main/include/HelloWorldLib.h b/src/it/it0011-executable-dep-lib-static/lib-static/src/main/include/HelloWorldLib.h deleted file mode 100644 index 8c50dfb..0000000 --- a/src/it/it0011-executable-dep-lib-static/lib-static/src/main/include/HelloWorldLib.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef HelloWorldLib_H -#define HelloWorldLib_H - -extern char* HelloWorldLib_sayHello(); - -#endif diff --git a/src/it/it0011-executable-dep-lib-static/lib-static/src/test/c/HelloWorldTest.c b/src/it/it0011-executable-dep-lib-static/lib-static/src/test/c/HelloWorldTest.c deleted file mode 100644 index 4aa35d8..0000000 --- a/src/it/it0011-executable-dep-lib-static/lib-static/src/test/c/HelloWorldTest.c +++ /dev/null @@ -1,9 +0,0 @@ -#include -#include "HelloWorldLib.h" - -int main(int argc, char *argv[]) { - printf("%s\n", HelloWorldLib_sayHello()); - return 0; -} - - diff --git a/src/it/it0011-executable-dep-lib-static/pom.xml b/src/it/it0011-executable-dep-lib-static/pom.xml index 34142a2..74b92cd 100644 --- a/src/it/it0011-executable-dep-lib-static/pom.xml +++ b/src/it/it0011-executable-dep-lib-static/pom.xml @@ -29,21 +29,44 @@ under the License. ../it-parent/pom.xml - it0011-pom - pom + it0011-executable-dep-lib-static + nar Maven NAR Executable and Static Library 1.0-SNAPSHOT Executable depending on a static library. - - - install - - - executable-dep-lib-static - lib-static - + + integration-test + + + maven-nar-plugin + true + + + + executable + true + + + + + + maven-surefire-plugin + + true + + + + + + + + org.apache.maven.its.nar + it0010-lib-static + 1.0-SNAPSHOT + + diff --git a/src/it/it0011-executable-dep-lib-static/src/main/c/HelloWorldExe.c b/src/it/it0011-executable-dep-lib-static/src/main/c/HelloWorldExe.c new file mode 100644 index 0000000..4aa35d8 --- /dev/null +++ b/src/it/it0011-executable-dep-lib-static/src/main/c/HelloWorldExe.c @@ -0,0 +1,9 @@ +#include +#include "HelloWorldLib.h" + +int main(int argc, char *argv[]) { + printf("%s\n", HelloWorldLib_sayHello()); + return 0; +} + + -- cgit v1.2.3