diff options
author | Bjørn Christian Seime <bjorn.christian@seime.no> | 2016-06-28 15:02:05 +0200 |
---|---|---|
committer | Vegard Sjonfjell <vegardsjo@gmail.com> | 2016-06-28 15:02:05 +0200 |
commit | 4793d5fede988b8855c16e092a6df56f21c07d7f (patch) | |
tree | 5f12dc3c03ec8586fc676e92d3173a6164c19120 /lowercasing_test/src/tests | |
parent | 95c79e22adc07931d4a935ecf6df2da0c3662ea0 (diff) |
WIP (#245)
Diffstat (limited to 'lowercasing_test/src/tests')
10 files changed, 0 insertions, 152 deletions
diff --git a/lowercasing_test/src/tests/create-test.sh b/lowercasing_test/src/tests/create-test.sh deleted file mode 100755 index feca94c7de2..00000000000 --- a/lowercasing_test/src/tests/create-test.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/bin/sh -# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. - -gen_ignore_file() { - echo "generating '$1' ..." - echo ".depend" > $1 - echo "Makefile" >> $1 - echo "${test}_test" >> $1 -} - -gen_project_file() { - echo "generating '$1' ..." - echo "APPLICATION ${test}_test" > $1 - echo "OBJS $test" >> $1 - echo "EXTERNALLIBS searchlib" >> $1 - echo "EXTERNALLIBS vespalib" >> $1 - echo "EXTERNALLIBS vespalog" >> $1 - echo "" >> $1 - echo "CUSTOMMAKE" >> $1 - echo "test: depend ${test}_test" >> $1 - echo -e "\t@./${test}_test" >> $1 -} - -gen_source() { - echo "generating '$1' ..." - echo "#include <vespa/log/log.h>" > $1 - echo "LOG_SETUP(\"${test}_test\");" >> $1 - echo "#include <vespa/fastos/fastos.h>" >> $1 - echo "#include <vespa/vespalib/testkit/testapp.h>" >> $1 - echo "" >> $1 - echo "" >> $1 - echo "TEST_SETUP(Test);" >> $1 - echo "" >> $1 - echo "int" >> $1 - echo "Test::Main()" >> $1 - echo "{" >> $1 - echo " TEST_INIT(\"${test}_test\");" >> $1 - echo " TEST_DONE();" >> $1 - echo "}" >> $1 -} - -gen_desc() { - echo "generating '$1' ..." - echo "$test test. Take a look at $test.cpp for details." > $1 -} - -gen_file_list() { - echo "generating '$1' ..." - echo "$test.cpp" > $1 -} - -if [ $# -ne 1 ]; then - echo "usage: $0 <name>" - echo " name: name of the test to create" - exit 1 -fi - -test=$1 -if [ -e $test ]; then - echo "$test already present, don't want to mess it up..." - exit 1 -fi - -echo "creating directory '$test' ..." -mkdir -p $test || exit 1 -cd $test || exit 1 -test=`basename $test` - -gen_ignore_file .cvsignore -gen_project_file fastos.project -gen_source $test.cpp -gen_desc DESC -gen_file_list FILES diff --git a/lowercasing_test/src/tests/hello-world/.gitignore b/lowercasing_test/src/tests/hello-world/.gitignore deleted file mode 100644 index 40a57ff7d39..00000000000 --- a/lowercasing_test/src/tests/hello-world/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -.depend -HelloWorldLocal.class -Makefile -hello-world-local -out.txt -lowercasing_test_hello-world-local_app diff --git a/lowercasing_test/src/tests/hello-world/CMakeLists.txt b/lowercasing_test/src/tests/hello-world/CMakeLists.txt deleted file mode 100644 index 079fbe85d71..00000000000 --- a/lowercasing_test/src/tests/hello-world/CMakeLists.txt +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -vespa_add_executable(lowercasing_test_hello-world-local_app TEST - SOURCES - hello-world-local.cpp - DEPENDS - lowercasing_test_hello-world-lib -) -vespa_add_test(NAME lowercasing_test_hello-world-local_app NO_VALGRIND COMMAND sh hello-world_test.sh) diff --git a/lowercasing_test/src/tests/hello-world/DESC b/lowercasing_test/src/tests/hello-world/DESC deleted file mode 100644 index 47ab72663ef..00000000000 --- a/lowercasing_test/src/tests/hello-world/DESC +++ /dev/null @@ -1 +0,0 @@ -Initial test to verify the integrity of this testing module. diff --git a/lowercasing_test/src/tests/hello-world/FILES b/lowercasing_test/src/tests/hello-world/FILES deleted file mode 100644 index beec05c0632..00000000000 --- a/lowercasing_test/src/tests/hello-world/FILES +++ /dev/null @@ -1,5 +0,0 @@ -hello-world-local.cpp -HelloWorldLocal.java -dotest.sh -out.txt -ref.txt diff --git a/lowercasing_test/src/tests/hello-world/HelloWorldLocal.java b/lowercasing_test/src/tests/hello-world/HelloWorldLocal.java deleted file mode 100644 index a0928a58c99..00000000000 --- a/lowercasing_test/src/tests/hello-world/HelloWorldLocal.java +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -public class HelloWorldLocal -{ - public static void main(String[] args) - { - System.out.println("Java/local/Hello World"); - } -} diff --git a/lowercasing_test/src/tests/hello-world/dotest.sh b/lowercasing_test/src/tests/hello-world/dotest.sh deleted file mode 100755 index 53f66a84ffe..00000000000 --- a/lowercasing_test/src/tests/hello-world/dotest.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -set -e - -. ../../binref/env.sh - -./lowercasing_test_hello-world-local_app > out.txt -$HELLO_WORLD_APP >> out.txt -$BINREF/runjava HelloWorldLocal >> out.txt -$BINREF/runjava HelloWorld >> out.txt - -if diff -u out.txt ref.txt; then - exit 0 -else - exit 1 -fi diff --git a/lowercasing_test/src/tests/hello-world/hello-world-local.cpp b/lowercasing_test/src/tests/hello-world/hello-world-local.cpp deleted file mode 100644 index f9f42cf6b59..00000000000 --- a/lowercasing_test/src/tests/hello-world/hello-world-local.cpp +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/fastos/fastos.h> -#include <grouping_test/hello-world-lib/hello-world.h> - -class App : public FastOS_Application -{ -public: - int Main(); -}; - -int -App::Main() -{ - HelloWorld::print(); - fprintf(stdout, "C++/local/Hello World\n"); - return 0; -} - -int -main(int argc, char **argv) -{ - App myapp; - return myapp.Entry(argc, argv); -} diff --git a/lowercasing_test/src/tests/hello-world/hello-world_test.sh b/lowercasing_test/src/tests/hello-world/hello-world_test.sh deleted file mode 100755 index f83dcbe2584..00000000000 --- a/lowercasing_test/src/tests/hello-world/hello-world_test.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -set -e -. ../../binref/env.sh -$BINREF/compilejava HelloWorldLocal.java -sh dotest.sh diff --git a/lowercasing_test/src/tests/hello-world/ref.txt b/lowercasing_test/src/tests/hello-world/ref.txt deleted file mode 100644 index 5f2f17f3e52..00000000000 --- a/lowercasing_test/src/tests/hello-world/ref.txt +++ /dev/null @@ -1,6 +0,0 @@ -C++/lib/Hello World -C++/local/Hello World -C++/lib/Hello World -C++/app/Hello World -Java/local/Hello World -Java/jar/HelloWorld |