diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2019-02-19 13:24:04 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2019-02-19 13:24:04 +0100 |
commit | de943ace447303e4ef547ca7385a8d838ee853f9 (patch) | |
tree | d71c6f6be81ddca969c5ce125bb76fcf5a029238 /documentapi | |
parent | 3207c4de4c31d3e0aa43a908216c5528f01d02a5 (diff) |
Remove old unit test runner.
Remove unmaintained scripts to generate old style unit test skeletons.
Diffstat (limited to 'documentapi')
-rwxr-xr-x | documentapi/src/tests/create-test.sh | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/documentapi/src/tests/create-test.sh b/documentapi/src/tests/create-test.sh deleted file mode 100755 index 9809d54d38b..00000000000 --- a/documentapi/src/tests/create-test.sh +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/sh -# Copyright 2017 Yahoo Holdings. 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 "LIBS documentapi/documentapi" >> $1 - echo "EXTERNALLIBS vespalib vespalog document config messagebus-test" >> $1 - echo "EXTERNALLIBS messagebus config slobrokserver vespalib" >> $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/vespalib/testkit/testapp.h>" > $1 - echo "" >> $1 - echo "#include <vespa/log/log.h>" >> $1 - echo "LOG_SETUP(\"${test}_test\");" >> $1 - echo "" >> $1 - echo "//using namespace documentapi;" >> $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 |