]> rtime.felk.cvut.cz Git - omk.git/blobdiff - tests/sources_in_subdirectory
Update wvtool
[omk.git] / tests / sources_in_subdirectory
index 439dffb7a5c037350f0cad4289c2527eb5dc39c3..46bd6314680786ae859a2db9b478d5a22c8ec8ed 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. ./functions.sh
+. ./wvtest.sh
 
 case $OMK_RULES in
     linux|sysless)
@@ -8,16 +8,18 @@ case $OMK_RULES in
     *) exit 0
 esac
 
-touch config.omk-default
+cat > 'Makefile.omk' <<EOF
+bin_PROGRAMS = x
+shared_LIBRARIES = x
+x_SOURCES = a.c dir1/b.c dir2/dir3/c.c
+EOF
+
+
 mkdir dir
 cd dir
-cp ../Makefile ../Makefile.omk . 
+cp ../Makefile ../Makefile.omk .
 mkdir -p dir1 dir2/dir3
 touch dir1/b.c dir2/dir3/c.c
-echo 'void main() {}' > a.c
-
-make CC=cc
-
-find ../_build -type d -name dir3 || error "dir3 not found"
+echo 'int main() { return 0; }' > a.c
 
-exit 0
+WVPASS make