]> rtime.felk.cvut.cz Git - omk.git/blobdiff - tests/sources_in_subdirectory
NuttX: the adapt to new implementation of ROMFS mounting at /etc
[omk.git] / tests / sources_in_subdirectory
index bb5d45b02b865bbab9702bad874eeaaadfdc82f6..46bd6314680786ae859a2db9b478d5a22c8ec8ed 100755 (executable)
@@ -1,17 +1,25 @@
-#!/bin/sh
+#!/bin/bash
+
+. ./wvtest.sh
+
+case $OMK_RULES in
+    linux|sysless)
+       ;;
+    *) exit 0
+esac
+
+cat > 'Makefile.omk' <<EOF
+bin_PROGRAMS = x
+shared_LIBRARIES = x
+x_SOURCES = a.c dir1/b.c dir2/dir3/c.c
+EOF
 
-. ../functions.sh
 
-touch config.omk-default
 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