]> rtime.felk.cvut.cz Git - omk.git/blob - tests/all_omk_subdirs/test.inc
Fixed test functions to work under dash shell
[omk.git] / tests / all_omk_subdirs / test.inc
1 #!/bin/sh
2
3 . ../functions.sh
4
5 touch config.omk-default
6 echo "SUBDIRS $OP \$(ALL_OMK_SUBDIRS)" > Makefile.omk
7
8 OUTPUT=$(make 2>&1) || canttest
9 echo $OUTPUT | grep make-in-dir1 || error "Make was not called in dir1" 
10 echo $OUTPUT | grep make-in-dir2 || error "Make was not called in dir2"
11 echo $OUTPUT | grep make-in-dir3 && error "Make shouldn't be called in dir3" 
12
13 exit 0