From 6dddf0f9f5f6769db5b3cc41a5d74c371ff93bf9 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 23 Aug 2018 12:13:01 +0200 Subject: Convert app-templates to a cmake module - Changes PATH to find correctly all cmake files. - Clean useless code now it's integrated as CMake module - Clean variable usage - Create module entry point Bugs-AGL: SPEC-1682 Change-Id: I6943129677603b786c7144a92880d82795a916cd Signed-off-by: Romain Forlot --- test-widget/launcher.sh.in | 60 ------------------------------------------ test-widget/test-config.xml.in | 25 ------------------ 2 files changed, 85 deletions(-) delete mode 100644 test-widget/launcher.sh.in delete mode 100644 test-widget/test-config.xml.in (limited to 'test-widget') diff --git a/test-widget/launcher.sh.in b/test-widget/launcher.sh.in deleted file mode 100644 index 005c433..0000000 --- a/test-widget/launcher.sh.in +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/bash - -########################################################################### -# Copyright (C) 2017, 2018 IoT.bzh -# -# Author: Romain Forlot -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -########################################################################### - -PORT=$1 -TOKEN=$2 - -# Research the Api name used -CFGFILE=$(find ${AFM_APP_INSTALL_DIR} -name "*json" -print | head -n1) -API=$(grep '\"api\"' ${CFGFILE} | cut -d'"' -f4) - -AFBCLIENTIN=$(mktemp -u) -AFBCLIENTOUT=$(mktemp -u) -mkfifo $AFBCLIENTIN -mkfifo $AFBCLIENTOUT - -declare -a testVerb - -if [[ $(jq '.testVerb|type' $CFGFILE) == "array" ]] -then - testVerbLength=$(jq '.testVerb | length') - for (( idx=0; idx $AFBCLIENTOUT 2>&1 & -CLIENTPID=$! - -testVerbLength=${#testVerb[@]} -for (( idx=0; idx $AFBCLIENTIN -done - -while read -r line -do - [ "$(echo "${line}" | grep -E 'Ran [[:digit:]]+ tests in')" ] && break -done < $AFBCLIENTOUT - -rm -f $AFBCLIENTIN -rm -f $AFBCLIENTOUT -kill $CLIENTPID diff --git a/test-widget/test-config.xml.in b/test-widget/test-config.xml.in deleted file mode 100644 index b39d88e..0000000 --- a/test-widget/test-config.xml.in +++ /dev/null @@ -1,25 +0,0 @@ - - - @PROJECT_NAME@-test - - - Supplementary widget used to launch tests for the project @PROJECT_NAME@ - Romain Forlot <romain.forlot@iot.bzh> - APL2.0 - - - - - - - - - - - - - - - - - -- cgit 1.2.3-korg