+++ /dev/null
-# Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
-#
-# 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.
-#
-
-SRC=./src
-BUILD=build
-mkdir $BUILD 2>/dev/null
-g++ $SRC/test_empty.cpp -o $BUILD/empty
-g++ $SRC/test_timer.cpp -o $BUILD/timer
-g++ $SRC/test_openssl.cpp `pkg-config --libs openssl` -o $BUILD/ssl
-g++ $SRC/test_pcre.cpp `pkg-config --libs libpcre` -o $BUILD/pcre
-g++ $SRC/test_xml2.cpp `pkg-config --cflags libxml-2.0` `pkg-config --libs libxml-2.0` -o $BUILD/xml
-g++ $SRC/test_xmlsec.cpp `pkg-config --cflags xmlsec1` `pkg-config --libs xmlsec1` -o $BUILD/xmlsec
+++ /dev/null
-#!/bin/bash -
-# Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
-#
-# 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.
-#
-
-set -o nounset # Treat unset variables as an error
-
-CLEAR_CACHE_ENABLE=0
-
-
-function runTest(){
-echo -e "\nTesting..." $2
-
-if [ $CLEAR_CACHE_ENABLE -eq 1 ]; then
-#Clear cache
-/sbin/sysctl vm.drop_caches=3;
-fi
-
-START=$(date +%s.%N)
-$1
-END=$(date +%s.%N)
-DIFF=$(echo "$END - $START" | bc)
-MS=$(echo "$DIFF" | sed 's/\([0-9]*\)[.]\([0-9][0-9][0-9]\).*/\1s \2ms/' | sed 's/^s/0s/');
-echo -e "Result for" $2 " " $MS "\n"
-}
-
-
-pushd ./build > /dev/null
-runTest ./empty "None"
-runTest ./timer "Timer"
-runTest ./ssl "OpenSSL"
-runTest ./pcre "Pcre"
-runTest ./xml "Xml2"
-runTest ./xmlsec "XmlSec" "internally linked with openssl and xml2"
-popd > /dev/null
+++ /dev/null
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * 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.
- */
-int main(int argc, const char *argv[])
-{
- return 0;
-}
+++ /dev/null
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * 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.
- */
-#include<stdio.h>
-#include <stdint.h>
-#include<openssl/ssl.h>
-#include <sys/time.h>
-
-int main(int argc, const char *argv[])
-{
- struct timeval start;
- struct timeval end;
-
-
- gettimeofday(&start, NULL);
- SSL_library_init();
- gettimeofday(&end, NULL);
-
-
- uint32_t st;
- uint32_t en;
-
- st = start.tv_sec * 1000 + start.tv_usec / 1000;
- en = end.tv_sec * 1000 + end.tv_usec / 1000;
-
- printf("Command execution time :\t %d ms %d us\n", en-st, (end.tv_usec - start.tv_usec)%1000);
-
- return 0;
-}
+++ /dev/null
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * 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.
- */
-#include<stdio.h>
-#include <stdint.h>
-#include<pcre.h>
-#include <sys/time.h>
-
-int main(int argc, const char *argv[])
-{
- struct timeval start;
- struct timeval end;
-
-
- gettimeofday(&start, NULL);
- pcre_version();
- gettimeofday(&end, NULL);
-
-
- uint32_t st;
- uint32_t en;
-
- st = start.tv_sec * 1000 + start.tv_usec / 1000;
- en = end.tv_sec * 1000 + end.tv_usec / 1000;
-
- printf("Command execution time :\t %d ms %d us\n", en-st, (end.tv_usec - start.tv_usec)%1000);
-
- return 0;
-}
+++ /dev/null
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * 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.
- */
-#include<stdio.h>
-#include <stdint.h>
-#include <sys/time.h>
-
-int main(int argc, const char *argv[])
-{
- struct timeval start;
- struct timeval end;
-
-
- gettimeofday(&start, NULL);
- gettimeofday(&end, NULL);
-
- uint32_t st;
- uint32_t en;
-
- st = start.tv_sec * 1000 + start.tv_usec / 1000;
- en = end.tv_sec * 1000 + end.tv_usec / 1000;
-
- printf("Command execution time :\t %d ms %d us\n", en-st, (end.tv_usec - start.tv_usec)%1000);
-
- return 0;
-}
+++ /dev/null
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * 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.
- */
-#include<stdio.h>
-#include <stdint.h>
-#include <sys/time.h>
-#include <libxml/globals.h>
-
-
-int main(int argc, const char *argv[])
-{
- struct timeval start;
- struct timeval end;
-
-
- gettimeofday(&start, NULL);
- xmlCleanupGlobals();
- gettimeofday(&end, NULL);
-
-
- uint32_t st;
- uint32_t en;
-
- st = start.tv_sec * 1000 + start.tv_usec / 1000;
- en = end.tv_sec * 1000 + end.tv_usec / 1000;
-
- printf("Command execution time :\t %d ms %d us\n", en-st, (end.tv_usec - start.tv_usec)%1000);
-
- return 0;
-}
+++ /dev/null
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * 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.
- */
-#include<stdio.h>
-#include <stdint.h>
-#include <sys/time.h>
-#include <xmlsec/xmlsec.h>
-
-
-int main(int argc, const char *argv[])
-{
- struct timeval start;
- struct timeval end;
-
-
- gettimeofday(&start, NULL);
- xmlSecInit();
- gettimeofday(&end, NULL);
-
-
- uint32_t st;
- uint32_t en;
-
- st = start.tv_sec * 1000 + start.tv_usec / 1000;
- en = end.tv_sec * 1000 + end.tv_usec / 1000;
-
- printf("Command execution time :\t %d ms %d us\n", en-st, (end.tv_usec - start.tv_usec)%1000);
-
- return 0;
-}