Update copyright notices for 2011
[jansson.git] / test / suites / api / run
index ff53f35..f1aed9b 100755 (executable)
@@ -1,13 +1,13 @@
 #!/bin/sh
 #
-# Copyright (c) 2009, 2010 Petri Lehtinen <petri@digip.org>
+# Copyright (c) 2009-2011 Petri Lehtinen <petri@digip.org>
 #
 # Jansson is free software; you can redistribute it and/or modify
 # it under the terms of the MIT license. See LICENSE for details.
 
 is_test() {
     case "$test_name" in
-        *.c|*.cpp|check-exports)
+        *.c|check-exports)
             return 0
             ;;
         *)
@@ -20,15 +20,7 @@ run_test() {
     if [ "$test_name" = "check-exports" ]; then
         test_log=$test_log $test_path >$test_log/stdout 2>$test_log/stderr
     else
-        case "$test_name" in
-            *.c)
-                test_bin=${test_name%.c}
-                ;;
-            *.cpp)
-                test_bin=${test_name%.cpp}
-                ;;
-        esac
-        $test_runner $suite_builddir/$test_bin \
+        $test_runner $suite_builddir/${test_name%.c} \
             >$test_log/stdout \
             2>$test_log/stderr \
             || return 1