]> rtime.felk.cvut.cz Git - omk.git/blobdiff - tests/idl
Apply allow sources in subdirectories to rtems and sdcc rules.
[omk.git] / tests / idl
index 6db9557692443dd2d0ed13ea25e09a7921aac372..313c06384d52252a00c159090e6cdb28de5fb915 100755 (executable)
--- a/tests/idl
+++ b/tests/idl
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. ./functions.sh
+. ./wvtest.sh
 
 case $OMK_RULES in
     sysless) echo "SKIPPING sysless RULES!!!!"; exit;
@@ -26,6 +26,7 @@ lib_LIBRARIES = idlserver
 idlserver_SERVER_IDL = test.idl
 EOF
 
+create_idlcomp() {
 cat > idlcomp <<EOF
 #!/bin/sh
 out=\$(basename \${1%.idl})
@@ -37,6 +38,8 @@ echo "extern volatile int idl_skels;
       extern volatile int idl_stubs;" > \${out}.h
 EOF
 chmod +x idlcomp
+}
+create_idlcomp
 
 cat > testclient.c <<EOF
 #include "test.h"
@@ -59,3 +62,20 @@ EOF
 
 needs_valid_CC
 WVPASS make V=1 IDL_COMPILER=$PWD/idlcomp
+
+WVSTART "Two idl files in a program"
+create_idlcomp
+cat > test1.idl <<< "# IDL input for dummy IDL compiler"
+cat > test2.idl <<< "# IDL input for dummy IDL compiler"
+cat > testclient.c <<< "int main() {return 0;}"
+
+cat > Makefile.omk <<EOF
+bin_PROGRAMS = testclient
+INCLUDES=-I.
+
+testclient_SOURCES = testclient.c
+testclient_CLIENT_IDL = test1.idl test2.idl
+EOF
+cat > config.omk <<< IDL_COMPILER=$PWD/idlcomp
+
+WVPASS make