]> rtime.felk.cvut.cz Git - omk.git/blob - tests/invocation_dir
RTEMS rules: provide support to build application with symbols exported.
[omk.git] / tests / invocation_dir
1 #!/bin/bash
2
3 . ./functions.sh
4
5 touch config.omk-default
6 make | grep ^INVOCATION_DIR | sort -u > tmp
7 test "$(cat tmp)" = "INVOCATION_DIR=" || error "INVOCATION_DIR should be empty" 
8 cd dir1
9 make | grep ^INVOCATION_DIR | sort -u > tmp
10 test "$(cat tmp)" = "INVOCATION_DIR=dir1" || error "INVOCATION_DIR should be 'dir1'"
11 cd dir2
12 make | grep ^INVOCATION_DIR | sort -u > tmp
13 test "$(cat tmp)" = "INVOCATION_DIR=dir1/dir2" || error "INVOCATION_DIR should be 'dir1/dir2'"